Test Failed
Push — master ( 7d043f...96f4c4 )
by Federico
07:15
created
dist/jate/modules/GUI/GUI.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,15 +14,17 @@
 block discarded – undo
14 14
 			if($extension == "pug" || $extension == "jade") {
15 15
 				$pug = new Pug\Pug();
16 16
 				$page = $pug->render($_template);
17
-			} else
18
-				$page = file_get_contents($_template);
17
+			} else {
18
+							$page = file_get_contents($_template);
19
+			}
19 20
 			$render = $this->overlayTag($page);
20 21
 			echo minifyOutput($render);
21 22
 		}
22 23
 		protected function overlayTag( $_page ) {
23
-			foreach($this->tags as $key => $value)
24
-				if(!is_array($value))
24
+			foreach($this->tags as $key => $value) {
25
+							if(!is_array($value))
25 26
 					$_page = str_replace("<_${key}_>", "$value", $_page);
27
+			}
26 28
 			return $_page;
27 29
 		}
28 30
 	}
Please login to merge, or discard this patch.