Completed
Push — master ( 7ded72...98326e )
by
unknown
23s
created
Zewa/Router.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         if (!preg_match("/^[a-z0-9:_\/\.\[\]-]+$/i", $uri)
143 143
             || array_filter(
144 144
                 $uriChunks,
145
-                function ($uriChunk) {
145
+                function($uriChunk) {
146 146
                     if (strpos($uriChunk, '__') !== false) {
147 147
                         return true;
148 148
                     }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 
226 226
         $normalizedURI = ltrim(preg_replace('/\?.*/', '', $normalizedURI), '/');
227 227
 
228
-        if (! empty($this->routes)) {
228
+        if (!empty($this->routes)) {
229 229
             $normalizedURI = $this->discoverRoute($normalizedURI);
230 230
         }
231 231
 
@@ -244,11 +244,11 @@  discard block
 block discarded – undo
244 244
 
245 245
                 $uri = $reroute;
246 246
 
247
-                if (! empty($params)) {
247
+                if (!empty($params)) {
248 248
                     $pat = '/(\$\d+)/';
249 249
                     $uri = preg_replace_callback(
250 250
                         $pat,
251
-                        function () use (&$params) {
251
+                        function() use (&$params) {
252 252
                             $first = $params[0];
253 253
                             array_shift($params);
254 254
                             return $first;
Please login to merge, or discard this patch.