Test Failed
Push — 1.0.0-dev ( 9d96e6...0f391a )
by nguereza
02:52
created
core/classes/Response.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
                 $this->logger->info('Cannot find view [' . $view . '] in module [' . $module . '] '
186 186
                                     . 'using the default location');
187 187
             }
188
-			if (!$path) {
188
+            if (!$path) {
189 189
                 $path = $this->getDefaultFilePathForView($viewFile);
190 190
             }
191 191
             $this->logger->info('The view file path to be loaded is [' . $path . ']');
@@ -261,12 +261,12 @@  discard block
 block discarded – undo
261 261
             return $this->finalPageContent;
262 262
         }
263 263
 
264
-         /**
265
-         * Set the final page to be rendered
266
-         * @param string $finalPage the content of the final page
267
-         * 
268
-         * @return object
269
-         */
264
+            /**
265
+             * Set the final page to be rendered
266
+             * @param string $finalPage the content of the final page
267
+             * 
268
+             * @return object
269
+             */
270 270
         public function setFinalPageContent($finalPage) {
271 271
             $this->finalPageContent = $finalPage;
272 272
             return $this;
@@ -340,11 +340,11 @@  discard block
 block discarded – undo
340 340
         }
341 341
 
342 342
                 /**
343
-         * Dispatch the FINAL_VIEW_READY event
344
-         *             
345
-         * @return string|null the final view content after processing by each listener
346
-         * if they exists otherwise the same content will be returned
347
-         */
343
+                 * Dispatch the FINAL_VIEW_READY event
344
+                 *             
345
+                 * @return string|null the final view content after processing by each listener
346
+                 * if they exists otherwise the same content will be returned
347
+                 */
348 348
         protected function dispatchFinalViewEvent() {
349 349
             //dispatch
350 350
             $event = get_instance()->eventdispatcher->dispatch(
@@ -389,12 +389,12 @@  discard block
 block discarded – undo
389 389
                                           && (bool) ini_get('zlib.output_compression') === false;
390 390
         }
391 391
 
392
-         /**
393
-         * Return the default full file path for view
394
-         * @param  string $file    the filename
395
-         * 
396
-         * @return string|null          the full file path
397
-         */
392
+            /**
393
+             * Return the default full file path for view
394
+             * @param  string $file    the filename
395
+             * 
396
+             * @return string|null          the full file path
397
+             */
398 398
         protected function getDefaultFilePathForView($file){
399 399
             $searchDir = array(APPS_VIEWS_PATH, CORE_VIEWS_PATH);
400 400
             $fullFilePath = null;
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
                 $headerModifiedSince = $globals->server('HTTP_IF_MODIFIED_SINCE');
428 428
                 if (!empty($headerModifiedSince) && $lastModified <= strtotime($headerModifiedSince)) {
429 429
                     $this->logger->info('The cache page content is not yet expire for the '
430
-                                         . 'URL [' . $this->currentUrl . '] send 304 header to browser');
430
+                                            . 'URL [' . $this->currentUrl . '] send 304 header to browser');
431 431
                     $this->sendHeaders(304);
432 432
                     return true;
433 433
                 }
@@ -442,8 +442,8 @@  discard block
 block discarded – undo
442 442
          */
443 443
         protected function sendCachePageContentToBrowser(&$cache) {
444 444
             $this->logger->info('The cache page content is expired or the browser does '
445
-                 . 'not send the HTTP_IF_MODIFIED_SINCE header for the URL [' . $this->currentUrl . '] '
446
-                 . 'send cache headers to tell the browser');
445
+                    . 'not send the HTTP_IF_MODIFIED_SINCE header for the URL [' . $this->currentUrl . '] '
446
+                    . 'send cache headers to tell the browser');
447 447
             $this->sendHeaders(200);
448 448
             //current page cache key
449 449
             $pageCacheKey = $this->currentUrlCacheKey;
@@ -582,18 +582,18 @@  discard block
 block discarded – undo
582 582
             }
583 583
         }
584 584
 
585
-         /**
586
-         * Set the mandory headers, like security, etc.
587
-         */
585
+            /**
586
+             * Set the mandory headers, like security, etc.
587
+             */
588 588
         protected function setRequiredHeaders() {
589 589
             $requiredHeaders = array(
590 590
                                 'X-XSS-Protection' => '1; mode=block',
591 591
                                 'X-Frame-Options'  => 'SAMEORIGIN'
592 592
                             );
593 593
             foreach ($requiredHeaders as $key => $value) {
594
-               if (!isset($this->headers[$key])) {
594
+                if (!isset($this->headers[$key])) {
595 595
                     $this->headers[$key] = $value;
596
-               } 
596
+                } 
597 597
             }
598 598
         }
599 599
     }
Please login to merge, or discard this patch.
core/classes/Loader.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
             $moduleConfigPath = get_instance()->module->findConfigFullPath($filename, $module);
220 220
             if ($moduleConfigPath) {
221 221
                 $this->logger->info('Found config [' . $filename . '] from module [' . $module . '], '
222
-                                  . 'the file path is [' . $moduleConfigPath . '] we will used it');
222
+                                    . 'the file path is [' . $moduleConfigPath . '] we will used it');
223 223
                 $configFilePath = $moduleConfigPath;
224 224
             } else {
225 225
                 $this->logger->info('Cannot find config [' . $filename . '] from modules using the default location');
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
             $moduleLibraryPath = get_instance()->module->findLibraryFullPath($class, $module);
480 480
             if ($moduleLibraryPath) {
481 481
                 $this->logger->info('Found library [' . $class . '] from module [' . $module . '], the '
482
-                                   . 'file path is [' . $moduleLibraryPath . '] we will used it');
482
+                                    . 'file path is [' . $moduleLibraryPath . '] we will used it');
483 483
                 $libraryFilePath = $moduleLibraryPath;
484 484
             } else {
485 485
                 $this->logger->info('Cannot find library [' . $class . '] from modules using the default location');
Please login to merge, or discard this patch.
core/classes/model/DBSessionHandlerModel.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
      */
30 30
 	
31 31
     /**
32
-    * DB session handler model class
33
-    */
32
+     * DB session handler model class
33
+     */
34 34
     abstract class DBSessionHandlerModel extends Model {
35 35
 		
36 36
         /**
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
          *
41 41
          * @example
42 42
          * 	array(
43
-	 *	      'sid' => '', //VARCHAR(100) Note: this a primary key
44
-	 *	      'sdata' => '', //TEXT
45
-	 *	      'stime' => '', //unix timestamp (INT|BIGINT)
46
-	 *	      'shost' => '', //VARCHAR(255)
47
-	 *	      'sip' => '', //VARCHAR(128) 
48
-	 *	      'sbrowser' => '', //VARCHAR(255) 
49
-	 *	      'skey' => '' //VARCHAR(255) 
50
-	 *	);
43
+         *	      'sid' => '', //VARCHAR(100) Note: this a primary key
44
+         *	      'sdata' => '', //TEXT
45
+         *	      'stime' => '', //unix timestamp (INT|BIGINT)
46
+         *	      'shost' => '', //VARCHAR(255)
47
+         *	      'sip' => '', //VARCHAR(128) 
48
+         *	      'sbrowser' => '', //VARCHAR(255) 
49
+         *	      'skey' => '' //VARCHAR(255) 
50
+         *	);
51 51
          */
52 52
         protected $sessionTableColumns = array();
53 53
 
Please login to merge, or discard this patch.
core/classes/Config.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
             if ($init) {
47 47
                 $this->init();
48 48
                 //@codeCoverageIgnoreStart
49
-                 if (ENVIRONMENT == 'production' && in_array(strtolower($this->config['log_level']), array('debug', 'info', 'notice'))) {
49
+                    if (ENVIRONMENT == 'production' && in_array(strtolower($this->config['log_level']), array('debug', 'info', 'notice'))) {
50 50
                     $this->logger->warning('You are in production environment, please set '
51
-                                           . 'log level to WARNING, ERROR, CRITICAL, ALERT, EMERGENCY to increase the application performance');
51
+                                            . 'log level to WARNING, ERROR, CRITICAL, ALERT, EMERGENCY to increase the application performance');
52 52
                 }
53 53
                 //@codeCoverageIgnoreEnd
54 54
             }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             if (empty($this->config['base_url'])) {
147 147
                 if (ENVIRONMENT == 'production') {
148 148
                     $this->logger->warning('Application base URL is not set or invalid, please'
149
-                                           . ' set application base URL to increase the application loading time');
149
+                                            . ' set application base URL to increase the application loading time');
150 150
                 }
151 151
                 $baseUrl = null;
152 152
                 $protocol = 'http';
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                                                                     );
174 174
                 } else {
175 175
                     $this->logger->warning('Can not determine the application '
176
-                                           . 'base URL automatically, use http://localhost as default');
176
+                                            . 'base URL automatically, use http://localhost as default');
177 177
                     $baseUrl = 'http://localhost/';
178 178
                 }
179 179
                 $this->config['base_url'] = $baseUrl;
@@ -182,11 +182,11 @@  discard block
 block discarded – undo
182 182
         }
183 183
          
184 184
         /**
185
-        * Return the server port using variable
186
-        *
187
-        * @codeCoverageIgnore
188
-        * @return string
189
-        */
185
+         * Return the server port using variable
186
+         *
187
+         * @codeCoverageIgnore
188
+         * @return string
189
+         */
190 190
         protected function getServerPort() {
191 191
             $globals = & class_loader('GlobalVar', 'classes');
192 192
             $serverPort = $globals->server('SERVER_PORT');
Please login to merge, or discard this patch.