Passed
Push — develop ( 6c7de4...2b301a )
by Kevin
05:45
created
lib/Config/Storage/RelationalDatabase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
         $table->addColumn(new Text('value'));
129 129
         $table->addColumn(new Varchar('context', 255));
130 130
         $table->addConstraint(
131
-            new UniqueKey(['path','context'], 'configuration_uniqueness_index')
131
+            new UniqueKey(['path', 'context'], 'configuration_uniqueness_index')
132 132
         );
133 133
 
134 134
         $sql = new Sql($this->adapter);
Please login to merge, or discard this patch.
lib/File/Configuration/ConfigurationFileRepository.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Magium\Configuration\Config\InvalidConfigurationLocationException;
6 6
 use Magium\Configuration\Config\InvalidDirectoryException;
7 7
 use Magium\Configuration\File\AdapterInterface;
8
-use Magium\Configuration\File\InvalidFileException;
9 8
 
10 9
 class ConfigurationFileRepository implements \ArrayAccess, \Iterator, \Countable
11 10
 {
Please login to merge, or discard this patch.
lib/Container/GenericContainer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
         return $this->container[$id];
44 44
     }
45 45
 
46
+    /**
47
+     * @param string $type
48
+     */
46 49
     public function newInstance($type)
47 50
     {
48 51
         $reflection = new \ReflectionClass($type);
Please login to merge, or discard this patch.
lib/Config/Builder.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-     * @param ConfigurationRepository|null $config
105
+     * @param null|ConfigInterface $config
106 106
      * @return ConfigurationRepository
107 107
      * @throws InvalidConfigurationLocationException
108 108
      * @throws InvalidFileException
@@ -159,6 +159,9 @@  discard block
 block discarded – undo
159 159
         return $structure;
160 160
     }
161 161
 
162
+    /**
163
+     * @param string $callbackString
164
+     */
162 165
     protected function executeCallback($callbackString, $value)
163 166
     {
164 167
         if (function_exists($callbackString)) {
@@ -199,7 +202,7 @@  discard block
 block discarded – undo
199 202
 
200 203
     /**
201 204
      * @param \SimpleXMLElement $structure The object representing the merged configuration structure
202
-     * @param \SimpleXmlElement $config An empty config object to be populated
205
+     * @param ConfigInterface $config An empty config object to be populated
203 206
      * @param string $context The name of the context
204 207
      * @return ConfigurationRepository The resulting configuration object
205 208
      */
Please login to merge, or discard this patch.
lib/Config/Repository/ConfigInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 interface ConfigInterface
6 6
 {
7 7
 
8
-     const ALLOWED_TRUES = [
8
+        const ALLOWED_TRUES = [
9 9
         true, 'true', 1, '1', 'on', 'yes'
10 10
     ];
11 11
 
Please login to merge, or discard this patch.