@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace TomPHP\ConfigServiceProvider\Exception; |
| 4 | 4 | |
| 5 | -use Exception as PHPException; |
|
| 6 | - |
|
| 7 | 5 | trait ExceptionFactory |
| 8 | 6 | { |
| 9 | 7 | /** |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @param string $extension |
| 13 | - * @param string[] $availableExtension |
|
| 13 | + * @param string[] $availableExtensions |
|
| 14 | 14 | * |
| 15 | 15 | * @return self |
| 16 | 16 | */ |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | return self::create( |
| 21 | 21 | 'No reader configured for "%s" files; readers are available for [%s].', |
| 22 | 22 | $extension, |
| 23 | - '"' . implode('", "', $availableExtensions) . '"' |
|
| 23 | + '"'.implode('", "', $availableExtensions).'"' |
|
| 24 | 24 | ); |
| 25 | 25 | } |
| 26 | 26 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public static function fromPatterns(array $patterns) |
| 15 | 15 | { |
| 16 | - $patterns = '"' . implode('", "', $patterns) . '"'; |
|
| 16 | + $patterns = '"'.implode('", "', $patterns).'"'; |
|
| 17 | 17 | |
| 18 | 18 | return self::create( |
| 19 | 19 | 'No files found matching patterns: [%s].', |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | ]); |
| 44 | 44 | |
| 45 | 45 | $configs = array_map( |
| 46 | - function ($filename) use ($factory) { |
|
| 46 | + function($filename) use ($factory) { |
|
| 47 | 47 | $reader = $factory->create($filename); |
| 48 | 48 | return $reader->read($filename); |
| 49 | 49 | }, |