Passed
Push — master ( 395e1e...8a0601 )
by Nicolas
08:55
created
public/php/common/DAO/GameReleaseAkaDAO.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,13 +87,13 @@
 block discarded – undo
87 87
         $stmt->close();
88 88
     }
89 89
 
90
-     /**
91
-     * Delete an AKA for a release
92
-     *
93
-     * @param integer Game_release_aka_id
94
-     * @param integer Game_release_id
95
-     *
96
-     */
90
+        /**
91
+         * Delete an AKA for a release
92
+         *
93
+         * @param integer Game_release_aka_id
94
+         * @param integer Game_release_id
95
+         *
96
+         */
97 97
     public function deleteAkaForRelease($game_release_aka_id, $game_release_id) {
98 98
         $stmt = \AL\Db\execute_query(
99 99
             "GameReleaseAkaDAO: DeleteAkaForRelease",
Please login to merge, or discard this 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/GameReleaseAka.php" ;
6
-require_once __DIR__."/../Model/Language/Language.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/GameReleaseAka.php";
6
+require_once __DIR__."/../Model/Language/Language.php";
7 7
 
8 8
 /**
9 9
  * DAO for Game Releases AKAs
Please login to merge, or discard this patch.
public/php/common/DAO/TosDAO.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
         return $tos_versions;
46 46
     }
47 47
 
48
-     /**
49
-     * Get all tos IDs incompatible with a release
50
-     *
51
-     * @param integer Release ID
52
-     * @return integer[] List of incompatible TOS IDs
53
-     */
48
+        /**
49
+         * Get all tos IDs incompatible with a release
50
+         *
51
+         * @param integer Release ID
52
+         * @return integer[] List of incompatible TOS IDs
53
+         */
54 54
     public function getIncompatibleTosForRelease($release_id) {
55 55
         $stmt = \AL\Db\execute_query(
56 56
             "TosDAO: getIncompatibleTosForRelease",
@@ -144,11 +144,11 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
 
147
-     /**
148
-     * add a tos to the database
149
-     *
150
-     * @param varchar tos
151
-     */
147
+        /**
148
+         * add a tos to the database
149
+         *
150
+         * @param varchar tos
151
+         */
152 152
     public function addTos($tos) {
153 153
         $stmt = \AL\Db\execute_query(
154 154
             "TosDAO: addTos",
@@ -176,12 +176,12 @@  discard block
 block discarded – undo
176 176
         $stmt->close();
177 177
     }
178 178
 
179
-     /**
180
-     * update a tos version
181
-     *
182
-     * @param int tos_id
183
-     * @param varchar tos_name
184
-     */
179
+        /**
180
+         * update a tos version
181
+         *
182
+         * @param int tos_id
183
+         * @param varchar tos_name
184
+         */
185 185
     public function updateTos($tos_id, $tos_name) {
186 186
         $stmt = \AL\Db\execute_query(
187 187
             "TosDAO: updateTos",
Please login to merge, or discard this 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/Tos.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/Tos.php";
6 6
 
7 7
 /**
8 8
  * DAO for Tos versions
Please login to merge, or discard this patch.
public/php/common/DAO/MediaScanDAO.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
         $this->mysqli = $mysqli;
16 16
     }
17 17
 
18
-     /**
19
-     * Add a mediaScan to a media
20
-     *
21
-     * @param int release_id
22
-     * @param int media_type_id
23
-     */
18
+        /**
19
+         * Add a mediaScan to a media
20
+         *
21
+         * @param int release_id
22
+         * @param int media_type_id
23
+         */
24 24
     public function addMediaScanToMedia($media_id, $scan_type_id, $media_scan_save_path, $image) {
25 25
 
26 26
         foreach ($image['tmp_name'] as $key => $tmp_name) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 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/Dump/MediaScan.php" ;
6
-require_once __DIR__."/../Model/Dump/MediaScanType.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Dump/MediaScan.php";
6
+require_once __DIR__."/../Model/Dump/MediaScanType.php";
7 7
 
8 8
 /**
9 9
  * DAO for MediaScan
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
         $media_scan_id = null;
146 146
         if ($stmt->fetch()) {
147
-            $media_scan_id  = new \AL\Common\Model\Dump\MediaScan(
147
+            $media_scan_id = new \AL\Common\Model\Dump\MediaScan(
148 148
                 $media_scan_id, null, null, null
149 149
             );
150 150
         }
Please login to merge, or discard this patch.
public/php/common/DAO/NewsDAO.php 2 patches
Indentation   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -155,10 +155,9 @@  discard block
 block discarded – undo
155 155
     }
156 156
 
157 157
     /**
158
-    * Return a specific news article
159
-
160
-    * @return \AL\Common\Model\News\News A single news
161
-    */
158
+     * Return a specific news article
159
+     * @return \AL\Common\Model\News\News A single news
160
+     */
162 161
     public function getNews($news_id) {
163 162
         $stmt = \AL\Db\execute_query(
164 163
             "NewsDAO: getNews",
@@ -239,9 +238,9 @@  discard block
 block discarded – undo
239 238
     }
240 239
 
241 240
     /**
242
-    * Get the total count of news on the website
243
-    * @return number Total number of news
244
-    */
241
+     * Get the total count of news on the website
242
+     * @return number Total number of news
243
+     */
245 244
     public function getNewsCount() {
246 245
         $stmt = \AL\Db\execute_query(
247 246
             "NewsDAO: getNewsCount",
Please login to merge, or discard this 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/News/News.php" ;
6
-require_once __DIR__."/../Model/User/User.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/News/News.php";
6
+require_once __DIR__."/../Model/User/User.php";
7 7
 
8 8
 /**
9 9
  * DAO for News
Please login to merge, or discard this patch.
public/php/common/DAO/UserDAO.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/User/User.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/User/User.php";
6 6
 
7 7
 /**
8 8
  * DAO for User
Please login to merge, or discard this patch.
public/php/common/DAO/ValidateLinkDAO.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace AL\Common\DAO;
3 3
 
4
-require_once __DIR__."/../../lib/Db.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5 5
 
6 6
 /**
7 7
  * DAO for links submitted by users that need to be validated
Please login to merge, or discard this patch.
public/php/common/DAO/GameReleaseScanDAO.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      * @param string $imgext Image extension
36 36
      *
37 37
      * @return int ID of the newly created scan
38
-    */
38
+     */
39 39
     public function addScanToRelease($game_release_id, $type, $imgext, $notes) {
40 40
         $stmt = \AL\Db\execute_query(
41 41
             "GameReleaseScanDAO: addScanToRelease",
Please login to merge, or discard this 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/GameReleaseScan.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/GameReleaseScan.php";
6 6
 
7 7
 /**
8 8
  * DAO for Game Release Scans
Please login to merge, or discard this patch.
public/php/common/DAO/GameSubmissionDAO.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -132,11 +132,11 @@  discard block
 block discarded – undo
132 132
         return $submissions;
133 133
     }
134 134
     
135
-     /**
136
-    * Get the total count of submissions
137
-    *
138
-    * @param  integer $user_id Optional ID of a user to count comments for
139
-    * @return integer Number of comments     */
135
+        /**
136
+         * Get the total count of submissions
137
+         *
138
+         * @param  integer $user_id Optional ID of a user to count comments for
139
+         * @return integer Number of comments     */
140 140
     public function getGameSubmissionCount($user_id = null) {
141 141
         if (isset($user_id)) {
142 142
             $stmt = \AL\Db\execute_query(
@@ -170,10 +170,10 @@  discard block
 block discarded – undo
170 170
     
171 171
     
172 172
     /**
173
-    * Get the submission screenshots
174
-    *
175
-    * @param  integer $submission_id
176
-    * @return screenshots links    */
173
+     * Get the submission screenshots
174
+     *
175
+     * @param  integer $submission_id
176
+     * @return screenshots links    */
177 177
     /*public function getGameSubmissionScreenshots($submission_id = null) {
178 178
         $stmt = \AL\Db\execute_query(
179 179
             "GameSubmissionDAO: Get the screenshots of the submission",
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 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/GameSubmission.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/Game/GameSubmission.php";
6 6
 
7 7
 use AL\Common\Model\GameSubmission;
8 8
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     
19 19
     private function getGameSubmissionQuery($user_id = null, $last_timestamp = null, $action = null, $done = null) {
20 20
             
21
-        $query =  "SELECT
21
+        $query = "SELECT
22 22
                 game.game_id,
23 23
                 game.game_name,
24 24
                 game_submitinfo.timestamp,
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
             $query .= " AND users.user_id = $user_id";
54 54
         }
55 55
 
56
-        if (isset($action) and $action=="autoload") {
56
+        if (isset($action) and $action == "autoload") {
57 57
             $query .= " AND game_submitinfo.timestamp < $last_timestamp ";
58
-        } elseif (isset($action) and $action=="search") {
58
+        } elseif (isset($action) and $action == "search") {
59 59
             $query .= " AND game_submitinfo.timestamp <= $last_timestamp ";
60 60
         }
61 61
 
Please login to merge, or discard this patch.
public/php/common/DAO/PubDevDAO.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -137,12 +137,12 @@
 block discarded – undo
137 137
         return $distributors;
138 138
     }
139 139
     
140
-      /**
141
-     * add a distributor to a release
142
-     *
143
-     * @param integer release ID
144
-     * @param integer pub_Dev ID
145
-     */
140
+        /**
141
+         * add a distributor to a release
142
+         *
143
+         * @param integer release ID
144
+         * @param integer pub_Dev ID
145
+         */
146 146
     public function addDistributorToRelease($release_id, $pub_dev_id) {
147 147
         $stmt = \AL\Db\execute_query(
148 148
             "PubDevDAO: addDistributorToRelease",
Please login to merge, or discard this 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/PubDev.php" ;
4
+require_once __DIR__."/../../lib/Db.php";
5
+require_once __DIR__."/../Model/PubDev/PubDev.php";
6 6
 
7 7
 /**
8 8
  * DAO for PubDev
Please login to merge, or discard this patch.