Completed
Push — master ( 9ce739...2e7ca6 )
by Ankit
04:18
created
src/Session.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 class Session
7 7
 {
8 8
 
9
-    public static function put($key, $value){
9
+    public static function put($key, $value) {
10 10
         $_SESSION[$key] = $value;
11 11
     }
12 12
 
13
-    public static function get($key){
13
+    public static function get($key) {
14 14
         return (isset($_SESSION[$key]) ? $_SESSION[$key] : null);
15 15
     }
16 16
 
17
-    public static function forget($key){
17
+    public static function forget($key) {
18 18
         unset($_SESSION[$key]);
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
tests/TestUser.php 1 patch
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-    * @depends test_authRegister
55
-    *  Testing for the register with empty username
56
-    */
54
+     * @depends test_authRegister
55
+     *  Testing for the register with empty username
56
+     */
57 57
     public function test_authregisterEmptyUsername()
58 58
     {
59 59
         $output = $this->obRegister->authregister(
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-    * @depends test_authRegister
81
-    *  Testing for the register with invalid email credentials
82
-    */
80
+     * @depends test_authRegister
81
+     *  Testing for the register with invalid email credentials
82
+     */
83 83
     public function test_authregisterInvalidEmail()
84 84
     {
85 85
         $output = $this->obRegister->authregister(
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-    * @depends test_authRegister
107
-    *  Testing for the register with repeated credentials
108
-    */
106
+     * @depends test_authRegister
107
+     *  Testing for the register with repeated credentials
108
+     */
109 109
     public function test_authregisterInvalidCredentials()
110 110
     {
111 111
         $output = $this->obRegister->authregister(
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
     }
138 138
 
139 139
     /**
140
-    * @depends test_authRegister
141
-    *  Testing for the login with correct credentials
142
-    */
140
+     * @depends test_authRegister
141
+     *  Testing for the login with correct credentials
142
+     */
143 143
 
144 144
     public function test_authLogin()
145 145
     {
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
     }
164 164
 
165 165
     /**
166
-    * @depends test_authRegister
167
-    *  Testing for the login with empty credentials
168
-    */
166
+     * @depends test_authRegister
167
+     *  Testing for the login with empty credentials
168
+     */
169 169
 
170 170
     public function test_authLoginEmptyValues()
171 171
     {
@@ -191,9 +191,9 @@  discard block
 block discarded – undo
191 191
     }
192 192
 
193 193
     /**
194
-    * @depends test_authRegister
195
-    *  Testing for the login with invalid or wrong email
196
-    */
194
+     * @depends test_authRegister
195
+     *  Testing for the login with invalid or wrong email
196
+     */
197 197
 
198 198
     public function test_authLoginWrongEmail()
199 199
     {
@@ -215,9 +215,9 @@  discard block
 block discarded – undo
215 215
     }
216 216
 
217 217
     /**
218
-    * @depends test_authRegister
219
-    *  Testing for the login with invalid email credentials
220
-    */
218
+     * @depends test_authRegister
219
+     *  Testing for the login with invalid email credentials
220
+     */
221 221
     public function test_authLoginInvalidUsernameEmail()
222 222
     {
223 223
         $output = $this->obLogin->authLogin(
@@ -238,9 +238,9 @@  discard block
 block discarded – undo
238 238
     }
239 239
 
240 240
     /**
241
-    * @depends test_authRegister
242
-    *  Testing for the login with invalid password credentials
243
-    */
241
+     * @depends test_authRegister
242
+     *  Testing for the login with invalid password credentials
243
+     */
244 244
     public function test_authLoginInvalidPassword()
245 245
     {
246 246
         $output = $this->obLogin->authLogin(
@@ -260,9 +260,9 @@  discard block
 block discarded – undo
260 260
     }
261 261
 
262 262
     /**
263
-    * @depends test_authRegister
264
-    *  Testing for the Profile::class with valid login_id
265
-    */
263
+     * @depends test_authRegister
264
+     *  Testing for the Profile::class with valid login_id
265
+     */
266 266
     public function test_getProfile()
267 267
     {
268 268
         $output = Profile::getProfile(1);
@@ -275,9 +275,9 @@  discard block
 block discarded – undo
275 275
     }
276 276
 
277 277
     /**
278
-    * @depends test_authRegister
279
-    *  Testing for the Profile::class with invalid login_id
280
-    */
278
+     * @depends test_authRegister
279
+     *  Testing for the Profile::class with invalid login_id
280
+     */
281 281
     public function test_getProfileInvalidID()
282 282
     {
283 283
         $output = Profile::getProfile(0);
@@ -285,9 +285,9 @@  discard block
 block discarded – undo
285 285
     }
286 286
 
287 287
     /**
288
-    * @depends test_authRegister
289
-    *  Testing for the User::class with valid login_id
290
-    */
288
+     * @depends test_authRegister
289
+     *  Testing for the User::class with valid login_id
290
+     */
291 291
     public function test_userDetails()
292 292
     {
293 293
         $expectedOutput = [
@@ -306,9 +306,9 @@  discard block
 block discarded – undo
306 306
     }
307 307
 
308 308
     /**
309
-    * @depends test_authRegister
310
-    *  Testing for the User::class with invalid data
311
-    */
309
+     * @depends test_authRegister
310
+     *  Testing for the User::class with invalid data
311
+     */
312 312
     public function test_userDetailsInvalidID()
313 313
     {
314 314
         $output = $this->obUser->userDetails(0, True);
@@ -316,9 +316,9 @@  discard block
 block discarded – undo
316 316
     }
317 317
 
318 318
     /**
319
-    * @depends test_authRegister
320
-    *  Testing for the Validate::class for email
321
-    */
319
+     * @depends test_authRegister
320
+     *  Testing for the Validate::class for email
321
+     */
322 322
     public function test_validateEmailInDb()
323 323
     {
324 324
         $output = $this->obValidate->validateEmailInDb('[email protected]');
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
     }
327 327
 
328 328
     /**
329
-    * @depends test_authRegister
330
-    *  Testing for the Validate::class for username
331
-    */
329
+     * @depends test_authRegister
330
+     *  Testing for the Validate::class for username
331
+     */
332 332
     public function test_validateUsernameInDb()
333 333
     {
334 334
         $output = $this->obValidate->validateUsernameInDb('test');
@@ -336,9 +336,9 @@  discard block
 block discarded – undo
336 336
     }
337 337
 
338 338
     /**
339
-    * @depends test_authRegister
340
-    *  Testing for the Validate::class for non-existing username
341
-    */
339
+     * @depends test_authRegister
340
+     *  Testing for the Validate::class for non-existing username
341
+     */
342 342
     public function test_validateUsernameInDbNot()
343 343
     {
344 344
         $output = $this->obValidate->validateUsernameInDb('abc');
@@ -346,9 +346,9 @@  discard block
 block discarded – undo
346 346
     }
347 347
 
348 348
     /**
349
-    * @depends test_authRegister
350
-    *  Testing for the Validate::class for non-existing email
351
-    */
349
+     * @depends test_authRegister
350
+     *  Testing for the Validate::class for non-existing email
351
+     */
352 352
     public function test_validateEmailInDbNot()
353 353
     {
354 354
         $output = $this->obValidate->validateEmailInDb('[email protected]');
@@ -356,9 +356,9 @@  discard block
 block discarded – undo
356 356
     }
357 357
 
358 358
     /**
359
-    * @depends test_authRegister
360
-    *  Testing for the Online::class
361
-    */
359
+     * @depends test_authRegister
360
+     *  Testing for the Online::class
361
+     */
362 362
     public function test_Online()
363 363
     {
364 364
         Online::setOnlineStatus(1);
@@ -373,9 +373,9 @@  discard block
 block discarded – undo
373 373
 
374 374
 
375 375
     /**
376
-    *   @depends test_Online
377
-    *  Empty the DB
378
-    */
376
+     *   @depends test_Online
377
+     *  Empty the DB
378
+     */
379 379
     public function test_EmptyDB()
380 380
     {
381 381
         $connect = mysqli_connect(
Please login to merge, or discard this patch.
tests/TestChat.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-    * @depends test_authRegister
51
-    *  Testing for the register with empty username
52
-    */
50
+     * @depends test_authRegister
51
+     *  Testing for the register with empty username
52
+     */
53 53
     public function test_authRegister2($sessionId)
54 54
     {
55 55
         $expectedOutput = [
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
     }
95 95
 
96 96
     /**
97
-    *   @depends test_authRegister
98
-    *  Empty the DB
99
-    */
97
+     *   @depends test_authRegister
98
+     *  Empty the DB
99
+     */
100 100
     public function test_EmptyDB()
101 101
     {
102 102
         $connect = mysqli_connect(
Please login to merge, or discard this patch.