Completed
Push — master ( 46c1fa...bfcd30 )
by Anderson
15:45
created
src/Core/Route.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -570,12 +570,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
@@ -811,7 +811,7 @@  discard block
 block discarded – undo
811 811
         array_pop(self::$hideOriginals);
812 812
 
813 813
         // Flushing nested middleware:
814
-        for($i = 0; $i < $mcount; $i++)
814
+        for ($i = 0; $i < $mcount; $i++)
815 815
             array_pop(self::$middleware);
816 816
     }
817 817
 
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
                             {
1032 1032
                                 for ($i = 0; $i < $c_e_findPath; $i++)
1033 1033
                                 {
1034
-                                    if(in_array($i, $skip_seg))
1034
+                                    if (in_array($i, $skip_seg))
1035 1035
                                         continue;
1036 1036
 
1037 1037
                                     if ($valid)
Please login to merge, or discard this patch.