Completed
Push — master ( 23bea2...09abe8 )
by Federico
03:10
created
dist/jate/functions/array.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	function utf8ize($_array) {
3
-		return travelStringArray($_array,"utf8_encode");
3
+		return travelStringArray($_array, "utf8_encode");
4 4
 	}
5 5
 	function unutf8ize($_array) {
6
-		return travelStringArray($_array,"utf8_decode");
6
+		return travelStringArray($_array, "utf8_decode");
7 7
 	}
8 8
 	function arraySlash($_array) {
9
-		return travelStringArray($_array,"addslashes");
9
+		return travelStringArray($_array, "addslashes");
10 10
 	}
11 11
 	function arrayHtmlParser($_array) {
12
-		return travelStringArray($_array,"htmlParser");
12
+		return travelStringArray($_array, "htmlParser");
13 13
 	}
14
-	function travelStringArray ( $_array, $_function ) {
14
+	function travelStringArray($_array, $_function) {
15 15
 		if (is_array($_array)) {
16 16
 			foreach ($_array as $k => $v) {
17 17
 				$_array[$k] = travelStringArray($v, $_function);
18 18
 			}
19
-		} else if (is_string ($_array)) {
20
-			return call_user_func($_function,$_array);
19
+		} else if (is_string($_array)) {
20
+			return call_user_func($_function, $_array);
21 21
 		}
22 22
 		return $_array;
23 23
 	}
24
-	function arrayDepth( $_array ) {
24
+	function arrayDepth($_array) {
25 25
 		$maxDepth = 1;
26 26
 		foreach ($_array as $value) {
27 27
 			if (is_array($value)) {
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
 		}
34 34
 		return $maxDepth;
35 35
 	}
36
-	function arrayDump( $_array, $_name = "Array", $_tab = "&nbsp;&nbsp;" ) {
36
+	function arrayDump($_array, $_name = "Array", $_tab = "&nbsp;&nbsp;") {
37 37
 			$position = preg_replace('/&nbsp;&nbsp;/', '', $_tab, 1);
38 38
 			echo "$position<span style=\"color:rgb(230,0,0)\">$_name:</span><br>";
39 39
 			foreach ($_array as $k => $i)
40
-				if(is_array($i))
41
-					arrayDump( $i, $k, "&nbsp;&nbsp;$_tab" );
40
+				if (is_array($i))
41
+					arrayDump($i, $k, "&nbsp;&nbsp;$_tab");
42 42
 				else
43 43
 					echo "$_tab<b>$k:</b> $i<br>";
44 44
 		}
Please login to merge, or discard this patch.
dist/jate/modules/Router/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 			parent::__construct();
5 5
 		}
6 6
 		public function getPage() {
7
-			$base			= $_SERVER["REDIRECT_BASE"];
8
-			$request	= $_SERVER["REQUEST_URI"];
7
+			$base = $_SERVER["REDIRECT_BASE"];
8
+			$request = $_SERVER["REQUEST_URI"];
9 9
 			$url			= str_replace($base, "", $request);
10
-			$url			= explode("/",$url);
10
+			$url			= explode("/", $url);
11 11
 			return $url[1];
12 12
 		}
13 13
 	}
Please login to merge, or discard this patch.
dist/jate/coreEngine.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,23 +6,23 @@
 block discarded – undo
6 6
 	require_once			(end($GLOBALS["JATEPath"])."jate/functions/requirer.php");
7 7
 
8 8
 	//USER STUFF
9
-	requireComponent	("modules/JConfig/JConfig.php");
10
-	$jConfig	= new JConfig();
11
-	$jConfig->import("config/connection.json","connection");
9
+	requireComponent("modules/JConfig/JConfig.php");
10
+	$jConfig = new JConfig();
11
+	$jConfig->import("config/connection.json", "connection");
12 12
 	$jConfig->import("config/misc.json");
13 13
 	$jConfig->import("config/router.json");
14 14
 
15 15
 	//JATE STUFF
16
-	requireComponent	("functions/folder.php");
16
+	requireComponent("functions/folder.php");
17 17
 
18 18
 	//JATE SUFF
19
-	requireComponent	("modules/Module/Module.php");
20
-	requireComponents	("functions");
21
-	requireModules		("modules");
19
+	requireComponent("modules/Module/Module.php");
20
+	requireComponents("functions");
21
+	requireModules("modules");
22 22
 
23 23
 	//USER STUFF
24
-	requireComponent	("config.php",false);
25
-	requireModules		("modules",false);
26
-	requireComponents	("bundles/models",false);
27
-	requireComponents	("bundles/controllers",false);
24
+	requireComponent("config.php", false);
25
+	requireModules("modules", false);
26
+	requireComponents("bundles/models", false);
27
+	requireComponents("bundles/controllers", false);
28 28
 ?>
Please login to merge, or discard this patch.
examples/01essential/bundles/controllers/Page01.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 	class Page01 extends Template {
3 3
 		public function __construct() {
4 4
 			parent::__construct();
5
-			$this->tags["title"]		= "JATE - Page01";
5
+			$this->tags["title"] = "JATE - Page01";
6 6
 			$this->tags["content"] = $this->makePage();
7 7
 		}
8 8
 		public function makePage() {
Please login to merge, or discard this patch.
examples/01essential/bundles/controllers/Home.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 	class Home extends Template {
3 3
 		public function __construct() {
4 4
 			parent::__construct();
5
-			$this->tags["title"]		= "JATE - Home";
5
+			$this->tags["title"] = "JATE - Home";
6 6
 			$this->tags["content"] = $this->makePage();
7 7
 		}
8 8
 		public function makePage() {
Please login to merge, or discard this patch.
examples/01essential/bundles/controllers/Page404.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 	class Page404 extends Template {
3 3
 		public function __construct() {
4 4
 			parent::__construct();
5
-			$this->tags["title"]		= "JATE - 404";
5
+			$this->tags["title"] = "JATE - 404";
6 6
 			$this->tags["content"] = $this->makePage();
7 7
 		}
8 8
 		public function makePage() {
Please login to merge, or discard this patch.
examples/01essential/bundles/models/Template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
 		public function makeConnection() {
20 20
 			global $jConfig;
21 21
 			$connection = null;
22
-			if($jConfig->connection["enable"])
22
+			if ($jConfig->connection["enable"])
23 23
 				$connection = new Connection(
24 24
 						$jConfig->connection["server"]
25 25
 					, $jConfig->connection["database"]
26 26
 					, $jConfig->connection["user"]
27 27
 					, $jConfig->connection["password"]
28 28
 				);
29
-			$this->addConnection("base",$connection);
29
+			$this->addConnection("base", $connection);
30 30
 		}
31 31
 	}
32 32
 ?>
Please login to merge, or discard this patch.
examples/05database/bundles/controllers/Page01.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 	class Page01 extends Template {
3 3
 		public function __construct() {
4 4
 			parent::__construct();
5
-			$this->tags["title"]		= "JATE - Page01";
5
+			$this->tags["title"] = "JATE - Page01";
6 6
 			$this->tags["content"] = $this->makePage();
7 7
 		}
8 8
 		public function makePage() {
Please login to merge, or discard this patch.
examples/05database/bundles/controllers/Home.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 	class Home extends Template {
3 3
 		public function __construct() {
4 4
 			parent::__construct();
5
-			$this->tags["title"]		= "JATE - Home";
5
+			$this->tags["title"] = "JATE - Home";
6 6
 			$this->tags["content"] = $this->makePage();
7 7
 		}
8 8
 		public function makePage() {
Please login to merge, or discard this patch.