Passed
Push — master ( 8f2f7d...1b80ba )
by Nicolas
03:42
created
public/php/common/tiles/latest_interviews_tile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     $smarty->append(
38 38
         'recent_interviews',
39
-        array( 'individual_name' => $sql_recent_interviews['ind_name'],
39
+        array('individual_name' => $sql_recent_interviews['ind_name'],
40 40
                 'individual_id' => $sql_recent_interviews['ind_id'],
41 41
                 'interview_author' => $sql_recent_interviews['userid'],
42 42
                 'interview_author_id' => $sql_recent_interviews['user_id'],
Please login to merge, or discard this patch.
public/php/common/tiles/db_latest_comments_tile.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 include("../../config/admin.php");
20 20
 
21 21
 if (isset($action)) {
22
-    if ($action=='delete_comment') {
22
+    if ($action == 'delete_comment') {
23 23
         create_log_entry('Games', $comment_id, 'Comment', $comment_id, 'Delete', $_SESSION['user_id']);
24 24
 
25 25
         $sql = $mysqli->query("DELETE FROM game_user_comments WHERE comment_id = '$comment_id'")
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         //(instead of a post with pure HTML) The translation of the 'enter' breaks is different in JS, so in JS I do a
73 73
         // conversion to a <br>. However, when we edit a comment, this <br> should not be
74 74
         //visible to the user, hence again, now this conversion in php
75
-        $breaks = array("<br />","<br>","<br/>");
75
+        $breaks = array("<br />", "<br>", "<br/>");
76 76
         $comment = str_ireplace($breaks, "\r\n", $comment);
77 77
 
78 78
         $date = date("F j, Y", $query_comment['timestamp']);
@@ -97,5 +97,5 @@  discard block
 block discarded – undo
97 97
     }
98 98
 
99 99
     $smarty->assign('smarty_action', 'delete_comment');
100
-    $smarty->display("file:" . $mainsite_template_folder. "latest_comments_tile.html");
100
+    $smarty->display("file:".$mainsite_template_folder."latest_comments_tile.html");
101 101
 }
Please login to merge, or discard this patch.
public/php/common/tiles/changes_per_month_tile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 $last_year = date("Y") - 1;
24 24
 $current_year = date("Y") - 1;
25 25
 $current_day = 01;
26
-$months = array(1=>'Jan',2=>'Feb',3=>'Mar',4=>'Apr',5=>'May',6=>'Jun',
27
-    7=>'Jul',8=>'Aug',9=>'Sep',10=>'Oct',11=>'Nov',12=>'Dec');
26
+$months = array(1=>'Jan', 2=>'Feb', 3=>'Mar', 4=>'Apr', 5=>'May', 6=>'Jun',
27
+    7=>'Jul', 8=>'Aug', 9=>'Sep', 10=>'Oct', 11=>'Nov', 12=>'Dec');
28 28
 $i = 0;
29 29
 
30 30
 if ($current_month == 13) {
Please login to merge, or discard this patch.
public/php/common/tiles/db_tile_bug_report.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,5 +31,5 @@
 block discarded – undo
31 31
     $_SESSION['edit_message'] = "Please fill in all required fields";
32 32
 }
33 33
 
34
-header('Location: ' . $_SERVER['HTTP_REFERER']);
34
+header('Location: '.$_SERVER['HTTP_REFERER']);
35 35
 die('');
Please login to merge, or discard this patch.
public/php/common/tiles/latest_reviews_tile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     $pos_end = strpos($review_text, '[/frontpage]');
48 48
     $nr_char = $pos_end - $pos_start;
49 49
 
50
-    $review_text  = substr($review_text, $pos_start, $nr_char);
50
+    $review_text = substr($review_text, $pos_start, $nr_char);
51 51
 
52 52
     //$review_text = str_replace("[i][b]Comments[/b][/i]", "",$review_text);
53 53
     //$review_text = str_replace("[i][b]Intro[/b][/i]", "",$review_text);
Please login to merge, or discard this patch.
public/php/common/DAO/GameDAO.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/Game.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/Game.php";
6 6
 
7 7
 /**
8 8
  * DAO for Games
Please login to merge, or discard this patch.
public/php/common/DAO/LanguageDAO.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/Language/Language.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Language/Language.php";
6 6
 
7 7
 /**
8 8
  * DAO for ports
Please login to merge, or discard this patch.
public/php/common/DAO/ChangeDAO.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/Database/Change.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Database/Change.php";
6 6
 
7 7
 /**
8 8
  * DAO for DB Change
Please login to merge, or discard this patch.
public/php/common/DAO/IndividualRoleDAO.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/Individual/IndividualRole.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Individual/IndividualRole.php";
6 6
 
7 7
 /**
8 8
  * DAO for Individual Roles
Please login to merge, or discard this patch.