Passed
Pull Request — develop (#19)
by Kevin
02:49
created
lib/MagiumConfigurationFactory.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Magium\Configuration;
4 4
 
5
-use Magium\Configuration\Config\Builder;
6 5
 use Magium\Configuration\Config\BuilderFactory;
7 6
 use Magium\Configuration\Config\BuilderFactoryInterface;
8 7
 use Magium\Configuration\Config\BuilderInterface;
9
-use Magium\Configuration\Config\InvalidConfigurationLocationException;
10 8
 use Magium\Configuration\Config\MissingConfigurationException;
11 9
 use Magium\Configuration\File\Context\AbstractContextConfigurationFile;
12 10
 use Magium\Configuration\Manager\CacheFactory;
Please login to merge, or discard this patch.
lib/Console/Command/ConfigurationBuild.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,9 +51,10 @@
 block discarded – undo
51 51
         $manager = $factory->getManager();
52 52
         $contexts = $factory->getContextFile()->getContexts();
53 53
         $context = $input->getArgument('context');
54
-        if ($context)
55
-            if (in_array($context, $contexts)) {
54
+        if ($context) {
55
+                    if (in_array($context, $contexts)) {
56 56
                 $contexts = [$context];
57
+        }
57 58
             } else {
58 59
             throw new InvalidContextException('Context does not exist: ' . $context);
59 60
         }
Please login to merge, or discard this patch.