@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Noodlehaus\FileParser; |
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | -use Symfony\Component\Yaml\Yaml as YamlParser; |
|
| 7 | 6 | use Noodlehaus\Exception\ParseException; |
| 7 | +use Symfony\Component\Yaml\Yaml as YamlParser; |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * YAML file parser |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | if ($extension === 'dist') { |
| 64 | 64 | $extension = array_pop($parts); |
| 65 | 65 | } |
| 66 | - $parser = $this->getParser($extension); |
|
| 66 | + $parser = $this->getParser($extension); |
|
| 67 | 67 | |
| 68 | 68 | // Try and load file |
| 69 | 69 | $this->data = array_replace_recursive($this->data, (array) $parser->parse($path)); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | // If `$path` is a directory |
| 163 | 163 | if (is_dir($path)) { |
| 164 | - $paths = glob($path . '/*.*'); |
|
| 164 | + $paths = glob($path.'/*.*'); |
|
| 165 | 165 | if (empty($paths)) { |
| 166 | 166 | throw new EmptyDirectoryException("Configuration directory: [$path] is empty"); |
| 167 | 167 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $data = json_decode(file_get_contents($path), true); |
| 27 | 27 | |
| 28 | 28 | if (json_last_error() !== JSON_ERROR_NONE) { |
| 29 | - $error_message = 'Syntax error'; |
|
| 29 | + $error_message = 'Syntax error'; |
|
| 30 | 30 | if (function_exists('json_last_error_msg')) { |
| 31 | 31 | $error_message = json_last_error_msg(); |
| 32 | 32 | } |