@@ -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 |
@@ -569,7 +569,7 @@ discard block |
||
569 | 569 | $customRegex = FALSE; |
570 | 570 | foreach ($replaces as $regex => $replace) |
571 | 571 | { |
572 | - if($customRegex) |
|
572 | + if ($customRegex) |
|
573 | 573 | continue; |
574 | 574 | |
575 | 575 | $matches = []; |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | $c = 0; |
583 | 583 | $segment = preg_replace('/'.$regex.'/', $replace, $segment, 1, $c); |
584 | 584 | |
585 | - if( $regex == array_keys($replaces)[0] && $c > 0) |
|
585 | + if ($regex == array_keys($replaces)[0] && $c > 0) |
|
586 | 586 | $customRegex = TRUE; |
587 | 587 | } |
588 | 588 | } |
@@ -1015,7 +1015,7 @@ discard block |
||
1015 | 1015 | { |
1016 | 1016 | for ($i = 0; $i < count($e_findPath); $i++) |
1017 | 1017 | { |
1018 | - if(in_array($i, $skip_seg)) |
|
1018 | + if (in_array($i, $skip_seg)) |
|
1019 | 1019 | continue; |
1020 | 1020 | |
1021 | 1021 | if ($valid) |