Passed
Branch develop (d6d0d2)
by Kevin
07:00
created
lib/Console/Command/DefaultCommand.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
         return $contextPath;
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $contextPath
77
+     */
75 78
     protected function writeContextFileXml($contextPath)
76 79
     {
77 80
         file_put_contents($contextPath, <<<XML
@@ -111,6 +114,9 @@  discard block
 block discarded – undo
111 114
     }
112 115
 
113 116
 
117
+    /**
118
+     * @param string $contextPath
119
+     */
114 120
     protected function askContextFileQuestion(InputInterface $input, OutputInterface $output, $contextPath)
115 121
     {
116 122
         $question = new ConfirmationQuestion(sprintf('The context file %s does not exist next to the magium-configuration.xml file.  Create it? ', $contextPath));
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
     protected function configure()
16 16
     {
17 17
         $this->setName(self::COMMAND)
18
-             ->setHelp('Initializes Magium Configuration')
19
-             ->setDescription('Initializes Magium Configuration by creating the default magium-configuration.xml and '
20
-                              . 'contexts.xml files');
18
+                ->setHelp('Initializes Magium Configuration')
19
+                ->setDescription('Initializes Magium Configuration by creating the default magium-configuration.xml and '
20
+                                . 'contexts.xml files');
21 21
     }
22 22
 
23 23
     protected function getPossibleLocations()
Please login to merge, or discard this patch.
lib/File/XmlFileToXmlTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -5,6 +5,9 @@
 block discarded – undo
5 5
 trait XmlFileToXmlTrait
6 6
 {
7 7
 
8
+    /**
9
+     * @return string
10
+     */
8 11
     abstract function getFile();
9 12
 
10 13
     abstract function validateSchema(\DOMDocument $doc);
Please login to merge, or discard this patch.
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/Manager/Manager.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         $this->cache = $cache;
24 24
         $this->localCache = $localCache;
25
-     }
25
+        }
26 26
 
27 27
     /**
28 28
      * @param string $context The (configurable) context for the needed configuration object
Please login to merge, or discard this patch.