Skip to content

Commit c3b5cd3

Browse files
committed
Half the indentation, twice the beauty.
1 parent 7e6c9f2 commit c3b5cd3

37 files changed

+4883
-4891
lines changed

buildcustom.php

+19-19
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,34 @@
77
$min = !empty($_REQUEST['min']) ? 'min.' : '';
88
$files = explode('-', preg_replace("/[^a-z0-9-]/", '', substr($_REQUEST['modules'], 0, 1024)));
99
if (!$files || $files === ['']) {
10-
$content = file_get_contents($dir.'/pnotify.'.$ext);
11-
header("Content-Disposition: $type; filename=pnotify.custom.$min$ext");
12-
header("Content-Length: ".strlen($content));
13-
header("Content-Type: $mime");
14-
echo $content;
15-
exit;
10+
$content = file_get_contents($dir.'/pnotify.'.$ext);
11+
header("Content-Disposition: $type; filename=pnotify.custom.$min$ext");
12+
header("Content-Length: ".strlen($content));
13+
header("Content-Type: $mime");
14+
echo $content;
15+
exit;
1616
}
1717
sort($files);
1818

1919
if ($min === '') {
20-
$content = "/* PNotify modules included in this custom build file:\n".
21-
implode("\n", $files).
22-
"\n*/\n";
20+
$content = "/* PNotify modules included in this custom build file:\n".
21+
implode("\n", $files).
22+
"\n*/\n";
2323
}
2424

2525
$content .= file_get_contents("$dir/pnotify.$ext")."\n";
2626
foreach ($files as $cur_file) {
27-
$filename = "$dir/pnotify.$cur_file.$ext";
28-
if (!file_exists($filename)) {
29-
$filename_other = "$dir/pnotify.$cur_file.".($ext === "css" ? "js" : "css");
30-
if (file_exists($filename_other)) {
31-
continue;
32-
}
33-
header('HTTP/1.1 400 Bad Request', true, 400);
34-
echo "Your request could not be completed because a file you requested is invalid.";
35-
exit;
27+
$filename = "$dir/pnotify.$cur_file.$ext";
28+
if (!file_exists($filename)) {
29+
$filename_other = "$dir/pnotify.$cur_file.".($ext === "css" ? "js" : "css");
30+
if (file_exists($filename_other)) {
31+
continue;
3632
}
37-
$content .= file_get_contents($filename)."\n";
33+
header('HTTP/1.1 400 Bad Request', true, 400);
34+
echo "Your request could not be completed because a file you requested is invalid.";
35+
exit;
36+
}
37+
$content .= file_get_contents($filename)."\n";
3838
}
3939

4040

devnote-stable.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.stable-note {
2-
display: block !important;
3-
}
2+
display: block !important;
3+
}

devnote.css

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.dev-note {
2-
display: block !important;
3-
position: fixed;
4-
z-index: -1;
5-
bottom: 20px;
6-
left: 20px;
7-
opacity: .4;
8-
}
2+
display: block !important;
3+
position: fixed;
4+
z-index: -1;
5+
bottom: 20px;
6+
left: 20px;
7+
opacity: .4;
8+
}

dist/pnotify.animate.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pnotify.buttons.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)