Passed
Push — master ( 0f2431...1480bb )
by Federico
03:21
created
dist/jate/functions/git.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2
-	function getGitLog( $_dir = "./" ) {
3
-		if(!file_exists($_dir))
2
+	function getGitLog($_dir = "./") {
3
+		if (!file_exists($_dir))
4 4
 			return [];
5 5
 		$currentDir = getcwd();
6 6
 		chdir($_dir);
7 7
 		$gitHistory	= [];
8 8
 		$gitLogs		= [];
9 9
 		$gitPath		= str_replace('\\', '/', exec("git rev-parse --show-toplevel"));
10
-		$rootPath		= str_replace('\\', '/', getcwd ());
10
+		$rootPath		= str_replace('\\', '/', getcwd());
11 11
 		$lastHash		= null;
12
-		if( $gitPath != $rootPath ) {
12
+		if ($gitPath != $rootPath) {
13 13
 			chdir($currentDir);
14 14
 			return [];
15 15
 		}
Please login to merge, or discard this patch.
dist/jate/modules/GUI/GUI.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,17 +3,17 @@
 block discarded – undo
3 3
 		public function __construct() {
4 4
 			parent::__construct();
5 5
 		}
6
-		public function init( $_page ) {
6
+		public function init($_page) {
7 7
 			$this->tags = $_page->tags;
8 8
 		}
9
-		public function draw( $_template ) {
9
+		public function draw($_template) {
10 10
 			$page = file_get_contents($_template);
11 11
 			$render = $this->overlayTag($page);
12 12
 			echo minifyOutput($render);
13 13
 		}
14
-		protected function overlayTag( $_page ) {
15
-			foreach($this->tags as $key => $value)
16
-				if(!is_array($value))
14
+		protected function overlayTag($_page) {
15
+			foreach ($this->tags as $key => $value)
16
+				if (!is_array($value))
17 17
 					$_page = str_replace("<_${key}_>", "$value", $_page);
18 18
 			return $_page;
19 19
 		}
Please login to merge, or discard this patch.
dist/jate/modules/Html/Html.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,23 +8,23 @@
 block discarded – undo
8 8
 			$this->tags["brandImg"]					= "";
9 9
 			$this->tags["menu"]							= "";
10 10
 			$this->tags["title"]						= "";
11
-			$this->tags["subtitle"]		 			= "";
11
+			$this->tags["subtitle"] = "";
12 12
 			$this->tags["content"]				 	= "";
13
-			$this->tags["outContent"]		 		= "";
13
+			$this->tags["outContent"] = "";
14 14
 			$this->tags["footer"]		 				= "";
15 15
 			$this->tags["pagePath"]				 	= [];
16
-			$this->tags["css"]							= [];
17
-			$this->tags["js"]					 			= [];
16
+			$this->tags["css"] = [];
17
+			$this->tags["js"] = [];
18 18
 			$this->tags["jsVariables"]			= [];
19
-			$this->tags["metaDescription"]	= [];
20
-			$this->tags["metaKeywords"]			= [];
19
+			$this->tags["metaDescription"] = [];
20
+			$this->tags["metaKeywords"] = [];
21 21
 			$this->tags["metaAuthor"]				= [];
22 22
 		}
23 23
 		public function uniforma() {
24 24
 			$this->addDipendences();
25 25
 			$this->tags["css"]			= array_unique($this->tags["css"]);
26 26
 			$this->tags["js"]				= array_unique($this->tags["js"]);
27
-			$this->tags["pagePath"]	= json_encode($this->tags["pagePath"]);
27
+			$this->tags["pagePath"] = json_encode($this->tags["pagePath"]);
28 28
 			$tempStr = "";
29 29
 			foreach ($this->tags["css"] as $i)
30 30
 				$tempStr .= "<link rel='stylesheet' href='$i'>";
Please login to merge, or discard this patch.