Passed
Push — master ( f87abf...70b45d )
by Iman
06:08
created
src/WatchingStrategies/Routes/RouteNormalizer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function normalizeAction($actions): array
15 15
     {
16
-        $addNamespace = function ($action) {
16
+        $addNamespace = function($action) {
17 17
             if (Str::startsWith($action, '\\')) {
18 18
                 return $action;
19 19
             }
20 20
 
21
-            return app()->getNamespace().'Http\\Controllers\\'.$action;
21
+            return app()->getNamespace() . 'Http\\Controllers\\' . $action;
22 22
         };
23 23
 
24 24
         return array_map($addNamespace, $actions);
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function normalizeUrl($urls, $verb = 'GET'): array
34 34
     {
35
-        $removeSlash = function ($url) use ($verb) {
36
-            return $verb.ltrim($url, '/');
35
+        $removeSlash = function($url) use ($verb) {
36
+            return $verb . ltrim($url, '/');
37 37
         };
38 38
 
39 39
         return array_map($removeSlash, $urls);
Please login to merge, or discard this patch.