summaryrefslogtreecommitdiff
path: root/static/grill.php
diff options
context:
space:
mode:
authorWubTheCaptain <wub@partyvan.eu>2015-09-15 19:36:21 +0200
committerpantsucat <contact@pantsu.cat>2015-09-16 06:31:43 +0200
commit9e8a8513b20cfd770429e35135516c6399444930 (patch)
tree3cddba0597ad293fda5588694fe018daa770fc88 /static/grill.php
parent1415c210d67666ef5b8a26c109107d0ce5fe73c9 (diff)
Indent and format project to PSR-2 style
PSR-2 [1] is a highly regarded style guide in the PHP community according to Stack Overflow [2]. The indentation was out of place in the source code. I've seen a combination of 1 space tabs, 3 space tabs, 4 space tabs and 5 space tabs. Some closing braces on the same line and a lot of the code (especially moe code) had reached the point of losing readability. Converted with php-cs-fixer and some hand adjustment. [1]: http://www.php-fig.org/psr/psr-2/ [2]: https://stackoverflow.com/questions/3638083/list-of-highly-regarded -php-style-guides
Diffstat (limited to 'static/grill.php')
-rw-r--r--static/grill.php23
1 files changed, 12 insertions, 11 deletions
diff --git a/static/grill.php b/static/grill.php
index 34bdce1..5984b12 100644
--- a/static/grill.php
+++ b/static/grill.php
@@ -1,16 +1,17 @@
<?php
+
$images = array(
- 'img/2.png',
- 'img/3.png',
- 'img/4.png',
- 'img/5.png',
- 'img/6.png',
- 'img/7.png',
- 'img/8.png',
- 'img/9.png',
- 'img/10.png'
+ 'img/2.png',
+ 'img/3.png',
+ 'img/4.png',
+ 'img/5.png',
+ 'img/6.png',
+ 'img/7.png',
+ 'img/8.png',
+ 'img/9.png',
+ 'img/10.png',
);
+
if (headers_sent() === false) {
- header('Location: ' . $images[array_rand($images)], true, 303);
+ header('Location: '.$images[array_rand($images)], true, 303);
}
-?>