@@ -214,7 +214,7 @@ |
||
| 214 | 214 | |
| 215 | 215 | // If `$path` is a directory |
| 216 | 216 | if (is_dir($path)) { |
| 217 | - $paths = glob($path . '/*.*'); |
|
| 217 | + $paths = glob($path.'/*.*'); |
|
| 218 | 218 | if (empty($paths)) { |
| 219 | 219 | throw new EmptyDirectoryException("Configuration directory: [$path] is empty"); |
| 220 | 220 | } |
@@ -2,10 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Noodlehaus; |
| 4 | 4 | |
| 5 | +use Noodlehaus\Exception\EmptyDirectoryException; |
|
| 5 | 6 | use Noodlehaus\Exception\FileNotFoundException; |
| 6 | 7 | use Noodlehaus\Exception\UnsupportedFormatException; |
| 7 | -use Noodlehaus\Exception\EmptyDirectoryException; |
|
| 8 | -use InvalidArgumentException; |
|
| 9 | 8 | use Noodlehaus\Parser\ParserInterface; |
| 10 | 9 | |
| 11 | 10 | /** |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | protected function parse($data = null, $filename = null) |
| 52 | 52 | { |
| 53 | 53 | if (json_last_error() !== JSON_ERROR_NONE) { |
| 54 | - $error_message = 'Syntax error'; |
|
| 54 | + $error_message = 'Syntax error'; |
|
| 55 | 55 | if (function_exists('json_last_error_msg')) { |
| 56 | 56 | $error_message = json_last_error_msg(); |
| 57 | 57 | } |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | // Handle PHP start tag |
| 56 | 56 | $config = trim($config); |
| 57 | 57 | if (substr($config, 0, 2) === '<?') { |
| 58 | - $config = '?>' . $config; |
|
| 58 | + $config = '?>'.$config; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | // Eval the string, if it throws an exception, rethrow it |