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