Test Failed
Push — develop ( fe93c2...a526c9 )
by nguereza
05:50
created
core/classes/Response.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                 $this->logger->info('Cannot find view [' . $view . '] in module [' . $module . '] '
211 211
                                     . 'using the default location');
212 212
             }
213
-	    if (!$path) {
213
+        if (!$path) {
214 214
                 $path = $this->getDefaultFilePathForView($viewFile);
215 215
             }
216 216
             $this->logger->info('The view file path to be loaded is [' . $path . ']');
@@ -286,12 +286,12 @@  discard block
 block discarded – undo
286 286
             return $this->finalPageContent;
287 287
         }
288 288
 
289
-         /**
290
-         * Set the final page to be rendered
291
-         * @param string $finalPage the content of the final page
292
-         * 
293
-         * @return object
294
-         */
289
+            /**
290
+             * Set the final page to be rendered
291
+             * @param string $finalPage the content of the final page
292
+             * 
293
+             * @return object
294
+             */
295 295
         public function setFinalPageContent($finalPage) {
296 296
             $this->finalPageContent = $finalPage;
297 297
             return $this;
@@ -366,12 +366,12 @@  discard block
 block discarded – undo
366 366
             //@codeCoverageIgnoreEnd
367 367
         }
368 368
 
369
-         /**
370
-         * Dispatch the FINAL_VIEW_READY event
371
-         *             
372
-         * @return string|null the final view content after processing by each listener
373
-         * if they exists otherwise the same content will be returned
374
-         */
369
+            /**
370
+             * Dispatch the FINAL_VIEW_READY event
371
+             *             
372
+             * @return string|null the final view content after processing by each listener
373
+             * if they exists otherwise the same content will be returned
374
+             */
375 375
         protected function dispatchFinalViewEvent() {
376 376
             //dispatch
377 377
             $event = get_instance()->eventdispatcher->dispatch(
@@ -415,12 +415,12 @@  discard block
 block discarded – undo
415 415
                                           && (bool) ini_get('zlib.output_compression') === false;
416 416
         }
417 417
 
418
-         /**
419
-         * Return the default full file path for view
420
-         * @param  string $file    the filename
421
-         * 
422
-         * @return string|null          the full file path
423
-         */
418
+            /**
419
+             * Return the default full file path for view
420
+             * @param  string $file    the filename
421
+             * 
422
+             * @return string|null          the full file path
423
+             */
424 424
         protected function getDefaultFilePathForView($file){
425 425
             $searchDir = array(APPS_VIEWS_PATH, CORE_VIEWS_PATH);
426 426
             $fullFilePath = null;
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
                 $headerModifiedSince = $globals->server('HTTP_IF_MODIFIED_SINCE');
454 454
                 if (!empty($headerModifiedSince) && $lastModified <= strtotime($headerModifiedSince)) {
455 455
                     $this->logger->info('The cache page content is not yet expire for the '
456
-                                         . 'URL [' . $this->currentUrl . '] send 304 header to browser');
456
+                                            . 'URL [' . $this->currentUrl . '] send 304 header to browser');
457 457
                     $this->setStatus(304);
458 458
                     $this->sendHeaders();
459 459
                     return true;
@@ -469,8 +469,8 @@  discard block
 block discarded – undo
469 469
          */
470 470
         protected function sendCachePageContentToBrowser(&$cache) {
471 471
             $this->logger->info('The cache page content is expired or the browser does '
472
-                 . 'not send the HTTP_IF_MODIFIED_SINCE header for the URL [' . $this->currentUrl . '] '
473
-                 . 'send cache headers to tell the browser');
472
+                    . 'not send the HTTP_IF_MODIFIED_SINCE header for the URL [' . $this->currentUrl . '] '
473
+                    . 'send cache headers to tell the browser');
474 474
             $this->sendHeaders();
475 475
             //current page cache key
476 476
             $pageCacheKey = $this->currentUrlCacheKey;
@@ -609,18 +609,18 @@  discard block
 block discarded – undo
609 609
             }
610 610
         }
611 611
 
612
-         /**
613
-         * Set the mandory headers, like security, etc.
614
-         */
612
+            /**
613
+             * Set the mandory headers, like security, etc.
614
+             */
615 615
         protected function setRequiredHeaders() {
616 616
             $requiredHeaders = array(
617 617
                                 'X-XSS-Protection' => '1; mode=block',
618 618
                                 'X-Frame-Options'  => 'SAMEORIGIN'
619 619
                             );
620 620
             foreach ($requiredHeaders as $key => $value) {
621
-               if (!isset($this->headers[$key])) {
621
+                if (!isset($this->headers[$key])) {
622 622
                     $this->headers[$key] = $value;
623
-               } 
623
+                } 
624 624
             }
625 625
         }
626 626
     }
Please login to merge, or discard this patch.
core/classes/EventDispatcher.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
                 return;
157 157
             } 
158 158
             $this->logger->info('Found the registered event listener for the '
159
-                                 . 'event [' . $event->getName() . '] the list are: ' . stringify_vars($list));
159
+                                    . 'event [' . $event->getName() . '] the list are: ' . stringify_vars($list));
160 160
             foreach ($list as $listener) {
161 161
                 $result = call_user_func_array($listener, array($event));
162 162
                 if ($event->isReturnBack() === true) {
Please login to merge, or discard this patch.