Completed
Push — master ( b63991...931f33 )
by Tolan
23s queued 12s
created
lib/Template/PhpTemplate.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,11 +86,11 @@
 block discarded – undo
86 86
             /** @noinspection PhpIncludeInspection */
87 87
             include( $realPath );
88 88
             $rendered = ob_get_clean();
89
-        }elseif ($this->templateString) {
89
+        } elseif ($this->templateString) {
90 90
             ob_start();
91 91
             eval( "?>" . $this->templateString );
92 92
             $rendered = ob_get_clean();
93
-        }else {
93
+        } else {
94 94
             throw new \Exception( "Neither valid template path no valid template string passed to PhpTemplate." );
95 95
         }
96 96
 
Please login to merge, or discard this patch.
lib/Response.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         if (null === $responseCode) {
50 50
             if( $type == "redirect" ){
51 51
                 $responseCode = 302;
52
-            }else{
52
+            } else{
53 53
                 $responseCode = 200;
54 54
             }
55 55
         }
Please login to merge, or discard this patch.
lib/Template/TwigTemplate.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
         if (class_exists( "Puli\\TwigExtension\\PuliExtension" ) && null !== $this->repo) {
104 104
             $loader = new ChainLoader( [ new PuliTemplateLoader( $this->repo ), new Twig_Loader_String() ] );
105
-        }else {
105
+        } else {
106 106
             $loader = new ArrayLoader();
107 107
         }
108 108
         return $loader;
Please login to merge, or discard this patch.
lib/AbstractViewComponent.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         if ($execMethodName) { // Used to test for null but it could easily be an empty string
195 195
             $this->log( "Rendering with exec: {$execMethodName}, args:".var_export($execArgs, true ), LogLevel::DEBUG );
196 196
             $out = $this->execMethod( $execMethodName, $execArgs );
197
-        }else {
197
+        } else {
198 198
             $this->log( "Rendering without exec", LogLevel::DEBUG );
199 199
             $out = $this->template->render( $this->state, $this->props );
200 200
             if (!( $out instanceof Response )) {
@@ -220,12 +220,12 @@  discard block
 block discarded – undo
220 220
         if (count( $methodName ) == 1) {
221 221
             $methodName = $methodName[ 0 ] . 'Handler';
222 222
             $out = $this->$methodName( $args );
223
-        }else {
223
+        } else {
224 224
             $childName = array_shift( $methodName );
225 225
             $child = $this->childComponents[ $childName ];
226 226
             if ($child instanceof AbstractViewComponent) {
227 227
                 $out = $child->execMethod( $methodName, $args );
228
-            }else {
228
+            } else {
229 229
                 throw new Exception( implode( ".", $methodName ) . " is not a valid method." );
230 230
             }
231 231
         }
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
         $pPath = $this->parent->getPath();
299 299
         if (null !== $pPath) {
300 300
             return $pPath . '.' . $this->handle;
301
-        }else {
301
+        } else {
302 302
             return $this->handle;
303 303
         }
304 304
     }
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
             }
321 321
             $child = new $type( $handle, $this, $this->exec, $this->logger );
322 322
             $this->childComponents[ $handle ] = $child;
323
-        }else {
323
+        } else {
324 324
             // exec, di and logger are set recursively in rehydrate()
325 325
             $child = $this->childComponents[ $handle ];
326 326
         }
Please login to merge, or discard this patch.