Passed
Push — master ( 395e1e...8a0601 )
by Nicolas
08:55
created
public/php/common/DAO/SoundHardwareDAO.php 1 patch
Indentation   +23 added lines, -24 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@  discard block
 block discarded – undo
16 16
 
17 17
     /**
18 18
      * Get all Sound Hardware Types
19
-
20 19
      * @return \AL\Common\Model\Game\SoundHardware[] An array of SoundHardware types
21 20
      */
22 21
     public function getAllSoundHardware() {
@@ -79,13 +78,13 @@  discard block
 block discarded – undo
79 78
         return $sound_hardware_types;
80 79
     }
81 80
     
82
-     /**
83
-     * Add sound hardware to game
84
-     *
85
-     * @param integer Game ID
86
-     * @param integer hardware ID
87
-     * $param text description
88
-     */
81
+        /**
82
+         * Add sound hardware to game
83
+         *
84
+         * @param integer Game ID
85
+         * @param integer hardware ID
86
+         * $param text description
87
+         */
89 88
     public function addSoundHardwareToGame($game_id, $hardware_id) {
90 89
        
91 90
         $stmt = \AL\Db\execute_query(
@@ -98,12 +97,12 @@  discard block
 block discarded – undo
98 97
         $stmt->close();
99 98
     }
100 99
     
101
-     /**
102
-     * Delete sound hardware from game
103
-     *
104
-     * @param integer Game ID
105
-     * @param integer hardware ID
106
-     */
100
+        /**
101
+         * Delete sound hardware from game
102
+         *
103
+         * @param integer Game ID
104
+         * @param integer hardware ID
105
+         */
107 106
     public function deleteSoundHardwareFromGame($game_id, $hardware_id) {
108 107
         $stmt = \AL\Db\execute_query(
109 108
             "SoundHardwareDAO: deleteSoundHardwareFromGame",
@@ -116,11 +115,11 @@  discard block
 block discarded – undo
116 115
         $stmt->close();
117 116
     }
118 117
      
119
-     /**
120
-     * add a sound hardware type to the database
121
-     *
122
-     * @param varchar sound hardware type
123
-     */
118
+        /**
119
+         * add a sound hardware type to the database
120
+         *
121
+         * @param varchar sound hardware type
122
+         */
124 123
     public function addSoundHardware($sound_hardware) {
125 124
         $stmt = \AL\Db\execute_query(
126 125
             "SoundHardwareDAO: addSoundHardware",
@@ -149,11 +148,11 @@  discard block
 block discarded – undo
149 148
     }
150 149
     
151 150
         /**
152
-     * update a sound hardware
153
-     *
154
-     * @param int sound_hardware_id
155
-     * @param varchar sound_hardware
156
-     */
151
+         * update a sound hardware
152
+         *
153
+         * @param int sound_hardware_id
154
+         * @param varchar sound_hardware
155
+         */
157 156
     public function updateSoundHardware($sound_hardware_id, $sound_hardware) {
158 157
         $stmt = \AL\Db\execute_query(
159 158
             "SoundHardwareDAO: updateSoundHardware",
Please login to merge, or discard this patch.
public/php/common/DAO/EnhancementDAO.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -78,11 +78,11 @@
 block discarded – undo
78 78
     }
79 79
     
80 80
         /**
81
-     * update a Enhancement
82
-     *
83
-     * @param int Enhancement_id
84
-     * @param varchar Enhancement_name
85
-     */
81
+         * update a Enhancement
82
+         *
83
+         * @param int Enhancement_id
84
+         * @param varchar Enhancement_name
85
+         */
86 86
     public function updateEnhancement($enhancement_id, $enhancement_name) {
87 87
         $stmt = \AL\Db\execute_query(
88 88
             "EnhancementDAO: updateEnhancement",
Please login to merge, or discard this patch.
public/php/common/DAO/EngineDAO.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
         return $game_engines;
79 79
     }
80 80
     
81
-     /**
82
-     * Set the list of game engines for this game
83
-     *
84
-     * @param integer Game ID
85
-     * @param integer[] List of game genre IDs
86
-     */
81
+        /**
82
+         * Set the list of game engines for this game
83
+         *
84
+         * @param integer Game ID
85
+         * @param integer[] List of game genre IDs
86
+         */
87 87
     public function setGameEngineForGame($game_id, $game_engine_id) {
88 88
         $stmt = \AL\Db\execute_query(
89 89
             "EngineDAO: setGameEngineForGame",
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
     }
138 138
     
139 139
         /**
140
-     * update a game engine type
141
-     *
142
-     * @param int Engine_id
143
-     * @param varchar Engine_name
144
-     */
140
+         * update a game engine type
141
+         *
142
+         * @param int Engine_id
143
+         * @param varchar Engine_name
144
+         */
145 145
     public function updateGameEngine($engine_id, $engine_name) {
146 146
         $stmt = \AL\Db\execute_query(
147 147
             "EngineDAO: updateGameEngine",
Please login to merge, or discard this patch.
public/php/common/DAO/NewsSubmissionDAO.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     }
51 51
     
52 52
     /**
53
-    * Return all news submissions, sorted by descending date
54
-    * @return \AL\Common\Model\News\News[] An array of news
55
-    */
53
+     * Return all news submissions, sorted by descending date
54
+     * @return \AL\Common\Model\News\News[] An array of news
55
+     */
56 56
     public function getAllSubmissions() {
57 57
         $stmt = \AL\Db\execute_query(
58 58
             "NewsSubmissionDAO: getAllSubmissions",
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
     }
113 113
     
114 114
     /**
115
-    * Return all news submissions, sorted by descending date
116
-    * @return \AL\Common\Model\News\News[] An array of news
117
-    */
115
+     * Return all news submissions, sorted by descending date
116
+     * @return \AL\Common\Model\News\News[] An array of news
117
+     */
118 118
     public function getAllSubmissionsForUser($user_id) {
119 119
         $stmt = \AL\Db\execute_query(
120 120
             "NewsSubmissionDAO: getAllSubmissions",
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
     
176 176
     
177 177
     /**
178
-    * Return a specific news submissions
179
-    * @return \AL\Common\Model\News\News[] An array of news
180
-    */
178
+     * Return a specific news submissions
179
+     * @return \AL\Common\Model\News\News[] An array of news
180
+     */
181 181
     public function getSpecificSubmissions($news_id) {
182 182
         $stmt = \AL\Db\execute_query(
183 183
             "NewsSubmissionDAO: getSpecificSubmissions",
@@ -260,10 +260,10 @@  discard block
 block discarded – undo
260 260
     }
261 261
   
262 262
     /**
263
-    * Get the total count of comments on the website
264
-    *
265
-    * @param  integer $user_id Optional ID of a user to count comments for
266
-    * @return integer Number of comments     */
263
+     * Get the total count of comments on the website
264
+     *
265
+     * @param  integer $user_id Optional ID of a user to count comments for
266
+     * @return integer Number of comments     */
267 267
     public function getSubmissionCount($user_id = null) {
268 268
         if (isset($user_id)) {
269 269
             $stmt = \AL\Db\execute_query(
@@ -296,11 +296,11 @@  discard block
 block discarded – undo
296 296
     }
297 297
     
298 298
     /**
299
-    * Get the comment text for a specific comment
300
-    *
301
-    * @param  integer $comments_id ID of a comment
302
-    * @return text the text of the comment
303
-    */
299
+     * Get the comment text for a specific comment
300
+     *
301
+     * @param  integer $comments_id ID of a comment
302
+     * @return text the text of the comment
303
+     */
304 304
     public function getNewsText($news_id = null) {
305 305
         if (isset($news_id)) {
306 306
             $stmt = \AL\Db\execute_query(
Please login to merge, or discard this patch.
public/php/common/DAO/PortDAO.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
         return $ports;
46 46
     }
47 47
 
48
-     /**
49
-     * Get the game port for a game
50
-     *
51
-     * @param integer Game ID
52
-     *
53
-     * @return Port system of the game
54
-     */
48
+        /**
49
+         * Get the game port for a game
50
+         *
51
+         * @param integer Game ID
52
+         *
53
+         * @return Port system of the game
54
+         */
55 55
     public function getPortForGame($game_id) {
56 56
         $stmt = \AL\Db\execute_query(
57 57
             "PortDAO: getPortForGame",
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
     }
102 102
     
103 103
         /**
104
-     * add a port to the database
105
-     *
106
-     * @param varchar port
107
-     */
104
+         * add a port to the database
105
+         *
106
+         * @param varchar port
107
+         */
108 108
     public function addPort($port) {
109 109
         $stmt = \AL\Db\execute_query(
110 110
             "PortDAO: addPort",
@@ -133,11 +133,11 @@  discard block
 block discarded – undo
133 133
     }
134 134
     
135 135
         /**
136
-     * update a port
137
-     *
138
-     * @param int port_id
139
-     * @param varchar port_name
140
-     */
136
+         * update a port
137
+         *
138
+         * @param int port_id
139
+         * @param varchar port_name
140
+         */
141 141
     public function updatePort($port_id, $port_name) {
142 142
         $stmt = \AL\Db\execute_query(
143 143
             "PortDAO: updatePort",
Please login to merge, or discard this patch.
public/php/common/DAO/MediaDAO.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
         return $media;
52 52
     }
53 53
 
54
-     /**
55
-     * Add a media to a release
56
-     *
57
-     * @param int release_id
58
-     * @param int media_type_id
59
-     */
54
+        /**
55
+         * Add a media to a release
56
+         *
57
+         * @param int release_id
58
+         * @param int media_type_id
59
+         */
60 60
     public function addMediaToRelease($release_id, $type_id, $label) {
61 61
         $stmt = \AL\Db\execute_query(
62 62
             "MediaDAO: AddMediaToRelease",
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
         $stmt->close();
69 69
     }
70 70
 
71
-     /**
72
-     * delete a media from a release
73
-     *
74
-     * @param int media_id
75
-     */
71
+        /**
72
+         * delete a media from a release
73
+         *
74
+         * @param int media_id
75
+         */
76 76
     public function deleteMediaFromRelease($media_id) {
77 77
         $stmt = \AL\Db\execute_query(
78 78
             "MediaDAO: deleteMediaToRelease",
@@ -84,12 +84,12 @@  discard block
 block discarded – undo
84 84
         $stmt->close();
85 85
     }
86 86
 
87
-     /**
88
-     * update a media label
89
-     *
90
-     * @param int media_id
91
-     * @param varchar label
92
-     */
87
+        /**
88
+         * update a media label
89
+         *
90
+         * @param int media_id
91
+         * @param varchar label
92
+         */
93 93
     public function updateMedia($media_id, $label, $media_type_id) {
94 94
         $stmt = \AL\Db\execute_query(
95 95
             "MediaDAO: setLabelFromMedia",
Please login to merge, or discard this patch.
public/php/common/DAO/EmulatorDAO.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -126,12 +126,12 @@  discard block
 block discarded – undo
126 126
     }
127 127
 
128 128
 
129
-     /**
130
-     * Get all emulator IDs incompatible with a release
131
-     *
132
-     * @param integer Release ID
133
-     * @return integer[] List of incompatible emulator IDs
134
-     */
129
+        /**
130
+         * Get all emulator IDs incompatible with a release
131
+         *
132
+         * @param integer Release ID
133
+         * @return integer[] List of incompatible emulator IDs
134
+         */
135 135
     public function getIncompatibleEmulatorsWithNameForRelease($release_id) {
136 136
         $stmt = \AL\Db\execute_query(
137 137
             "EmulatorDAO: getIncompatibleEmulatorIdsForRelease",
@@ -186,10 +186,10 @@  discard block
 block discarded – undo
186 186
     }
187 187
 
188 188
         /**
189
-     * add a emulator to the database
190
-     *
191
-     * @param varchar emulator
192
-     */
189
+         * add a emulator to the database
190
+         *
191
+         * @param varchar emulator
192
+         */
193 193
     public function addEmulator($emulator) {
194 194
         $stmt = \AL\Db\execute_query(
195 195
             "EmulatorDAO: addEmulator",
@@ -218,11 +218,11 @@  discard block
 block discarded – undo
218 218
     }
219 219
 
220 220
         /**
221
-     * update a emulator
222
-     *
223
-     * @param int emulator_id
224
-     * @param varchar emulator_name
225
-     */
221
+         * update a emulator
222
+         *
223
+         * @param int emulator_id
224
+         * @param varchar emulator_name
225
+         */
226 226
     public function updateEmulator($emulator_id, $emulator_name) {
227 227
         $stmt = \AL\Db\execute_query(
228 228
             "EmulatorDAO: updateEmulator",
Please login to merge, or discard this patch.
public/php/common/DAO/SystemDAO.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -218,12 +218,12 @@  discard block
 block discarded – undo
218 218
     }
219 219
 
220 220
         /**
221
-     * Set the list of system enhancements for a release
222
-     *
223
-     * @param integer Release ID
224
-     * @param integer[] system ID
225
-     * @param integer[] enhancement IDs
226
-     */
221
+         * Set the list of system enhancements for a release
222
+         *
223
+         * @param integer Release ID
224
+         * @param integer[] system ID
225
+         * @param integer[] enhancement IDs
226
+         */
227 227
     public function addEnhancedSystemForRelease($release_id, $system_id, $enhancement_id) {
228 228
 
229 229
         $stmt = \AL\Db\execute_query(
@@ -238,12 +238,12 @@  discard block
 block discarded – undo
238 238
 
239 239
 
240 240
         /**
241
-     * update system enhancements for a release
242
-     *
243
-     * @param integer Release ID
244
-     * @param integer[] system ID
245
-     * @param integer[] enhancement IDs
246
-     */
241
+         * update system enhancements for a release
242
+         *
243
+         * @param integer Release ID
244
+         * @param integer[] system ID
245
+         * @param integer[] enhancement IDs
246
+         */
247 247
     public function updateEnhancedSystemForRelease($release_id, $system_id, $enhancement_id) {
248 248
 
249 249
         $stmt = \AL\Db\execute_query(
@@ -260,11 +260,11 @@  discard block
 block discarded – undo
260 260
     }
261 261
 
262 262
         /**
263
-     * delete system enhancements for a release
264
-     *
265
-     * @param integer Release ID
266
-     * @param integer[] system ID
267
-     */
263
+         * delete system enhancements for a release
264
+         *
265
+         * @param integer Release ID
266
+         * @param integer[] system ID
267
+         */
268 268
     public function deleteEnhancedSystemForRelease($release_id, $system_id) {
269 269
 
270 270
         $stmt = \AL\Db\execute_query(
@@ -277,10 +277,10 @@  discard block
 block discarded – undo
277 277
     }
278 278
 
279 279
         /**
280
-     * add a system to the database
281
-     *
282
-     * @param varchar system
283
-     */
280
+         * add a system to the database
281
+         *
282
+         * @param varchar system
283
+         */
284 284
     public function addSystem($system) {
285 285
         $stmt = \AL\Db\execute_query(
286 286
             "SystemDAO: addSystem",
@@ -309,11 +309,11 @@  discard block
 block discarded – undo
309 309
     }
310 310
 
311 311
         /**
312
-     * update a system
313
-     *
314
-     * @param int system_id
315
-     * @param varchar system_name
316
-     */
312
+         * update a system
313
+         *
314
+         * @param int system_id
315
+         * @param varchar system_name
316
+         */
317 317
     public function updateSystem($system_id, $system_name) {
318 318
         $stmt = \AL\Db\execute_query(
319 319
             "SystemDAO: updateSystem",
Please login to merge, or discard this patch.
public/php/common/DAO/MediaTypeDAO.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
         return $media_types;
46 46
     }
47 47
 
48
-     /**
49
-     * add a media type to the database
50
-     *
51
-     * @param varchar media_type
52
-     */
48
+        /**
49
+         * add a media type to the database
50
+         *
51
+         * @param varchar media_type
52
+         */
53 53
     public function addMediaType($media_type) {
54 54
         $stmt = \AL\Db\execute_query(
55 55
             "MediaTypeDAO: addMediaType",
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
     }
79 79
     
80 80
         /**
81
-     * update a media_type
82
-     *
83
-     * @param int media_type_id
84
-     * @param varchar media_type
85
-     */
81
+         * update a media_type
82
+         *
83
+         * @param int media_type_id
84
+         * @param varchar media_type
85
+         */
86 86
     public function updateMediaType($media_type_id, $media_type_name) {
87 87
         $stmt = \AL\Db\execute_query(
88 88
             "MediaTypeDAO: updateMediaType",
Please login to merge, or discard this patch.