@@ -117,16 +117,16 @@ |
||
117 | 117 | |
118 | 118 | // Redirect to 404 if not enough parameters provided |
119 | 119 | |
120 | - if(count($path_args) < count($route_args['required'])) |
|
120 | + if (count($path_args) < count($route_args['required'])) |
|
121 | 121 | redirect(Route::get404()->path); |
122 | 122 | |
123 | - if(count($path_args) == 0) |
|
123 | + if (count($path_args) == 0) |
|
124 | 124 | { |
125 | 125 | $this->CI->{$this->route->method}(); |
126 | 126 | } |
127 | 127 | else |
128 | 128 | { |
129 | - call_user_func_array( [$this->CI, $this->route->method], array_values($path_args) ); |
|
129 | + call_user_func_array([$this->CI, $this->route->method], array_values($path_args)); |
|
130 | 130 | } |
131 | 131 | |
132 | 132 |
@@ -570,12 +570,12 @@ discard block |
||
570 | 570 | |
571 | 571 | foreach ($replaces as $regex => $replace) |
572 | 572 | { |
573 | - if($customRegex) |
|
573 | + if ($customRegex) |
|
574 | 574 | continue; |
575 | 575 | |
576 | 576 | $matches = []; |
577 | 577 | |
578 | - if(preg_match('/^\{(.*)\}$/', $segment)) |
|
578 | + if (preg_match('/^\{(.*)\}$/', $segment)) |
|
579 | 579 | { |
580 | 580 | $foundedArgs[$key] = $segment; |
581 | 581 | } |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | $c = 0; |
584 | 584 | $segment = preg_replace('/'.$regex.'/', $replace, $segment, 1, $c); |
585 | 585 | |
586 | - if( $regex == array_keys($replaces)[0] && $c > 0) |
|
586 | + if ($regex == array_keys($replaces)[0] && $c > 0) |
|
587 | 587 | $customRegex = TRUE; |
588 | 588 | } |
589 | 589 | } |
@@ -1018,7 +1018,7 @@ discard block |
||
1018 | 1018 | { |
1019 | 1019 | for ($i = 0; $i < count($e_findPath); $i++) |
1020 | 1020 | { |
1021 | - if(in_array($i, $skip_seg)) |
|
1021 | + if (in_array($i, $skip_seg)) |
|
1022 | 1022 | continue; |
1023 | 1023 | |
1024 | 1024 | if ($valid) |