Passed
Push — 1.0.0-dev ( a1ce08...4f1d46 )
by nguereza
10:50
created
core/classes/Router.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
          * Remove the DOCUMENT_ROOT and front controller from segments if exists
408 408
          * @return void
409 409
          */
410
-        protected function removeDocumentRootFrontControllerFromSegments(){
410
+        protected function removeDocumentRootFrontControllerFromSegments() {
411 411
             $segment = $this->segments;
412 412
             $baseUrl = get_config('base_url');
413 413
             //check if the app is not in DOCUMENT_ROOT
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
                     break;
526 526
                 }
527 527
             }
528
-            if($findIndex !== -1){
528
+            if ($findIndex !== -1) {
529 529
                 //$args[0] => full string captured by preg_match
530 530
                 //$args[1], $args[2], $args[n] => contains the value of 
531 531
                 //(:num), (:alpha), (:alnum), (:any)
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
          * Find file path of the current controller using the current module
551 551
          * @return boolean true if the file path is found otherwise false.
552 552
          */
553
-        protected function findControllerFullPathUsingCurrentModule(){
553
+        protected function findControllerFullPathUsingCurrentModule() {
554 554
             $path = Module::findControllerFullPath(ucfirst($this->controller), $this->module);
555 555
             if (!$path) {
556 556
                 $this->logger->info('The controller [' . $this->controller . '] not found in the module, may be will use the module [' . $this->module . '] as controller');
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
          * or the current request does not use module
567 567
          * @return void
568 568
          */
569
-        protected function setRouteParamsIfNoModuleOrNotFound(){
569
+        protected function setRouteParamsIfNoModuleOrNotFound() {
570 570
             $segment = $this->segments;
571 571
             //controller
572 572
             if (isset($segment[0])) {
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
          * or the current request use module
588 588
          * @return void
589 589
          */
590
-        protected function setRouteParamsIfAppHasModuleOrFound(){
590
+        protected function setRouteParamsIfAppHasModuleOrFound() {
591 591
             //get the module list
592 592
             $modules = Module::getModuleList();
593 593
             $segment = $this->segments;
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
                     $this->controller = $segment[0];
601 601
 
602 602
                     //check if the request use the same module name and controller
603
-                    if($this->findControllerFullPathUsingCurrentModule()){
603
+                    if ($this->findControllerFullPathUsingCurrentModule()) {
604 604
                         array_shift($segment);
605 605
                     }
606 606
                 }
Please login to merge, or discard this patch.