Completed
Pull Request — master (#98)
by
unknown
02:12
created
Zewa/View.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -200,6 +200,9 @@  discard block
 block discarded – undo
200 200
         return false;
201 201
     }
202 202
 
203
+    /**
204
+     * @param string|boolean $layout
205
+     */
203 206
     public function setLayout($layout)
204 207
     {
205 208
         if ($layout === false) {
@@ -241,6 +244,10 @@  discard block
 block discarded – undo
241 244
      * @return string processed content
242 245
      */
243 246
     //@TODO: come back and clean up this and the way the view receives stuff
247
+
248
+    /**
249
+     * @param string|boolean $file
250
+     */
244 251
     private function process($file)
245 252
     {
246 253
         ob_start();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
             $this->view = $return = $this->process($view);
134 134
 
135
-            if (! is_null($this->layout)) {
135
+            if (!is_null($this->layout)) {
136 136
                 $return = $this->process($this->layout);
137 137
             }
138 138
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 $this->view = $this->process($this->view);
143 143
             }
144 144
 
145
-            if (! is_null($this->layout)) {
145
+            if (!is_null($this->layout)) {
146 146
                 return $this->process($this->layout);
147 147
             } else {
148 148
                 return $this->view;
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
         }
273 273
 
274 274
         foreach ($this->queuedCSS as $sheet) {
275
-            $string .= '<link rel="stylesheet" href="' . $sheet .'">' . "\r\n";
275
+            $string .= '<link rel="stylesheet" href="' . $sheet . '">' . "\r\n";
276 276
         }
277 277
 
278 278
         return $string;
Please login to merge, or discard this patch.
Zewa/DIContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
         // If there is no constructor, there is no
63 63
         // dependencies, which means that our job is done.
64
-        if (! $constructor) {
64
+        if (!$constructor) {
65 65
             $dependency = new $class;
66 66
             if ($share === true) {
67 67
                 $this->dependencies[$class] = $dependency;
Please login to merge, or discard this patch.
Zewa/App.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/HTTP/Cookie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/HTTP/Post.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/HTTP/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.
Zewa/HTTP/Session.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa\HTTP;
4 4
 
5 5
 use Zewa\Container;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     private function incrementFlashStorage(array $storage)
51 51
     {
52 52
         foreach ($storage as $variable => $data) {
53
-            $storage[$variable]['increment'] ++;
53
+            $storage[$variable]['increment']++;
54 54
             if ($storage[$variable]['increment'] > 1) {
55 55
                 unset($_SESSION[$variable], $storage[$variable]);
56 56
             } else {
Please login to merge, or discard this patch.
Zewa/HTTP/Get.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Zewa;
4 4
 
5 5
 use Sabre\Event\Emitter;
Please login to merge, or discard this patch.