Completed
Pull Request — master (#111)
by Filip
06:44
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/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.
src/Config.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Noodlehaus;
4 4
 
5
+use InvalidArgumentException;
6
+use Noodlehaus\Exception\EmptyDirectoryException;
5 7
 use Noodlehaus\Exception\FileNotFoundException;
6 8
 use Noodlehaus\Exception\UnsupportedFormatException;
7
-use Noodlehaus\Exception\EmptyDirectoryException;
8
-use InvalidArgumentException;
9 9
 use Noodlehaus\FileParser\FileParserInterface;
10 10
 use Noodlehaus\StringParser\StringParserInterface;
11 11
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/StringParser/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\StringParser;
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 string parser
Please login to merge, or discard this patch.
src/StringParser/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($configuration, 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.