Passed
Branch main (e0b4b7)
by Pedro
01:52
created
Category
src/Router.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     private function executeControllerMethod(string $callback, array $matches): void
272 272
     {
273 273
         list($controller, $method) = explode($this->separator, $callback);
274
-        $controller = $this->namespace . '\\' . $controller;
274
+        $controller = $this->namespace.'\\'.$controller;
275 275
 
276 276
         if (class_exists($controller)) {
277 277
             $controllerInstance = new $controller();
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
     {
297 297
         foreach ($this->routeGroups as $group) {
298 298
             $prefix = isset($group['prefix']) ? $group['prefix'] : '';
299
-            $pattern = str_replace('{' . $group['name'] . '}', $prefix, $pattern);
299
+            $pattern = str_replace('{'.$group['name'].'}', $prefix, $pattern);
300 300
         }
301 301
 
302 302
         return $pattern;
@@ -334,10 +334,10 @@  discard block
 block discarded – undo
334 334
 
335 335
             // Substitui os parâmetros na rota
336 336
             foreach ($parameters as $key => $value) {
337
-                $path = str_replace('{' . $key . '}', $value, $path);
337
+                $path = str_replace('{'.$key.'}', $value, $path);
338 338
             }
339 339
 
340
-            return $this->domain . $path;
340
+            return $this->domain.$path;
341 341
         }
342 342
 
343 343
         return null;
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
         // Substitui os parâmetros da rota
357 357
         $pattern = preg_replace('/\\\{([A-Za-z0-9_]+)\\\}/', '([^\/]+)', $pattern);
358 358
 
359
-        return '/^' . $pattern . '$/';
359
+        return '/^'.$pattern.'$/';
360 360
     }
361 361
 
362 362
     /**
Please login to merge, or discard this patch.