Test Setup Failed
Push — a-simpler-manager ( 45ff68...0b86bc )
by Ben
06:29
created
src/Managers/Routes/RegisterManagedRoutes.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $managedRoutes = $this->expandWithAssistantRoutes($managerClass, $managedRoutes);
30 30
 
31
-        $this->router->group(['prefix' => $this->routePrefix, 'middleware' => $this->routeMiddleware], function () use($managedRoutes) {
32
-            foreach($managedRoutes as $route) {
31
+        $this->router->group(['prefix' => $this->routePrefix, 'middleware' => $this->routeMiddleware], function() use($managedRoutes) {
32
+            foreach ($managedRoutes as $route) {
33 33
                 $this->router->addRoute(
34 34
                     $route->method,
35
-                    $managedRoutes->getName() .'/'. $route->uri,
35
+                    $managedRoutes->getName().'/'.$route->uri,
36 36
                     [$managedRoutes->getManagerClass(), Str::camel($route->action)]
37
-                )->name('chief.' . $managedRoutes->getName() . '.' . $route->action);
37
+                )->name('chief.'.$managedRoutes->getName().'.'.$route->action);
38 38
             }
39 39
         });
40 40
     }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             }
49 49
         }
50 50
 
51
-        if(public_method_exists($managerClass, 'routes')) {
51
+        if (public_method_exists($managerClass, 'routes')) {
52 52
             $managedRoutes = $managedRoutes->push($managerClass::routes());
53 53
         }
54 54
 
Please login to merge, or discard this patch.
src/Managers/Assistants/ModulesAssistant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
         $modules = $parent->children();
35 35
 
36 36
         // Add their respective manager per class
37
-        $moduleManagers = $modules->groupBy(function ($child) {
37
+        $moduleManagers = $modules->groupBy(function($child) {
38 38
             return get_class($child);
39
-        })->map(function ($child, $class) {
39
+        })->map(function($child, $class) {
40 40
             return app(ModelToManagerMap::class)->find($class);
41 41
         });
42 42
 
Please login to merge, or discard this patch.