Completed
Pull Request — master (#91)
by
unknown
04:27
created
src/FileParser/Yaml.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
             if ($extension === 'dist') {
66 66
                 $extension = array_pop($parts);
67 67
             }
68
-            $parser    = $this->getParser($extension);
68
+            $parser = $this->getParser($extension);
69 69
 
70
-            $data = [$info['filename'] => (array) $parser->parse($path) ];
70
+            $data = [$info['filename'] => (array) $parser->parse($path)];
71 71
 
72 72
             // Try and load file
73 73
             $this->data = array_replace_recursive($this->data, $data);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
         // If `$path` is a directory
158 158
         if (is_dir($path)) {
159
-            $paths = glob($path . '/*.*');
159
+            $paths = glob($path.'/*.*');
160 160
             if (empty($paths)) {
161 161
                 throw new EmptyDirectoryException("Configuration directory: [$path] is empty");
162 162
             }
Please login to merge, or discard this patch.
src/FileParser/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.