@@ -60,15 +60,15 @@ |
||
60 | 60 | { |
61 | 61 | $table = []; |
62 | 62 | |
63 | - $bindings->map(function ($item, $key) { |
|
63 | + $bindings->map(function($item, $key) { |
|
64 | 64 | return [ |
65 | 65 | 'shortName' => substr(strrchr($key, '\\'), 1), |
66 | 66 | 'abstract' => $key, |
67 | 67 | 'concrete' => $item |
68 | 68 | ]; |
69 | - })->sort(function ($a, $b) { |
|
69 | + })->sort(function($a, $b) { |
|
70 | 70 | return $a['shortName'] > $b['shortName']; |
71 | - })->each(function ($binding) use (&$table) { |
|
71 | + })->each(function($binding) use (&$table) { |
|
72 | 72 | $table[] = [ |
73 | 73 | $binding['shortName'], |
74 | 74 | $binding['abstract'], |
@@ -105,7 +105,7 @@ |
||
105 | 105 | |
106 | 106 | $implicitModules = $this->implicitModules; |
107 | 107 | |
108 | - return $this->modules->reject(function ($module) use ($implicitModules) { |
|
108 | + return $this->modules->reject(function($module) use ($implicitModules) { |
|
109 | 109 | return array_key_exists(get_class($module), $implicitModules); |
110 | 110 | }); |
111 | 111 | } |
@@ -42,15 +42,15 @@ |
||
42 | 42 | { |
43 | 43 | $table = []; |
44 | 44 | |
45 | - $bindings->map(function ($item, $key) { |
|
45 | + $bindings->map(function($item, $key) { |
|
46 | 46 | return [ |
47 | 47 | 'shortName' => shorten($key), |
48 | 48 | 'abstract' => $key, |
49 | 49 | 'concrete' => $item |
50 | 50 | ]; |
51 | - })->sort(function ($a, $b) { |
|
51 | + })->sort(function($a, $b) { |
|
52 | 52 | return $a['shortName'] > $b['shortName']; |
53 | - })->each(function ($binding) use (&$table) { |
|
53 | + })->each(function($binding) use (&$table) { |
|
54 | 54 | $table[] = [ |
55 | 55 | $binding['shortName'], |
56 | 56 | $binding['abstract'], |
@@ -42,15 +42,15 @@ |
||
42 | 42 | { |
43 | 43 | $table = []; |
44 | 44 | |
45 | - $bindings->map(function ($item, $key) { |
|
45 | + $bindings->map(function($item, $key) { |
|
46 | 46 | return [ |
47 | 47 | 'shortName' => shorten($key), |
48 | 48 | 'abstract' => $key, |
49 | 49 | 'concrete' => $item |
50 | 50 | ]; |
51 | - })->sort(function ($a, $b) { |
|
51 | + })->sort(function($a, $b) { |
|
52 | 52 | return $a['shortName'] > $b['shortName']; |
53 | - })->each(function ($binding) use (&$table) { |
|
53 | + })->each(function($binding) use (&$table) { |
|
54 | 54 | $table[] = [ |
55 | 55 | $binding['shortName'], |
56 | 56 | $binding['abstract'], |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | public function registerAllRoutes() |
35 | 35 | { |
36 | - $routeFiles = collect(File::glob($this->getRoutesFolder() . '/*.php'))->map(function ($file) { |
|
36 | + $routeFiles = collect(File::glob($this->getRoutesFolder() . '/*.php'))->map(function($file) { |
|
37 | 37 | return File::name($file); |
38 | 38 | })->all(); |
39 | 39 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $parts = Arr::except($parts, count($parts) - 1); |
35 | 35 | } |
36 | 36 | |
37 | - array_walk($parts, function (&$part) { |
|
37 | + array_walk($parts, function(&$part) { |
|
38 | 38 | $part = Str::snake($part); |
39 | 39 | }); |
40 | 40 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | $parts = explode('.', $str); |
58 | 58 | |
59 | - array_walk($parts, function (&$part) { |
|
59 | + array_walk($parts, function(&$part) { |
|
60 | 60 | $part = Str::studly($part); |
61 | 61 | }); |
62 | 62 | |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | $vendorAndModule = empty($parts[0]) ? Arr::only($parts, 1) : Arr::only($parts, 0); |
88 | 88 | } else { |
89 | 89 | $parts = explode('\\', $classname); |
90 | - $vendorAndModule = empty($parts[0]) ? Arr::only($parts, [1,2]) : Arr::only($parts, [0,1]); |
|
90 | + $vendorAndModule = empty($parts[0]) ? Arr::only($parts, [1, 2]) : Arr::only($parts, [0, 1]); |
|
91 | 91 | } |
92 | 92 | |
93 | - array_walk($vendorAndModule, function (&$part) { |
|
93 | + array_walk($vendorAndModule, function(&$part) { |
|
94 | 94 | $part = Str::snake($part); |
95 | 95 | }); |
96 | 96 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | '', |
74 | 74 | static::class |
75 | 75 | ); |
76 | - $this->id = $this->getModuleId(); |
|
76 | + $this->id = $this->getModuleId(); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | public function register() |