Passed
Push — master ( 14e287...f4a883 )
by Nicolas
03:36
created
public/php/includes/show_image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-require_once __DIR__ . '/../vendor/autoload.php';
2
+require_once __DIR__.'/../vendor/autoload.php';
3 3
 
4 4
 extract($_REQUEST);
5 5
 
Please login to merge, or discard this patch.
public/php/lib/smarty_plugins/modifier.timeago.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,26 +19,26 @@
 block discarded – undo
19 19
     $now = $date->format('U');
20 20
     $message = "";
21 21
 
22
-    if ($now-$timestamp <60) {
23
-        $diff = $now-$timestamp;
22
+    if ($now - $timestamp < 60) {
23
+        $diff = $now - $timestamp;
24 24
         $message .= " $diff seconds ago";
25 25
     }
26
-    if ($now-$timestamp >60 and $now-$timestamp <3600) {
27
-        $diff = $now-$timestamp;
26
+    if ($now - $timestamp > 60 and $now - $timestamp < 3600) {
27
+        $diff = $now - $timestamp;
28 28
         $diff = floor($diff / 60);
29 29
         $message .= " $diff minutes ago";
30 30
     }
31
-    if ($now-$timestamp >3600 and $now-$timestamp <86400) {
32
-        $diff = $now-$timestamp;
31
+    if ($now - $timestamp > 3600 and $now - $timestamp < 86400) {
32
+        $diff = $now - $timestamp;
33 33
         $diff = floor($diff / 3600);
34 34
         $message .= " $diff hours ago";
35 35
     }
36
-    if ($now-$timestamp >86400 and $now-$timestamp <172800) {
37
-        $diff = $now-$timestamp;
36
+    if ($now - $timestamp > 86400 and $now - $timestamp < 172800) {
37
+        $diff = $now - $timestamp;
38 38
         $diff = floor($diff / 3600);
39 39
         $message .= " yesterday";
40 40
     }
41
-    if ($now-$timestamp >172800) {
41
+    if ($now - $timestamp > 172800) {
42 42
         $time = new \DateTime();
43 43
         $time->setTimestamp($timestamp);
44 44
         $change_date = $time->format('M d');
Please login to merge, or discard this patch.
public/php/lib/functions.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@
 block discarded – undo
392 392
 function search($entry) {
393 393
     // search for strange characters like ^, $, &, change "it's" to "its"
394 394
     static $drop_char_match = array('^', '$', '&', '(', ')', '<', '>', '`', '"', '|', ',', '@', '_', '?', '%', '-', '~',
395
-         '+', '.', '[', ']', '{', '}', ':', '\\', '/', '=', '#', '\'', ';', '!');
395
+            '+', '.', '[', ']', '{', '}', ':', '\\', '/', '=', '#', '\'', ';', '!');
396 396
 
397 397
     $count = 0;
398 398
 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     // Set up the parameters for a URL search string
134 134
     $URLSearchString  = " a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'";
135 135
     // Set up the parameters for a MAIL search string
136
-    $MAILSearchString = $URLSearchString . " a-zA-Z0-9\.@";
136
+    $MAILSearchString = $URLSearchString." a-zA-Z0-9\.@";
137 137
 
138 138
     // Perform URL Search
139 139
     $Text = preg_replace(
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
                         </tr>
195 195
                    </table>';
196 196
     // Check for [code] text
197
-    $Text       = preg_replace("/\[code\](.+?)\[\/code\]/is", "$CodeLayout", $Text);
197
+    $Text = preg_replace("/\[code\](.+?)\[\/code\]/is", "$CodeLayout", $Text);
198 198
 
199 199
     // Declare the format for [quote] layout
200 200
     $QuoteLayout = '<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
     mysqli_free_result($query);
553 553
 
554 554
     // START - COUNT HOW MANY GAMES HAS CATEGORIES SET
555
-    $query         = $mysqli->query("SELECT COUNT(DISTINCT game_id) AS count FROM game_genre_cross");
555
+    $query = $mysqli->query("SELECT COUNT(DISTINCT game_id) AS count FROM game_genre_cross");
556 556
     // Special case here due to the migration from game_categories to game_genre
557 557
     // This fails until the DB update script is run because the game_genre_cross
558 558
     // table doesn't exist. It prevents accessing the site and CPANEL, preventing
@@ -763,8 +763,8 @@  discard block
 block discarded – undo
763 763
     //  Everything we do for the Trivia SECTION
764 764
     if ($section == 'Trivia') {
765 765
         if ($subsection == 'DYK' or $subsection == 'Quote' or $subsection == 'Spotlight') {
766
-            $subsection_name = ("Trivia ID " . $subsection_id);
767
-            $section_name    = ("Trivia ID " . $subsection_id);
766
+            $subsection_name = ("Trivia ID ".$subsection_id);
767
+            $section_name    = ("Trivia ID ".$subsection_id);
768 768
         }
769 769
     }
770 770
 
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
 
792 792
         if ($subsection == 'Link submit') {
793 793
             // Get the submitted link
794
-            $query_link =  "SELECT website_name FROM website_validate WHERE website_id = $subsection_id";
794
+            $query_link = "SELECT website_name FROM website_validate WHERE website_id = $subsection_id";
795 795
             $result = $mysqli->query($query_link) or die("getting submitted link name failed: ".$mysqli->error);
796 796
             $query_data = $result->fetch_array(MYSQLI_BOTH);
797 797
             $section_name = $query_data['website_name'];
@@ -1360,7 +1360,7 @@  discard block
 block discarded – undo
1360 1360
 
1361 1361
                 if ($subsection == 'Authors') {
1362 1362
                 } else {
1363
-                    $subsection      = 'Game doc';
1363
+                    $subsection = 'Game doc';
1364 1364
                 }
1365 1365
 
1366 1366
                 if ($subsection_name == '') {
@@ -1386,7 +1386,7 @@  discard block
 block discarded – undo
1386 1386
 
1387 1387
                     if ($subsection == 'Authors') {
1388 1388
                     } else {
1389
-                        $subsection      = 'Tool doc';
1389
+                        $subsection = 'Tool doc';
1390 1390
                     }
1391 1391
                 }
1392 1392
             }
@@ -1563,7 +1563,7 @@  discard block
 block discarded – undo
1563 1563
             $query_tos = "SELECT * FROM tos_version
1564 1564
                              WHERE tos_version_id = '$subsection_id'";
1565 1565
             $result = $mysqli->query($query_tos) or die("getting tos failed");
1566
-            $query_data   = $result->fetch_array(MYSQLI_BOTH);
1566
+            $query_data = $result->fetch_array(MYSQLI_BOTH);
1567 1567
             $subsection_name = $query_data['tos_version'];
1568 1568
             $subsection_id = $query_data['tos_version_id'];
1569 1569
         }
@@ -1585,7 +1585,7 @@  discard block
 block discarded – undo
1585 1585
             $query_trainer = "SELECT * FROM trainer_options
1586 1586
                              WHERE trainer_options_id = '$subsection_id'";
1587 1587
             $result = $mysqli->query($query_trainer) or die("getting trainer failed");
1588
-            $query_data   = $result->fetch_array(MYSQLI_BOTH);
1588
+            $query_data = $result->fetch_array(MYSQLI_BOTH);
1589 1589
             $subsection_name = $query_data['trainer_options'];
1590 1590
             $subsection_id = $query_data['trainer_options_id'];
1591 1591
         }
@@ -1595,7 +1595,7 @@  discard block
 block discarded – undo
1595 1595
             $query_crew = "SELECT * FROM crew WHERE
1596 1596
                             crew_id = '$subsection_id'";
1597 1597
             $result = $mysqli->query($query_crew) or die("getting crew failed");
1598
-            $query_data   = $result->fetch_array(MYSQLI_BOTH);
1598
+            $query_data = $result->fetch_array(MYSQLI_BOTH);
1599 1599
             $subsection_name = $query_data['crew_name'];
1600 1600
         }
1601 1601
 
@@ -1604,7 +1604,7 @@  discard block
 block discarded – undo
1604 1604
             $query_ind = "SELECT ind_name FROM individuals WHERE
1605 1605
                             ind_id = '$subsection_id'";
1606 1606
             $result = $mysqli->query($query_ind) or die("getting ind failed");
1607
-            $query_data   = $result->fetch_array(MYSQLI_BOTH);
1607
+            $query_data = $result->fetch_array(MYSQLI_BOTH);
1608 1608
             $subsection_name = $query_data['ind_name'];
1609 1609
         }
1610 1610
     }
@@ -1624,8 +1624,8 @@  discard block
 block discarded – undo
1624 1624
 
1625 1625
     //  Everything we do for the BUG REPORT SECTION
1626 1626
     if ($section == 'Bug') {
1627
-        $subsection_name = ("Bug report ID " . $subsection_id);
1628
-        $section_name    = ("Bug report ID " . $subsection_id);
1627
+        $subsection_name = ("Bug report ID ".$subsection_id);
1628
+        $section_name    = ("Bug report ID ".$subsection_id);
1629 1629
     }
1630 1630
 
1631 1631
     //  Everything we do for the GAMES CONFIG section
@@ -1783,7 +1783,7 @@  discard block
 block discarded – undo
1783 1783
                                   ON (pub_dev.pub_dev_id = game_release_distributor.pub_dev_id)
1784 1784
                                   WHERE pub_dev.pub_dev_id = '$subsection_id'";
1785 1785
             $result = $mysqli->query($query_distributor) or die("getting name failed");
1786
-            $query_data   = $result->fetch_array(MYSQLI_BOTH);
1786
+            $query_data = $result->fetch_array(MYSQLI_BOTH);
1787 1787
             $subsection_name = $query_data['pub_dev_name'];
1788 1788
             $subsection_id = $query_data['game_release_id'];
1789 1789
         }
@@ -1795,7 +1795,7 @@  discard block
 block discarded – undo
1795 1795
                                   ON (crew.crew_id = game_release_crew.crew_id)
1796 1796
                                   WHERE crew.crew_id = '$subsection_id'";
1797 1797
             $result = $mysqli->query($query_crew) or die("getting name failed");
1798
-            $query_data   = $result->fetch_array(MYSQLI_BOTH);
1798
+            $query_data = $result->fetch_array(MYSQLI_BOTH);
1799 1799
             $subsection_name = $query_data['crew_name'];
1800 1800
             $subsection_id = $query_data['game_release_id'];
1801 1801
         }
Please login to merge, or discard this patch.
public/php/lib/functions_search.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
  ***************************************************************************/
21 21
 
22 22
 function clean_words($mode, &$entry) {
23
-    static $drop_char_match =   array('^', '$', '&', '(', ')', '<', '>', '`', '\'', '"', '|', ',', '@', '_', '?',
23
+    static $drop_char_match = array('^', '$', '&', '(', ')', '<', '>', '`', '\'', '"', '|', ',', '@', '_', '?',
24 24
         '%', '-', '~', '+', '.', '[', ']', '{', '}', ':', '\\', '/', '=', '#', '\'', ';', '!');
25
-    static $drop_char_replace = array(' ', ' ', ' ', ' ', ' ', ' ', ' ', '',  '',   ' ', ' ', ' ', ' ', '',  ' ',
26
-        ' ', '',  ' ',  ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' , ' ', ' ', ' ', ' ',  ' ', ' ');
25
+    static $drop_char_replace = array(' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '', ' ', ' ', ' ', ' ', '', ' ',
26
+        ' ', '', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ');
27 27
 
28
-    $entry = ' ' . strip_tags(strtolower($entry)) . ' ';
28
+    $entry = ' '.strip_tags(strtolower($entry)).' ';
29 29
 
30 30
     if ($mode == 'post') {
31 31
         // Replace line endings by a space
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     // Filter out strange characters like ^, $, &, change "it's" to "its"
45 45
     //
46 46
     for ($i = 0; $i < count($drop_char_match); $i++) {
47
-        $entry =  str_replace($drop_char_match[$i], $drop_char_replace[$i], $entry);
47
+        $entry = str_replace($drop_char_match[$i], $drop_char_replace[$i], $entry);
48 48
     }
49 49
 
50 50
     if ($mode == 'post') {
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
 
83 83
                 if ($search_matches[$i] != '') {
84 84
                     $word[] = $search_matches[$i];
85
-                    if (!strstr($word_insert_sql[$word_in], "'" . $search_matches[$i] . "'")) {
86
-                        $word_insert_sql[$word_in] .= ($word_insert_sql[$word_in] != "") ? ", '" .
87
-                            $search_matches[$i] . "'" : "'" . $search_matches[$i] . "'";
85
+                    if (!strstr($word_insert_sql[$word_in], "'".$search_matches[$i]."'")) {
86
+                        $word_insert_sql[$word_in] .= ($word_insert_sql[$word_in] != "") ? ", '".
87
+                            $search_matches[$i]."'" : "'".$search_matches[$i]."'";
88 88
                     }
89 89
                 }
90 90
             }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         for ($i = 0; $i < count($word); $i++) {
101 101
             if ($word[$i] != $prev_word) {
102 102
                 $temp_word[] = $word[$i];
103
-                $word_text_sql .= (($word_text_sql != '') ? ', ' : '') . "'" . $word[$i] . "'";
103
+                $word_text_sql .= (($word_text_sql != '') ? ', ' : '')."'".$word[$i]."'";
104 104
             }
105 105
             $prev_word = $word[$i];
106 106
         }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             }
118 118
 
119 119
             if ($new_match) {
120
-                $value_sql .= (($value_sql != '') ? ', ' : '') . '(\'' . $word[$i] . '\')';
120
+                $value_sql .= (($value_sql != '') ? ', ' : '').'(\''.$word[$i].'\')';
121 121
             }
122 122
         }
123 123
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     if ($result = mysql_query($sql)) {
155 155
         $word_id_sql = '';
156 156
         while ($row = mysql_fetch_array($result)) {
157
-            $word_id_sql .= ($word_id_sql != '') ? ', ' . $row['news_word_id'] : $row['news_word_id'];
157
+            $word_id_sql .= ($word_id_sql != '') ? ', '.$row['news_word_id'] : $row['news_word_id'];
158 158
         }
159 159
 
160 160
         $sql = "SELECT news_word_id
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         if ($result = mysql_query($sql)) {
166 166
             $word_id_sql = '';
167 167
             while ($row = mysql_fetch_array($result)) {
168
-                $word_id_sql .= ($word_id_sql != '') ? ', ' . $row['news_word_id'] : $row['news_word_id'];
168
+                $word_id_sql .= ($word_id_sql != '') ? ', '.$row['news_word_id'] : $row['news_word_id'];
169 169
             }
170 170
 
171 171
             if ($word_id_sql != '') {
Please login to merge, or discard this patch.
public/php/lib/who_is_online.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 //We have the last logon time of each user in the user table. We need to compare this with the current time - 1 minute.
13 13
 //So if the last log on time of the user is bigger than the current time - 1 minute, we can asume the user is online.
14
-$five_minutes = time()-(60*1);
14
+$five_minutes = time() - (60 * 1);
15 15
 $nr_users = 0;
16 16
 $nr_users_24 = 0;
17 17
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 $smarty->assign('nr_users', $nr_users);
32 32
 
33 33
 //Now let's check who was online in the last 24 hours
34
-$twentyfour_hours = time()-(60*1440);
34
+$twentyfour_hours = time() - (60 * 1440);
35 35
 
36 36
 //Lets get all the data of the user who were online
37 37
 $sql_users = $mysqli->query("SELECT * FROM users
Please login to merge, or discard this patch.
public/php/lib/user_functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                     $random_salt = hash('sha512', uniqid(mt_rand(1, mt_getrandmax()), true));
68 68
 
69 69
                     // Create salted password
70
-                    $update_password = hash('sha512', $password . $random_salt);
70
+                    $update_password = hash('sha512', $password.$random_salt);
71 71
 
72 72
                     if ($update_stmt = $mysqli->prepare("UPDATE users
73 73
                         SET password=NULL, sha512_password=?, salt=?WHERE user_id=?")) {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $stmt->bind_result($user_id, $userid, $db_password, $salt, $permission, $avatar_ext, $inactive);
110 110
         $stmt->fetch();
111 111
         // hash the password with the unique salt.
112
-        $password = hash('sha512', $password . $salt);
112
+        $password = hash('sha512', $password.$salt);
113 113
         if ($stmt->num_rows == 1) {
114 114
             // If the user exists we check if the account is locked
115 115
             // from too many login attempts
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                 $userid                   = preg_replace("/[^a-zA-Z0-9_\-]+/", "", $userid);
132 132
                 $_SESSION['userid']       = $userid;
133 133
                 $_SESSION['permission']   = $permission;
134
-                $_SESSION['login_string'] = hash('sha512', $password . $user_browser);
134
+                $_SESSION['login_string'] = hash('sha512', $password.$user_browser);
135 135
                 $_SESSION['image']        = $avatar_ext;
136 136
                 // Login successful.
137 137
                 return true;
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                     // If the user exists get variables from result.
234 234
                     $stmt->bind_result($password);
235 235
                     $stmt->fetch();
236
-                    $login_check = hash('sha512', $password . $user_browser);
236
+                    $login_check = hash('sha512', $password.$user_browser);
237 237
 
238 238
                     if ($login_check == $login_string) {
239 239
                         // Logged In!!!!
Please login to merge, or discard this patch.
public/php/admin/interviews/db_interview.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 //include("../../config/admin_rights.php"); /*--> We can not use it like this because of the ajax.
24 24
 // redirecting does not work correctly with the inheritance of Ajax.
25 25
 
26
-require_once __DIR__."/../../lib/Db.php" ;
26
+require_once __DIR__."/../../lib/Db.php";
27 27
 
28 28
 if (isset($action) and $action == "stop") {
29 29
     echo "test";
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 //If we are uploading new screenshots
38 38
 if (isset($action2) and $action2 == 'add_screens') {
39
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
39
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
40 40
         //Here we'll be looping on each of the inputs on the page that are filled in with an image!
41 41
         $image = $_FILES['image'];
42 42
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     $smarty->assign('interview_id', $interview_id);
148 148
 
149 149
     //Send to smarty for return value
150
-    $smarty->display("file:" . $cpanel_template_folder . "interviews/ajax_interview_add_screenshots.html");
150
+    $smarty->display("file:".$cpanel_template_folder."interviews/ajax_interview_add_screenshots.html");
151 151
 }
152 152
 
153 153
 //*************************************************************************
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
 //If the delete comment has been triggered
205 205
 if (isset($action) and $action == 'delete_screenshot_comment') {
206
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
206
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
207 207
         $sql_interviewshot = $mysqli->query("SELECT * FROM screenshot_interview
208 208
                               WHERE interview_id = $interview_id
209 209
                         AND screenshot_id = $screenshot_id") or die("Database error - selecting screenshots interview");
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     $smarty->assign('interview_id', $interview_id);
284 284
 
285 285
     //Send to smarty for return value
286
-    $smarty->display("file:" . $cpanel_template_folder . "interviews/ajax_interview_add_screenshots.html");
286
+    $smarty->display("file:".$cpanel_template_folder."interviews/ajax_interview_add_screenshots.html");
287 287
 }
288 288
 
289 289
 //*************************************************************************
Please login to merge, or discard this patch.
public/php/admin/interviews/interviews_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         'interview_chapters' => $interview['interview_chapters'],
67 67
         'interview_text' => $interview['interview_text'],
68 68
         'interview_ind_name' => $interview['ind_name'],
69
-        'interview_author' => $author_id ,
69
+        'interview_author' => $author_id,
70 70
         'interview_author_name' => $interview['userid'],
71 71
         'interview_ind_id' => $interview['ind_id'],
72 72
         'interview_draft' => $interview['draft'],
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 $smarty->assign("user_id", $_SESSION['user_id']);
111 111
 
112 112
 //Send all smarty variables to the templates
113
-$smarty->display("file:" . $cpanel_template_folder . "interviews/interviews_edit.html");
113
+$smarty->display("file:".$cpanel_template_folder."interviews/interviews_edit.html");
114 114
 
115 115
 //close the connection
116 116
 mysqli_close($mysqli);
Please login to merge, or discard this patch.
public/php/common/Model/Database/ChangeLog.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
         "Downloads" => array("Crew", "Details", "TOS"),
22 22
         "Format" => array("Format"),
23 23
         "Game series" => array("Game", "Series"),
24
-        "Games" => array("AKA", "Box back", "Box front", "Comment","Creator",
25
-            "Developer", "Fact", "File", "Mag score", "Music","Game", "Publisher",
24
+        "Games" => array("AKA", "Box back", "Box front", "Comment", "Creator",
25
+            "Developer", "Fact", "File", "Mag score", "Music", "Game", "Publisher",
26 26
             "Review", "Review comment", "Screenshot", "Similar", "Submission", "Year",
27 27
             "Release", "Sound hardware", "Video"
28 28
         ),
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $this->id = $id;
70 70
 
71 71
         // Check if the section is valid
72
-        if (! array_key_exists($section, self::SECTIONS)) {
72
+        if (!array_key_exists($section, self::SECTIONS)) {
73 73
             die("Unknown section '$section'. Only "
74 74
                 .join(", ", array_keys(self::SECTIONS))." are supported");
75 75
         }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->section_value = $section_value;
79 79
 
80 80
         // Check is the sub-section is valid for the section
81
-        if (! in_array($sub_section, self::SECTIONS[$section])) {
81
+        if (!in_array($sub_section, self::SECTIONS[$section])) {
82 82
             die("Unknown sub-section '$sub_section'. Only "
83 83
                 .join(", ", self::SECTIONS[$section])." are supported for $section");
84 84
         }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $this->user_id = $user_id;
90 90
 
91 91
         // Check if the action is valid
92
-        if (! in_array($action, self::ACTIONS)) {
92
+        if (!in_array($action, self::ACTIONS)) {
93 93
             die("Unknown action '$action'. Only ".self::ACTIONS." are supported");
94 94
         }
95 95
         $this->action = $action;
Please login to merge, or discard this patch.