Passed
Push — master ( d0aeb4...d92c88 )
by Nicolas
07:53
created
public/php/admin/games/games_series_add_series.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,4 +38,4 @@
 block discarded – undo
38 38
 ));
39 39
 
40 40
 //Send all smarty variables to the templates
41
-$smarty->display("file:" . $cpanel_template_folder . "games/games_series_add_series.html");
41
+$smarty->display("file:".$cpanel_template_folder."games/games_series_add_series.html");
Please login to merge, or discard this patch.
public/php/admin/games/db_games_submissions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     //require_once __DIR__."/../../lib/Db.php";
29 29
     //require_once __DIR__."/../../common/DAO/GameSubmissionDAO.php";
30 30
 
31
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
31
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
32 32
         //****************************************************************************************
33 33
         // This is where the submissions get "sent" to "done"
34 34
         //****************************************************************************************
@@ -71,11 +71,11 @@  discard block
 block discarded – undo
71 71
     //require_once __DIR__."/../../lib/Db.php";
72 72
     //require_once __DIR__."/../../common/DAO/GameSubmissionDAO.php";
73 73
 
74
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
74
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
75 75
         if (isset($submit_id)) {
76 76
             //Let's first check if this submission has screenshots.
77 77
             $query_submit_screenshot = $mysqli->query("SELECT * FROM screenshot_game_submitinfo
78
-                WHERE game_submitinfo_id = " . $submit_id . "")
78
+                WHERE game_submitinfo_id = " . $submit_id."")
79 79
                 or die("something is wrong with mysqli of submissions screenshots");
80 80
 
81 81
             while ($sql_submit_screenshot = $query_submit_screenshot->fetch_array(MYSQLI_BOTH)) {
@@ -122,12 +122,12 @@  discard block
 block discarded – undo
122 122
     //require_once __DIR__."/../../lib/Db.php";
123 123
     //require_once __DIR__."/../../common/DAO/GameSubmissionDAO.php";
124 124
 
125
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
125
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
126 126
         if (isset($submit_id)) {
127 127
             //Let's first check if this submission has screenshots.
128 128
             //If so, it is not suited for movement to comment section!
129 129
             $query_submit_screenshot = $mysqli->query("SELECT * FROM screenshot_game_submitinfo
130
-                WHERE game_submitinfo_id = " . $submit_id . "")
130
+                WHERE game_submitinfo_id = " . $submit_id."")
131 131
                 or die("something is wrong with mysqli of submissions screenshots");
132 132
             $v_rows = $query_submit_screenshot->num_rows;
133 133
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 $message = "Submission has screenshots and is not suited for the comment section";
136 136
             } else {
137 137
                 $query_submit = $mysqli->query("SELECT * FROM game_submitinfo
138
-                    WHERE game_submitinfo_id = " . $submit_id . "") or die("something is wrong with mysqli");
138
+                    WHERE game_submitinfo_id = " . $submit_id."") or die("something is wrong with mysqli");
139 139
                 $sql_submit = $query_submit->fetch_array(MYSQLI_BOTH) or die("something is wrong with mysqli2");
140 140
 
141 141
                 $submit_text   = $sql_submit['submit_text'];
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                 $sql = $mysqli->query("INSERT INTO game_user_comments (game_id,comment_id)
154 154
                     VALUES ('$sub_game_id',LAST_INSERT_ID())") or die("something is wrong with INSERT mysql4");
155 155
 
156
-                $sql = $mysqli->query("DELETE FROM game_submitinfo WHERE game_submitinfo_id = " . $submit_id . "")
156
+                $sql = $mysqli->query("DELETE FROM game_submitinfo WHERE game_submitinfo_id = ".$submit_id."")
157 157
                     or die("couldn't delete game_submissions quote");
158 158
 
159 159
                 $message = "Submission converted to game comment";
Please login to merge, or discard this patch.
public/php/admin/games/submission_games.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 }
89 89
 
90 90
 //Send all smarty variables to the templates
91
-$smarty->display("file:" . $cpanel_template_folder . "games/submission_games.html");
91
+$smarty->display("file:".$cpanel_template_folder."games/submission_games.html");
92 92
 
93 93
 //close the connection
94 94
 mysqli_close($mysqli);
Please login to merge, or discard this patch.
public/php/admin/games/games_main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     $smarty->assign("message", $_SESSION['edit_message']);
32 32
 }
33 33
 
34
-$smarty->display("file:" . $cpanel_template_folder . "games/games_main.html");
34
+$smarty->display("file:".$cpanel_template_folder."games/games_main.html");
35 35
 
36 36
 //close the connection
37 37
 mysqli_close($mysqli);
Please login to merge, or discard this patch.
public/php/admin/games/games_facts.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
         $smarty->append(
47 47
             'facts_screenshots',
48 48
             array('game_fact_id' => $sql_games_facts['game_fact_id'],
49
-               'screenshot_id' => $sql_screenshots_facts['screenshot_id'],
50
-               'game_fact_screenshot' => $new_path)
49
+                'screenshot_id' => $sql_screenshots_facts['screenshot_id'],
50
+                'game_fact_screenshot' => $new_path)
51 51
         );
52 52
     }
53 53
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 $gameDao = new \AL\Common\DAO\GameDAO($mysqli);
22 22
 $smarty->assign('game', $gameDao->getGame($game_id));
23 23
 
24
-$i=0;
24
+$i = 0;
25 25
 
26 26
 //load the fact for this games
27 27
 $query_games_facts = $mysqli->query("SELECT * from game_fact
@@ -71,4 +71,4 @@  discard block
 block discarded – undo
71 71
 $smarty->assign('game_id', $game_id);
72 72
 
73 73
 //Send all smarty variables to the templates
74
-$smarty->display("file:" . $cpanel_template_folder . "games/games_facts.html");
74
+$smarty->display("file:".$cpanel_template_folder."games/games_facts.html");
Please login to merge, or discard this patch.
public/php/admin/games/db_games_release_detail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
 //***********************************************************************************
288 288
 if (isset($action) && ($action == 'add_memory_enhancement')) {
289 289
     if ($memory_enhancement == '') {
290
-        $memory_enhancement=null;
290
+        $memory_enhancement = null;
291 291
     }
292 292
 
293 293
     $memoryDao->setMemoryForRelease($release_id, $memory_id, $memory_enhancement);
Please login to merge, or discard this patch.
public/php/admin/tiles/ajax_shortlog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,4 +23,4 @@
 block discarded – undo
23 23
 $smarty->assign('changelog', $changeLogDao->getChangeLogForSection('Games'));
24 24
 
25 25
 //Send all smarty variables to the templates
26
-$smarty->display("file:" . $cpanel_template_folder . "tiles/ajax_shortlog.html");
26
+$smarty->display("file:".$cpanel_template_folder."tiles/ajax_shortlog.html");
Please login to merge, or discard this patch.
public/php/admin/individuals/individuals_main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 $smarty->assign("user_id", $_SESSION['user_id']);
42 42
 
43 43
 //Send all smarty variables to the templates
44
-$smarty->display("file:" . $cpanel_template_folder . "individuals/individuals_main.html");
44
+$smarty->display("file:".$cpanel_template_folder."individuals/individuals_main.html");
45 45
 
46 46
 //close the connection
47 47
 mysqli_close($mysqli);
Please login to merge, or discard this patch.
public/php/admin/individuals/individuals_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     $smarty->assign("user_id", $_SESSION['user_id']);
44 44
 
45 45
     //Send all smarty variables to the templates
46
-    $smarty->display("file:" . $cpanel_template_folder . "individuals/individuals_main.html");
46
+    $smarty->display("file:".$cpanel_template_folder."individuals/individuals_main.html");
47 47
 } else {
48 48
     //Let's see if we have selected a nickname
49 49
     $sql_nick = $mysqli->query("SELECT * FROM individual_nicks WHERE nick_id=$ind_id")
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     $smarty->assign("user_id", $_SESSION['user_id']);
99 99
 
100 100
     //Send all smarty variables to the templates
101
-    $smarty->display("file:" . $cpanel_template_folder . "individuals/individuals_edit.html");
101
+    $smarty->display("file:".$cpanel_template_folder."individuals/individuals_edit.html");
102 102
 }
103 103
 
104 104
 //close the connection
Please login to merge, or discard this patch.