Passed
Push — master ( 0483c6...e7012a )
by Nicolas
08:54
created
public/php/common/DAO/LocationDAO.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace AL\Common\DAO;
3 3
 
4
-require_once __DIR__."/../../lib/Db.php" ;
5
-require_once __DIR__."/../Model/Location/Location.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Location/Location.php";
6 6
 
7 7
 /**
8 8
  * DAO for Locations
Please login to merge, or discard this patch.
public/php/common/DAO/GameReleaseDAO.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace AL\Common\DAO;
3 3
 
4
-require_once __DIR__."/../../lib/Db.php" ;
5
-require_once __DIR__."/../Model/Game/GameRelease.php" ;
6
-require_once __DIR__."/../Model/Game/Memory.php" ;
7
-require_once __DIR__."/../Model/PubDev/PubDev.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/GameRelease.php";
6
+require_once __DIR__."/../Model/Game/Memory.php";
7
+require_once __DIR__."/../Model/PubDev/PubDev.php";
8 8
 
9 9
 /**
10 10
  * DAO for Game Releases
Please login to merge, or discard this patch.
public/php/common/DAO/CopyProtectionDAO.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace AL\Common\DAO;
3 3
 
4
-require_once __DIR__."/../../lib/Db.php" ;
5
-require_once __DIR__."/../Model/Game/CopyProtection.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/CopyProtection.php";
6 6
 
7 7
 /**
8 8
  * DAO for Copy Protection
Please login to merge, or discard this patch.
public/php/common/DAO/CommentsDAO.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -224,15 +224,15 @@  discard block
 block discarded – undo
224 224
         } else {
225 225
             $where_clause = "";
226 226
         }
227
-        if (isset($action) and $action=="autoload") {
228
-            if (strlen($where_clause) >1) {
227
+        if (isset($action) and $action == "autoload") {
228
+            if (strlen($where_clause) > 1) {
229 229
                 $where_clause .= " AND temp.timestamp < $last_timestamp ";
230 230
             } elseif (strlen($where_clause) == 0) {
231 231
                 $where_clause .= " WHERE temp.timestamp < $last_timestamp ";
232 232
             }
233 233
         }
234 234
         
235
-        if (isset($action) and $action=="search") {
235
+        if (isset($action) and $action == "search") {
236 236
             $where_clause .= " WHERE temp.timestamp <= $last_timestamp ";
237 237
         }
238 238
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         FROM temp
257 257
         LEFT JOIN comments
258 258
             ON (temp.comments_id = comments.comments_id)
259
-        ". $where_clause ."
259
+        ". $where_clause."
260 260
         ORDER BY temp.timestamp DESC LIMIT 5";
261 261
 
262 262
         return $query;
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
         $oldcomment = RemoveSmillies($oldcomment);
456 456
         $comment = stripslashes($oldcomment);
457 457
         if (isset($action) and $action == 'get_comment_text') {
458
-            $breaks = array("<br />","<br>","<br/>");
458
+            $breaks = array("<br />", "<br>", "<br/>");
459 459
             $comment = str_ireplace($breaks, "\r\n", $comment);
460 460
         }
461 461
         
@@ -482,13 +482,13 @@  discard block
 block discarded – undo
482 482
                 $comments_id
483 483
             );
484 484
 
485
-            if ($comment_type ==  "game_comment") {
485
+            if ($comment_type == "game_comment") {
486 486
                 create_log_entry('Games', $comments_id, 'Comment', $comments_id, 'Update', $_SESSION['user_id']);
487
-            } elseif ($comment_type ==  "game_review_comment") {
487
+            } elseif ($comment_type == "game_review_comment") {
488 488
                 create_log_entry('Reviews', $comments_id, 'Comment', $comments_id, 'Update', $_SESSION['user_id']);
489
-            } elseif ($comment_type ==  "interview_comment") {
489
+            } elseif ($comment_type == "interview_comment") {
490 490
                 create_log_entry('Interviews', $comments_id, 'Comment', $comments_id, 'Update', $_SESSION['user_id']);
491
-            } elseif ($comment_type ==  "article_comment") {
491
+            } elseif ($comment_type == "article_comment") {
492 492
                 create_log_entry('Articles', $comments_id, 'Comment', $comments_id, 'Update', $_SESSION['user_id']);
493 493
             }
494 494
         }
Please login to merge, or discard this patch.
public/php/common/DAO/GameSeriesDAO.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace AL\Common\DAO;
3 3
 
4
-require_once __DIR__."/../../lib/Db.php" ;
5
-require_once __DIR__."/../Model/Game/GameSeries.php" ;
6
-require_once __DIR__."/../Model/Game/Game.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/GameSeries.php";
6
+require_once __DIR__."/../Model/Game/Game.php";
7 7
 
8 8
 /**
9 9
  * DAO for GamesSeries
Please login to merge, or discard this patch.
public/php/common/DAO/InterviewDAO.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace AL\Common\DAO;
3 3
 
4
-require_once __DIR__."/../../lib/Db.php" ;
5
-require_once __DIR__."/../Model/Interview/Interview.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Interview/Interview.php";
6 6
 
7 7
 /**
8 8
  * DAO for Interview
Please login to merge, or discard this patch.
public/php/common/DAO/DeveloperRoleDAO.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace AL\Common\DAO;
3 3
 
4
-require_once __DIR__."/../../lib/Db.php" ;
5
-require_once __DIR__."/../Model/PubDev/DeveloperRole.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/PubDev/DeveloperRole.php";
6 6
 
7 7
 /**
8 8
  * DAO for Developer Roles
Please login to merge, or discard this patch.
public/php/common/DAO/DiskProtectionDAO.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace AL\Common\DAO;
3 3
 
4
-require_once __DIR__."/../../lib/Db.php" ;
5
-require_once __DIR__."/../Model/Game/DiskProtection.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/DiskProtection.php";
6 6
 
7 7
 /**
8 8
  * DAO for Disk Protection
Please login to merge, or discard this patch.
public/php/common/DAO/TrainerOptionDAO.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace AL\Common\DAO;
3 3
 
4
-require_once __DIR__."/../../lib/Db.php" ;
5
-require_once __DIR__."/../Model/Game/TrainerOption.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/TrainerOption.php";
6 6
 
7 7
 /**
8 8
  * DAO for Trainer Option
Please login to merge, or discard this patch.