@@ -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'], |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | ), |
70 | 70 | '', static::class |
71 | 71 | ); |
72 | - $this->id = $this->getModuleId(); |
|
72 | + $this->id = $this->getModuleId(); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | public function register() |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $path = $this->getBasePath() . '/' . $this->convention->routesFolder(); |
262 | 262 | |
263 | 263 | if (is_dir($path)) { |
264 | - $routes = is_array($files) ? $files : collect(File::glob($path . '/*.php'))->map(function ($file) { |
|
264 | + $routes = is_array($files) ? $files : collect(File::glob($path . '/*.php'))->map(function($file) { |
|
265 | 265 | return File::name($file); |
266 | 266 | })->all(); |
267 | 267 |
@@ -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 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $parts = array_except($parts, count($parts) - 1); |
32 | 32 | } |
33 | 33 | |
34 | - array_walk($parts, function (&$part) { |
|
34 | + array_walk($parts, function(&$part) { |
|
35 | 35 | $part = snake_case($part); |
36 | 36 | }); |
37 | 37 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | $parts = explode('.', $str); |
55 | 55 | |
56 | - array_walk($parts, function (&$part) { |
|
56 | + array_walk($parts, function(&$part) { |
|
57 | 57 | $part = studly_case($part); |
58 | 58 | }); |
59 | 59 | |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | $vendorAndModule = empty($parts[0]) ? array_only($parts, 1) : array_only($parts, 0); |
85 | 85 | } else { |
86 | 86 | $parts = explode('\\', $classname); |
87 | - $vendorAndModule = empty($parts[0]) ? array_only($parts, [1,2]) : array_only($parts, [0,1]); |
|
87 | + $vendorAndModule = empty($parts[0]) ? array_only($parts, [1, 2]) : array_only($parts, [0, 1]); |
|
88 | 88 | } |
89 | 89 | |
90 | - array_walk($vendorAndModule, function (&$part) { |
|
90 | + array_walk($vendorAndModule, function(&$part) { |
|
91 | 91 | $part = snake_case($part); |
92 | 92 | }); |
93 | 93 |
@@ -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'], |