Test Failed
Push — 1.0.0-dev ( cd4ca0...fa3079 )
by nguereza
02:36
created
core/classes/Security.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -98,10 +98,10 @@
 block discarded – undo
98 98
         }
99 99
 		
100 100
         /**
101
-        * This method is used to check the whitelist IP address access
102
-        *
103
-        * @return boolean
104
-        */
101
+         * This method is used to check the whitelist IP address access
102
+         *
103
+         * @return boolean
104
+         */
105 105
         public function checkWhiteListIpAccess() {
106 106
             $this->logger->debug('Validation of the IP address access ...');
107 107
             $this->logger->debug('Check if whitelist IP access is enabled in the configuration ...');
Please login to merge, or discard this patch.
app/views/home.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
             <p>Required PHP version : <b>PHP &gt;= <?php echo TNH_MIN_PHP_VERSION; ?>, PHP &lt; <?php echo TNH_MAX_PHP_VERSION; ?></b></p>
33 33
             <p>Release date : <b><?php echo TNH_RELEASE_DATE; ?></b></p>
34 34
             <hr />
35
-            <p>Current controller: <b class = "text-muted label-danger"><?php echo APPS_CONTROLLER_PATH . 'Home.php';?></b>
36
-            <p>Current view: <b class = "text-muted label-danger"><?php echo APPS_VIEWS_PATH . 'home.php';?></b>
35
+            <p>Current controller: <b class = "text-muted label-danger"><?php echo APPS_CONTROLLER_PATH . 'Home.php'; ?></b>
36
+            <p>Current view: <b class = "text-muted label-danger"><?php echo APPS_VIEWS_PATH . 'home.php'; ?></b>
37 37
           </div>
38 38
         </div>
39 39
       </div>
Please login to merge, or discard this patch.
core/libraries/Assets.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
      */
45 45
     class Assets extends BaseClass {
46 46
 
47
-         /**
48
-         * Construct new instance
49
-         */
47
+            /**
48
+             * Construct new instance
49
+             */
50 50
         public function __construct() {
51 51
             parent::__construct();
52 52
         }
Please login to merge, or discard this patch.
core/classes/Url.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * SOFTWARE.
29 29
      */
30 30
 
31
-    class Url extends BaseClass{
31
+    class Url extends BaseClass {
32 32
 
33 33
         /**
34 34
          * Construct new instance
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
          * @return string the final path after add suffix if configured
152 152
          * otherwise the same value will be returned
153 153
          */
154
-        protected function addSuffixInPath($path){
154
+        protected function addSuffixInPath($path) {
155 155
             $suffix = get_config('url_suffix');
156 156
             if ($suffix && $path) {
157 157
                 if (strpos($path, '?') !== false) {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
                     break;
129 129
                 }
130 130
             }
131
-			$port = get_instance()->request->server('SERVER_PORT');
131
+            $port = get_instance()->request->server('SERVER_PORT');
132 132
             
133 133
             if ($port && !in_array($port, array(80, 443))) {
134 134
                 $domain .= ':' . $port;
Please login to merge, or discard this patch.
core/libraries/Browser.php 3 patches
Indentation   +120 added lines, -120 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-	defined('ROOT_PATH') || exit('Access denied');
2
+    defined('ROOT_PATH') || exit('Access denied');
3 3
     /**
4 4
      * TNH Framework
5 5
      *
@@ -28,68 +28,68 @@  discard block
 block discarded – undo
28 28
      * SOFTWARE.
29 29
      */
30 30
     
31
-	class Browser {
32
-
33
-		/**
34
-		 * List of know platforms
35
-		 * @var array
36
-		 */
37
-		private $platforms = array(
38
-									'/windows nt 10/i'      =>  'Windows 10',
39
-									'/windows phone 10/i'   =>  'Windows Phone 10',
40
-									'/windows phone 8.1/i'  =>  'Windows Phone 8.1',
41
-									'/windows phone 8/i'    =>  'Windows Phone 8',
42
-									'/windows nt 6.3/i'     =>  'Windows 8.1',
43
-									'/windows nt 6.2/i'     =>  'Windows 8',
44
-									'/windows nt 6.1/i'     =>  'Windows 7',
45
-									'/windows nt 6.0/i'     =>  'Windows Vista',
46
-									'/windows nt 5.2/i'     =>  'Windows Server 2003/XP x64',
47
-									'/windows nt 5.1/i'     =>  'Windows XP',
48
-									'/windows xp/i'         =>  'Windows XP',
49
-									'/windows nt 5.0/i'     =>  'Windows 2000',
50
-									'/windows me/i'         =>  'Windows ME',
51
-									'/win98/i'              =>  'Windows 98',
52
-									'/win95/i'              =>  'Windows 95',
53
-									'/win16/i'              =>  'Windows 3.11',
54
-									'/ipad/i'               =>  'iPad',
31
+    class Browser {
32
+
33
+        /**
34
+         * List of know platforms
35
+         * @var array
36
+         */
37
+        private $platforms = array(
38
+                                    '/windows nt 10/i'      =>  'Windows 10',
39
+                                    '/windows phone 10/i'   =>  'Windows Phone 10',
40
+                                    '/windows phone 8.1/i'  =>  'Windows Phone 8.1',
41
+                                    '/windows phone 8/i'    =>  'Windows Phone 8',
42
+                                    '/windows nt 6.3/i'     =>  'Windows 8.1',
43
+                                    '/windows nt 6.2/i'     =>  'Windows 8',
44
+                                    '/windows nt 6.1/i'     =>  'Windows 7',
45
+                                    '/windows nt 6.0/i'     =>  'Windows Vista',
46
+                                    '/windows nt 5.2/i'     =>  'Windows Server 2003/XP x64',
47
+                                    '/windows nt 5.1/i'     =>  'Windows XP',
48
+                                    '/windows xp/i'         =>  'Windows XP',
49
+                                    '/windows nt 5.0/i'     =>  'Windows 2000',
50
+                                    '/windows me/i'         =>  'Windows ME',
51
+                                    '/win98/i'              =>  'Windows 98',
52
+                                    '/win95/i'              =>  'Windows 95',
53
+                                    '/win16/i'              =>  'Windows 3.11',
54
+                                    '/ipad/i'               =>  'iPad',
55 55
                                     '/ipod/i'               =>  'iPod',
56 56
                                     '/iphone/i'             =>  'iPhone',
57 57
                                     '/macintosh|mac os x/i' =>  'Mac OS X',
58
-									'/mac_powerpc/i'        =>  'Mac OS 9',
59
-									'/android/i'            =>  'Android',
60
-									'/ubuntu/i'             =>  'Ubuntu',
61
-									'/linux/i'              =>  'Linux',
62
-									'/blackberry/i'         =>  'BlackBerry',
63
-									'/webos/i'              =>  'Mobile'
64
-								);
65
-
66
-		/**
67
-		 * List of know browsers
68
-		 * @var array
69
-		 */
70
-	 	private $browsers = array(
71
-									'/mobile/i'     =>  'Handheld Browser',
72
-									'/msie/i'       =>  'Internet Explorer',
73
-									'/firefox/i'    =>  'Firefox',
74
-									'/chrome/i'     =>  'Chrome',
75
-									'/safari/i'     =>  'Safari',
76
-									'/edge/i'       =>  'Edge',
77
-									'/opera/i'      =>  'Opera',
78
-									'/netscape/i'   =>  'Netscape',
79
-									'/maxthon/i'    =>  'Maxthon',
80
-									'/konqueror/i'  =>  'Konqueror'
81
-								);
82
-
83
-	 	/**
84
-	 	 * Agent string
85
-	 	 * @var string
86
-	 	 */
87
-		private $agent = '';
88
-
89
-		/**
90
-		 * Browser name
91
-		 * @var string
92
-		 */
58
+                                    '/mac_powerpc/i'        =>  'Mac OS 9',
59
+                                    '/android/i'            =>  'Android',
60
+                                    '/ubuntu/i'             =>  'Ubuntu',
61
+                                    '/linux/i'              =>  'Linux',
62
+                                    '/blackberry/i'         =>  'BlackBerry',
63
+                                    '/webos/i'              =>  'Mobile'
64
+                                );
65
+
66
+        /**
67
+         * List of know browsers
68
+         * @var array
69
+         */
70
+            private $browsers = array(
71
+                                    '/mobile/i'     =>  'Handheld Browser',
72
+                                    '/msie/i'       =>  'Internet Explorer',
73
+                                    '/firefox/i'    =>  'Firefox',
74
+                                    '/chrome/i'     =>  'Chrome',
75
+                                    '/safari/i'     =>  'Safari',
76
+                                    '/edge/i'       =>  'Edge',
77
+                                    '/opera/i'      =>  'Opera',
78
+                                    '/netscape/i'   =>  'Netscape',
79
+                                    '/maxthon/i'    =>  'Maxthon',
80
+                                    '/konqueror/i'  =>  'Konqueror'
81
+                                );
82
+
83
+            /**
84
+             * Agent string
85
+             * @var string
86
+             */
87
+        private $agent = '';
88
+
89
+        /**
90
+         * Browser name
91
+         * @var string
92
+         */
93 93
         private $browserName = '';
94 94
 
95 95
         /**
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
          */
129 129
         private $isFacebook = false;
130 130
 
131
-		/**
131
+        /**
132 132
          * Class constructor
133 133
          */
134 134
         public function __construct($userAgent = '') {
@@ -255,12 +255,12 @@  discard block
 block discarded – undo
255 255
             return $this->isFacebook;
256 256
         }
257 257
 
258
-         /**
259
-         * Returns a formatted string with a summary of the details of the browser.
260
-         * @codeCoverageIgnore
261
-         * 
262
-         * @return string formatted string with a summary of the browser
263
-         */
258
+            /**
259
+             * Returns a formatted string with a summary of the details of the browser.
260
+             * @codeCoverageIgnore
261
+             * 
262
+             * @return string formatted string with a summary of the browser
263
+             */
264 264
         public function __toString() {
265 265
             return "<strong>Browser Name:</strong> {$this->getBrowser()}<br/>\n" .
266 266
                 "<strong>Browser Version:</strong> {$this->getVersion()}<br/>\n" .
@@ -304,70 +304,70 @@  discard block
 block discarded – undo
304 304
         /**
305 305
          * Determine the user's platform
306 306
          */
307
-		protected function checkPlatform() { 
308
-			foreach ($this->platforms as $regex => $value) { 
309
-				if (preg_match($regex, $this->agent) ) {
310
-					$this->setPlatform($value);
311
-					break;
312
-				}
313
-			}   
314
-		}
307
+        protected function checkPlatform() { 
308
+            foreach ($this->platforms as $regex => $value) { 
309
+                if (preg_match($regex, $this->agent) ) {
310
+                    $this->setPlatform($value);
311
+                    break;
312
+                }
313
+            }   
314
+        }
315 315
 
316
-		/**
316
+        /**
317 317
          * Routine to determine the browser type
318 318
          */
319
-		protected function checkBrowser() {
320
-			foreach ($this->browsers as $regex => $value) { 
321
-				if (preg_match($regex, $this->agent ) ) {
322
-					$this->setBrowser($value);
323
-					break;
324
-				}
325
-			}
326
-		}
319
+        protected function checkBrowser() {
320
+            foreach ($this->browsers as $regex => $value) { 
321
+                if (preg_match($regex, $this->agent ) ) {
322
+                    $this->setBrowser($value);
323
+                    break;
324
+                }
325
+            }
326
+        }
327 327
 
328
-		/**
328
+        /**
329 329
          * Routine to determine the browser version
330 330
          */
331
-		protected function checkBrowserVersion(){
332
-			$detected = $this->getBrowser();
333
-			$detect = array_search($detected, $this->browsers);
334
-			$browser = str_replace(array('/i','/'), '', $detect);
335
-			$regex = "/(?<browser>version|{$browser})[\/]+(?<version>[0-9.|a-zA-Z.]*)/i";
336
-			if (preg_match_all($regex, $this->agent, $matches)) {
337
-				$found = array_search($browser, $matches['browser']);
338
-				$this->setVersion($matches['version'][$found]);
339
-			}
340
-		}
341
-
342
-		/**
331
+        protected function checkBrowserVersion(){
332
+            $detected = $this->getBrowser();
333
+            $detect = array_search($detected, $this->browsers);
334
+            $browser = str_replace(array('/i','/'), '', $detect);
335
+            $regex = "/(?<browser>version|{$browser})[\/]+(?<version>[0-9.|a-zA-Z.]*)/i";
336
+            if (preg_match_all($regex, $this->agent, $matches)) {
337
+                $found = array_search($browser, $matches['browser']);
338
+                $this->setVersion($matches['version'][$found]);
339
+            }
340
+        }
341
+
342
+        /**
343 343
          * Determine if the browser is Mobile or not
344 344
          */
345
-		protected function checkMobile() {
346
-			if (preg_match('/(android|avantgo|blackberry|bolt|boost|cricket'
345
+        protected function checkMobile() {
346
+            if (preg_match('/(android|avantgo|blackberry|bolt|boost|cricket'
347 347
                 . '|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i', $this->agent) ) {
348
-				$this->setMobile(true);
349
-			}
350
-		}
348
+                $this->setMobile(true);
349
+            }
350
+        }
351 351
 
352
-		/**
352
+        /**
353 353
          * Determine if the browser is Tablet or not
354 354
          */
355
-		protected function checkTablet() {
356
-			if (preg_match('/tablet|ipad/i', $this->agent) ) {
357
-				$this->setTablet(true);
358
-			}
359
-		}
355
+        protected function checkTablet() {
356
+            if (preg_match('/tablet|ipad/i', $this->agent) ) {
357
+                $this->setTablet(true);
358
+            }
359
+        }
360 360
 
361
-		/**
361
+        /**
362 362
          * Determine if the browser is Robot or not
363 363
          */
364
-		protected function checkBot() {
365
-			if (preg_match('/bot/i', $this->agent) ) {
366
-				$this->setRobot(true);
367
-			}
368
-		}
364
+        protected function checkBot() {
365
+            if (preg_match('/bot/i', $this->agent) ) {
366
+                $this->setRobot(true);
367
+            }
368
+        }
369 369
 
370
-		/**
370
+        /**
371 371
          * Detect if URL is loaded from FacebookExternalHit
372 372
          */
373 373
         protected function checkFacebook() {
@@ -380,10 +380,10 @@  discard block
 block discarded – undo
380 380
         }
381 381
 
382 382
 
383
-		 /**
384
-         * Protected routine to calculate and determine what
385
-         *  the browser is in use (including platform)
386
-         */
383
+            /**
384
+             * Protected routine to calculate and determine what
385
+             *  the browser is in use (including platform)
386
+             */
387 387
         protected function determine() {
388 388
             $this->checkPlatform();
389 389
             $this->checkBrowser();
@@ -394,4 +394,4 @@  discard block
 block discarded – undo
394 394
             $this->checkFacebook();
395 395
         }
396 396
 		
397
-	}
397
+    }
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
          * Reset all properties
145 145
          */
146 146
         public function reset() {
147
-            $this->agent =  get_instance()->globalvar->server('HTTP_USER_AGENT');
147
+            $this->agent = get_instance()->globalvar->server('HTTP_USER_AGENT');
148 148
             $this->browserName = 'unknown';
149 149
             $this->version = 'unknown';
150 150
             $this->platform = 'unknown';
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
          */
307 307
 		protected function checkPlatform() { 
308 308
 			foreach ($this->platforms as $regex => $value) { 
309
-				if (preg_match($regex, $this->agent) ) {
309
+				if (preg_match($regex, $this->agent)) {
310 310
 					$this->setPlatform($value);
311 311
 					break;
312 312
 				}
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
          */
319 319
 		protected function checkBrowser() {
320 320
 			foreach ($this->browsers as $regex => $value) { 
321
-				if (preg_match($regex, $this->agent ) ) {
321
+				if (preg_match($regex, $this->agent)) {
322 322
 					$this->setBrowser($value);
323 323
 					break;
324 324
 				}
@@ -328,10 +328,10 @@  discard block
 block discarded – undo
328 328
 		/**
329 329
          * Routine to determine the browser version
330 330
          */
331
-		protected function checkBrowserVersion(){
331
+		protected function checkBrowserVersion() {
332 332
 			$detected = $this->getBrowser();
333 333
 			$detect = array_search($detected, $this->browsers);
334
-			$browser = str_replace(array('/i','/'), '', $detect);
334
+			$browser = str_replace(array('/i', '/'), '', $detect);
335 335
 			$regex = "/(?<browser>version|{$browser})[\/]+(?<version>[0-9.|a-zA-Z.]*)/i";
336 336
 			if (preg_match_all($regex, $this->agent, $matches)) {
337 337
 				$found = array_search($browser, $matches['browser']);
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
          */
345 345
 		protected function checkMobile() {
346 346
 			if (preg_match('/(android|avantgo|blackberry|bolt|boost|cricket'
347
-                . '|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i', $this->agent) ) {
347
+                . '|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i', $this->agent)) {
348 348
 				$this->setMobile(true);
349 349
 			}
350 350
 		}
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
          * Determine if the browser is Tablet or not
354 354
          */
355 355
 		protected function checkTablet() {
356
-			if (preg_match('/tablet|ipad/i', $this->agent) ) {
356
+			if (preg_match('/tablet|ipad/i', $this->agent)) {
357 357
 				$this->setTablet(true);
358 358
 			}
359 359
 		}
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
          * Determine if the browser is Robot or not
363 363
          */
364 364
 		protected function checkBot() {
365
-			if (preg_match('/bot/i', $this->agent) ) {
365
+			if (preg_match('/bot/i', $this->agent)) {
366 366
 				$this->setRobot(true);
367 367
 			}
368 368
 		}
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
             if (stristr($this->agent, 'FacebookExternalHit')) {
375 375
                 $this->setRobot(true);
376 376
                 $this->setFacebook(true);
377
-            }  else if (stristr($this->agent, 'FBIOS')) {
377
+            } else if (stristr($this->agent, 'FBIOS')) {
378 378
                 $this->setFacebook(true);
379 379
             }
380 380
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -374,7 +374,7 @@
 block discarded – undo
374 374
             if (stristr($this->agent, 'FacebookExternalHit')) {
375 375
                 $this->setRobot(true);
376 376
                 $this->setFacebook(true);
377
-            }  else if (stristr($this->agent, 'FBIOS')) {
377
+            } else if (stristr($this->agent, 'FBIOS')) {
378 378
                 $this->setFacebook(true);
379 379
             }
380 380
         }
Please login to merge, or discard this patch.
core/libraries/Upload.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
          *
284 284
          * @return object the current instance
285 285
          */
286
-        public function setUploadedFileData(array $fileData){
286
+        public function setUploadedFileData(array $fileData) {
287 287
             $this->uploadedFileData = $fileData;
288 288
             return $this;
289 289
         }
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
          *    @return    boolean
527 527
          */
528 528
         public function isAllowOverwriting() {
529
-            return $this->overwriteFile ;
529
+            return $this->overwriteFile;
530 530
         }
531 531
 
532 532
         /**
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
          *    @return    string
566 566
          */
567 567
         public function getDestinationDirectory() {
568
-            return $this->destinationDirectory ;
568
+            return $this->destinationDirectory;
569 569
         }
570 570
 
571 571
         /**
Please login to merge, or discard this patch.
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -277,10 +277,10 @@  discard block
 block discarded – undo
277 277
             return $this;
278 278
         }
279 279
 
280
-         /**
281
-         *    Get the uploade file array
282
-         *    @return    array
283
-         */
280
+            /**
281
+             *    Get the uploade file array
282
+             *    @return    array
283
+             */
284 284
         public function getUploadedFileData() {
285 285
             return $this->uploadedFileData;
286 286
         }
@@ -320,10 +320,10 @@  discard block
 block discarded – undo
320 320
             return $this;
321 321
         }
322 322
 
323
-         /**
324
-         *    Get the filename
325
-         *    @return    string
326
-         */
323
+            /**
324
+             *    Get the filename
325
+             *    @return    string
326
+             */
327 327
         public function getFilename() {
328 328
             return $this->filename;
329 329
         }
@@ -352,23 +352,23 @@  discard block
 block discarded – undo
352 352
             return $this;
353 353
         }
354 354
 
355
-         /**
356
-         *    Get the max file size
357
-         *    @return    double|int
358
-         */
355
+            /**
356
+             *    Get the max file size
357
+             *    @return    double|int
358
+             */
359 359
         public function getMaxFileSize() {
360 360
             return $this->maxFileSize;
361 361
         }
362 362
 
363
-         /**
364
-         *    Append a mime type to allowed mime types
365
-         *
366
-         *    @since     1.0
367
-         *    @version   1.0.1
368
-         *    @param     string      $mime
369
-         *    @return    object
370
-         *    @method    boolean     setAllowMimeType
371
-         */
363
+            /**
364
+             *    Append a mime type to allowed mime types
365
+             *
366
+             *    @since     1.0
367
+             *    @version   1.0.1
368
+             *    @param     string      $mime
369
+             *    @return    object
370
+             *    @method    boolean     setAllowMimeType
371
+             */
372 372
         public function setAllowMimeType($mime) {
373 373
             $this->allowedMimeTypes[] = strtolower($mime);
374 374
             $this->file['allowed_mime_types'][] = strtolower($mime); 
@@ -485,10 +485,10 @@  discard block
 block discarded – undo
485 485
             return $this;
486 486
         }
487 487
 
488
-         /**
489
-         *    Get the upload function name like "copy", "move_uploaded_file"
490
-         *    @return    string
491
-         */
488
+            /**
489
+             *    Get the upload function name like "copy", "move_uploaded_file"
490
+             *    @return    string
491
+             */
492 492
         public function getUploadFunction() {
493 493
             return $this->uploadFunction;
494 494
         }
@@ -506,10 +506,10 @@  discard block
 block discarded – undo
506 506
             return $this;
507 507
         }
508 508
 
509
-         /**
510
-         *    Get the allow overwriting
511
-         *    @return    boolean
512
-         */
509
+            /**
510
+             *    Get the allow overwriting
511
+             *    @return    boolean
512
+             */
513 513
         public function isAllowOverwriting() {
514 514
             return $this->overwriteFile ;
515 515
         }
@@ -614,14 +614,14 @@  discard block
 block discarded – undo
614 614
             return $this->error;
615 615
         }
616 616
 
617
-         /**
618
-         *    Retrive status of upload
619
-         *
620
-         *    @since     1.0
621
-         *    @version   1.0
622
-         *    @return    boolean
623
-         *    @method    boolean    getStatus
624
-         */
617
+            /**
618
+             *    Retrive status of upload
619
+             *
620
+             *    @since     1.0
621
+             *    @version   1.0
622
+             *    @return    boolean
623
+             *    @method    boolean    getStatus
624
+             */
625 625
         public function getStatus() {
626 626
             return $this->file['status'];
627 627
         }
@@ -654,11 +654,11 @@  discard block
 block discarded – undo
654 654
                                 && is_file($file);
655 655
         }
656 656
 
657
-         /**
658
-         * Set the filename if is empty using the uploaded data information
659
-         *
660
-         * @return object the current instance
661
-         */
657
+            /**
658
+             * Set the filename if is empty using the uploaded data information
659
+             *
660
+             * @return object the current instance
661
+             */
662 662
         protected function setFilenameUsingUploadedData() {
663 663
             // set original filename if not have a new name
664 664
             if (empty($this->filename)) {
@@ -745,12 +745,12 @@  discard block
 block discarded – undo
745 745
             return true;
746 746
         }
747 747
 
748
-         /**
749
-         *    Check the file overwritting
750
-         *    @since     1.0
751
-         *    @version   1.0
752
-         *    @return    boolean
753
-         */
748
+            /**
749
+             *    Check the file overwritting
750
+             *    @since     1.0
751
+             *    @version   1.0
752
+             *    @return    boolean
753
+             */
754 754
         protected function checkFileOverwritting() {
755 755
             if ($this->fileExists($this->destinationDirectory . $this->filename)) {
756 756
                 return $this->overwriteFile;
Please login to merge, or discard this patch.
core/classes/DBSessionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@
 block discarded – undo
318 318
          * Get some parameters data need like ip address, hostname, browser info, etc.
319 319
          * @return array
320 320
          */
321
-        protected function getSessionDataParams(){
321
+        protected function getSessionDataParams() {
322 322
             $this->OBJ->loader->functions('user_agent'); 
323 323
             $this->OBJ->loader->library('Browser'); 
324 324
             
Please login to merge, or discard this patch.
core/libraries/Cookie.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@
 block discarded – undo
64 64
         public function set($name, $value = '', $expire = 0, $path = '/', $domain = '', $secure = false, $httponly = false) {
65 65
             if (headers_sent()) {
66 66
                 show_error('There exists a cookie that we wanted to create that we couldn\'t '
67
-						    . 'because headers was already sent. Make sure to do this first ' 
68
-							. 'before outputing anything.');
67
+                            . 'because headers was already sent. Make sure to do this first ' 
68
+                            . 'before outputing anything.');
69 69
             }
70 70
             $timestamp = $expire;
71 71
             if ($expire) {
Please login to merge, or discard this patch.
core/classes/Controller.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
          *
94 94
          * @codeCoverageIgnore
95 95
          */
96
-         private function startAppSession() {
96
+            private function startAppSession() {
97 97
             //$_SESSION is not available on cli mode 
98 98
             if (!IS_CLI) {
99 99
                 //set session params
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
          * @codeCoverageIgnore
144 144
          */
145 145
         private function setAppSessionConfig() {
146
-             //the default is to store in the files
146
+                //the default is to store in the files
147 147
             $sessionHandler = $this->config->get('session_handler', 'files');
148 148
             $this->logger->info('Session handler: ' . $sessionHandler);
149 149
             if ($sessionHandler == 'files') {
Please login to merge, or discard this patch.