Completed
Pull Request — develop (#67)
by Kevin
02:54
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/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/View/ViewConfiguration.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function __construct(
32 32
         ServerRequestInterface $request,
33 33
         MessageInterface $response,
34
-        $viewDirectory = __DIR__ . '/views' ,
34
+        $viewDirectory = __DIR__ . '/views',
35 35
         $layoutFile = 'layout.phtml',
36 36
         $viewFile = 'view.phtml',
37 37
         $provideWrapperHtml = true,
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@  discard block
 block discarded – undo
27 27
      * @param string $layoutFile
28 28
      * @param string $viewFile
29 29
      * @param boolean $provideWrapperHtml
30
-     * @param boolean $provideJqueryUrl
31 30
      * @throws InvalidViewConfigurationException
32 31
      */
33 32
     public function __construct(
@@ -62,7 +61,7 @@  discard block
 block discarded – undo
62 61
     }
63 62
 
64 63
     /**
65
-     * @param mixed $bootstrapCssUrl
64
+     * @param string $bootstrapCssUrl
66 65
      */
67 66
     public function setBootstrapCssUrl($bootstrapCssUrl)
68 67
     {
@@ -78,7 +77,7 @@  discard block
 block discarded – undo
78 77
     }
79 78
 
80 79
     /**
81
-     * @param mixed $bootstrapJsUrl
80
+     * @param string $bootstrapJsUrl
82 81
      */
83 82
     public function setBootstrapJsUrl($bootstrapJsUrl)
84 83
     {
@@ -96,7 +95,7 @@  discard block
 block discarded – undo
96 95
     }
97 96
 
98 97
     /**
99
-     * @param mixed $provideWrapperHtml
98
+     * @param boolean $provideWrapperHtml
100 99
      */
101 100
     public function setProvideWrapperHtml($provideWrapperHtml)
102 101
     {
@@ -206,7 +205,7 @@  discard block
 block discarded – undo
206 205
     }
207 206
 
208 207
     /**
209
-     * @param mixed $jqueryUrl
208
+     * @param string $jqueryUrl
210 209
      */
211 210
     public function setJqueryUrl($jqueryUrl)
212 211
     {
Please login to merge, or discard this patch.
lib/Console/Command/DefaultCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 $possibleLocations[] = $file;
47 47
             }
48 48
         }
49
-        $possibleLocations  = array_unique($possibleLocations); // just in case...
49
+        $possibleLocations = array_unique($possibleLocations); // just in case...
50 50
         return $possibleLocations;
51 51
     }
52 52
 
Please login to merge, or discard this patch.
lib/View/MagiumRecursiveContextRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 {
20 20
     function __invoke(array $contexts, $padding = 0)
21 21
     {
22
-        $output = sprintf('<ul class="nav nav-pills nav-stacked"%s>', $padding==0?' id="magium-contexts"':'');
22
+        $output = sprintf('<ul class="nav nav-pills nav-stacked"%s>', $padding == 0 ? ' id="magium-contexts"' : '');
23 23
         foreach ($contexts as $context) {
24 24
             $output .= sprintf(
25 25
                 '<li
Please login to merge, or discard this patch.
lib/View/Controllers/Layout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 continue;
79 79
             }
80 80
             $sectionId = $sectionName = (string)$section['identifier'];
81
-            if (isset($section['label']))  {
81
+            if (isset($section['label'])) {
82 82
                 $sectionName = (string)$section['label'];
83 83
             }
84 84
             $returnSections[$sectionId] = [
Please login to merge, or discard this patch.
lib/View/Controllers/View.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     }
57 57
 
58 58
     /**
59
-     * @param $class
59
+     * @param string $class
60 60
      * @return SourceInterface
61 61
      * @throws UnableToCreateInstanceException
62 62
      */
Please login to merge, or discard this patch.
lib/View/Controllers/Save.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                 'message'   => sprintf(
33 33
                     '%d setting%s saved in the context: %s',
34 34
                         count($json['values']),
35
-                        count($json['values'])>1?'s':'',
35
+                        count($json['values']) > 1 ? 's' : '',
36 36
                         $json['context'])
37 37
             ]]);
38 38
         } catch (\Exception $e) {
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function read(ServerRequestInterface $request)
56 56
     {
57
-        if (strpos($request->getHeader('content-type'),  'application/json') === false) {
57
+        if (strpos($request->getHeader('content-type'), 'application/json') === false) {
58 58
             throw new InvalidRequestException('MCM save operation requires an application/json content type');
59 59
         }
60 60
         $body = $request->getBody();
61 61
         $body->rewind();
62
-        $json  = json_decode($body->getContents(), true);
62
+        $json = json_decode($body->getContents(), true);
63 63
         if ($json === false) {
64 64
             throw new InvalidRequestException('Unable to read JSON string');
65 65
         }
Please login to merge, or discard this patch.