@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public static function mapClassNameToFileName($className) |
106 | 106 | { |
107 | - $snake = function ($matches) { |
|
107 | + $snake = function($matches) { |
|
108 | 108 | return '_' . strtolower($matches[0]); |
109 | 109 | }; |
110 | 110 | $fileName = preg_replace_callback('/\d+|[A-Z]/', $snake, $className); |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | */ |
273 | 273 | public static function getFiles($paths) |
274 | 274 | { |
275 | - $files = static::globAll(array_map(function ($path) { |
|
275 | + $files = static::globAll(array_map(function($path) { |
|
276 | 276 | return $path . DIRECTORY_SEPARATOR . "*.php"; |
277 | 277 | }, (array)$paths)); |
278 | 278 | // glob() can return the same file multiple times |
@@ -56,7 +56,7 @@ |
||
56 | 56 | sprintf('%s %s', str_repeat('=', $maxAliasLength), str_repeat('=', $maxClassLength)), |
57 | 57 | ], |
58 | 58 | array_map( |
59 | - function ($alias, $class) use ($maxAliasLength, $maxClassLength) { |
|
59 | + function($alias, $class) use ($maxAliasLength, $maxClassLength) { |
|
60 | 60 | return sprintf('%s %s', str_pad($alias, $maxAliasLength), str_pad($class, $maxClassLength)); |
61 | 61 | }, |
62 | 62 | array_keys($aliases), |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * |
7 | 7 | * @return bool |
8 | 8 | */ |
9 | -return function () { |
|
9 | +return function() { |
|
10 | 10 | $files = [ |
11 | 11 | __DIR__ . '/../../../autoload.php', // composer dependency |
12 | 12 | __DIR__ . '/../vendor/autoload.php', // stand-alone package |