summaryrefslogtreecommitdiff
path: root/static/includes
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/includes
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/includes')
-rw-r--r--static/includes/database.inc.php2
-rw-r--r--static/includes/settings.inc.php12
2 files changed, 6 insertions, 8 deletions
diff --git a/static/includes/database.inc.php b/static/includes/database.inc.php
index 2ed0274..5049487 100644
--- a/static/includes/database.inc.php
+++ b/static/includes/database.inc.php
@@ -1,6 +1,6 @@
<?php
+
include_once 'settings.inc.php';
/* NOTE: we don't have to unref the PDO because we're not long-running */
$db = new PDO(POMF_DB_CONN, POMF_DB_USER, POMF_DB_PASS);
-?>
diff --git a/static/includes/settings.inc.php b/static/includes/settings.inc.php
index b8a213c..37bc4a0 100644
--- a/static/includes/settings.inc.php
+++ b/static/includes/settings.inc.php
@@ -17,11 +17,9 @@ define('POMF_FILES_LENGTH', 6);
define('POMF_URL', 'https://i.pantsu.cat/');
$doubledots = array_map('strrev', array(
- 'tar.gz',
- 'tar.bz',
- 'tar.bz2',
- 'tar.xz',
- 'user.js'
+ 'tar.gz',
+ 'tar.bz',
+ 'tar.bz2',
+ 'tar.xz',
+ 'user.js',
));
-
-?>