@@ -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 | } |
@@ -809,11 +809,11 @@ discard block |
||
| 809 | 809 | array_pop(self::$prefix); |
| 810 | 810 | array_pop(self::$hideOriginals); |
| 811 | 811 | |
| 812 | - if( isset($attr['namespace']) ) |
|
| 812 | + if (isset($attr['namespace'])) |
|
| 813 | 813 | array_pop(self::$namespace); |
| 814 | 814 | |
| 815 | 815 | // Flushing nested middleware: |
| 816 | - for($i = 0; $i < $mcount; $i++) |
|
| 816 | + for ($i = 0; $i < $mcount; $i++) |
|
| 817 | 817 | array_pop(self::$middleware); |
| 818 | 818 | } |
| 819 | 819 | |
@@ -1033,7 +1033,7 @@ discard block |
||
| 1033 | 1033 | { |
| 1034 | 1034 | for ($i = 0; $i < $c_e_findPath; $i++) |
| 1035 | 1035 | { |
| 1036 | - if(in_array($i, $skip_seg)) |
|
| 1036 | + if (in_array($i, $skip_seg)) |
|
| 1037 | 1037 | continue; |
| 1038 | 1038 | |
| 1039 | 1039 | if ($valid) |