Completed
Push — master ( 930556...56f22b )
by Hassan
05:22 queued 02:55
created
src/Config.php 3 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
      *
125 125
      * @param  string $extension
126 126
      *
127
-     * @return Noodlehaus\Parser\ParserInterface
127
+     * @return string
128 128
      *
129 129
      * @throws UnsupportedFormatException If `$extension` is an unsupported file format
130 130
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +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
-use InvalidArgumentException;
9 8
 use Noodlehaus\Parser\ParserInterface;
10 9
 
11 10
 /**
Please login to merge, or discard this patch.
src/Parser/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\Parser;
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 parser
Please login to merge, or discard this patch.
src/Parser/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $data = json_decode($config, true);
28 28
 
29 29
         if (json_last_error() !== JSON_ERROR_NONE) {
30
-            $error_message  = 'Syntax error';
30
+            $error_message = 'Syntax error';
31 31
             if (function_exists('json_last_error_msg')) {
32 32
                 $error_message = json_last_error_msg();
33 33
             }
Please login to merge, or discard this patch.