Passed
Pull Request — develop (#19)
by Kevin
02:49
created
lib/Config/Storage/RelationalDatabase.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
         $table->addColumn(new Text('value'));
128 128
         $table->addColumn(new Varchar('context', 255));
129 129
         $table->addConstraint(
130
-          new UniqueKey(['path','context'], 'configuration_uniqueness_index')
130
+            new UniqueKey(['path','context'], 'configuration_uniqueness_index')
131 131
         );
132 132
 
133 133
         $sql = new Sql($this->adapter);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 $resultSet = $statement->execute();
92 92
                 $this->data[$context] = [];
93 93
                 foreach ($resultSet as $result) {
94
-                    $this->data[$context][$result['path']]  = $result['value'];
94
+                    $this->data[$context][$result['path']] = $result['value'];
95 95
                 }
96 96
             }
97 97
         }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $table->addColumn(new Text('value'));
128 128
         $table->addColumn(new Varchar('context', 255));
129 129
         $table->addConstraint(
130
-          new UniqueKey(['path','context'], 'configuration_uniqueness_index')
130
+          new UniqueKey(['path', 'context'], 'configuration_uniqueness_index')
131 131
         );
132 132
 
133 133
         $sql = new Sql($this->adapter);
Please login to merge, or discard this patch.
lib/File/Configuration/PhpFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
     public function toXml()
9 9
     {
10
-        $file  = $this->getFile();
10
+        $file = $this->getFile();
11 11
         $results = include $file;
12 12
         $config = new \SimpleXMLElement('<configuration />');
13 13
         foreach ($results as $section => $sectionData) {
Please login to merge, or discard this patch.
lib/File/Configuration/ConfigurationFileRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
     public function current()
108 108
     {
109
-        $current =  current($this->files);
109
+        $current = current($this->files);
110 110
         $this->checkFileLocation($current);
111 111
         return $current;
112 112
     }
Please login to merge, or discard this patch.
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.