Completed
Pull Request — master (#81)
by
unknown
05:50
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 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
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 8
 
9 9
 /**
10 10
  * Config
Please login to merge, or discard this patch.