Passed
Push — master ( 09abe8...7f2391 )
by Federico
02:56
created
examples/01essential/bundles/controllers/Home.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 	class Home extends Template {
3
-		public function __construct( $_parameters ) {
4
-			parent::__construct( $_parameters );
5
-			$this->tags["title"]		= "JATE - Home";
3
+		public function __construct($_parameters) {
4
+			parent::__construct($_parameters);
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 	class Page404 extends Template {
3
-		public function __construct( $_parameters ) {
4
-			parent::__construct( $_parameters );
5
-			$this->tags["title"]		= "JATE - 404";
3
+		public function __construct($_parameters) {
4
+			parent::__construct($_parameters);
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/controllers/Page01.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 	class Page01 extends Template {
3
-		public function __construct( $_parameters ) {
4
-			parent::__construct( $_parameters );
5
-			$this->tags["title"]		= "JATE - Page01";
3
+		public function __construct($_parameters) {
4
+			parent::__construct($_parameters);
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/models/Template.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	class Template extends Html {
3
-		public function __construct( $_parameters ) {
4
-			parent::__construct( $_parameters );
3
+		public function __construct($_parameters) {
4
+			parent::__construct($_parameters);
5 5
 			$this->tags["brand"]		= "JATE";
6 6
 			$this->tags["brandImg"] = "";
7 7
 			$this->tags["title"]		= "JATE - 01essential";
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 		public function makeConnection() {
21 21
 			$jConfig = $this->parameters["app"];
22 22
 			$connection = null;
23
-			if( $jConfig != null && $jConfig->connection["enable"])
23
+			if ($jConfig != null && $jConfig->connection["enable"])
24 24
 				$connection = new Connection(
25 25
 						$jConfig->connection["server"]
26 26
 					, $jConfig->connection["database"]
27 27
 					, $jConfig->connection["user"]
28 28
 					, $jConfig->connection["password"]
29 29
 				);
30
-			$this->addConnection("base",$connection);
30
+			$this->addConnection("base", $connection);
31 31
 		}
32 32
 		public function makeMenu() {
33 33
 			$temp = "";
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,13 +20,14 @@
 block discarded – undo
20 20
 		public function makeConnection() {
21 21
 			$jConfig = $this->parameters["app"];
22 22
 			$connection = null;
23
-			if( $jConfig != null && $jConfig->connection["enable"])
24
-				$connection = new Connection(
23
+			if( $jConfig != null && $jConfig->connection["enable"]) {
24
+							$connection = new Connection(
25 25
 						$jConfig->connection["server"]
26 26
 					, $jConfig->connection["database"]
27 27
 					, $jConfig->connection["user"]
28 28
 					, $jConfig->connection["password"]
29 29
 				);
30
+			}
30 31
 			$this->addConnection("base",$connection);
31 32
 		}
32 33
 		public function makeMenu() {
Please login to merge, or discard this patch.
examples/05database/bundles/controllers/Home.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 	class Home extends Template {
3
-		public function __construct( $_parameters ) {
4
-			parent::__construct( $_parameters );
5
-			$this->tags["title"]		= "JATE - Home";
3
+		public function __construct($_parameters) {
4
+			parent::__construct($_parameters);
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/05database/bundles/controllers/Page404.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 	class Page404 extends Template {
3
-		public function __construct( $_parameters ) {
4
-			parent::__construct( $_parameters );
5
-			$this->tags["title"]		= "JATE - 404";
3
+		public function __construct($_parameters) {
4
+			parent::__construct($_parameters);
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/05database/bundles/controllers/Page01.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 	class Page01 extends Template {
3
-		public function __construct( $_parameters ) {
4
-			parent::__construct( $_parameters );
5
-			$this->tags["title"]		= "JATE - Page01";
3
+		public function __construct($_parameters) {
4
+			parent::__construct($_parameters);
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/models/Template.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	class Template extends Html {
3
-		public function __construct( $_parameters ) {
4
-			parent::__construct( $_parameters );
3
+		public function __construct($_parameters) {
4
+			parent::__construct($_parameters);
5 5
 			$this->tags["brand"]		= "JATE";
6 6
 			$this->tags["brandImg"] = "";
7 7
 			$this->tags["title"]		= "JATE - 05database";
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 		public function makeConnection() {
21 21
 			$jConfig = $this->parameters["app"];
22 22
 			$connection = null;
23
-			if( $jConfig != null && $jConfig->connection["enable"])
23
+			if ($jConfig != null && $jConfig->connection["enable"])
24 24
 				$connection = new Connection(
25 25
 						$jConfig->connection["server"]
26 26
 					, $jConfig->connection["database"]
27 27
 					, $jConfig->connection["user"]
28 28
 					, $jConfig->connection["password"]
29 29
 				);
30
-			$this->addConnection("base",$connection);
30
+			$this->addConnection("base", $connection);
31 31
 		}
32 32
 		public function makeMenu() {
33 33
 			$temp = "";
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,13 +20,14 @@
 block discarded – undo
20 20
 		public function makeConnection() {
21 21
 			$jConfig = $this->parameters["app"];
22 22
 			$connection = null;
23
-			if( $jConfig != null && $jConfig->connection["enable"])
24
-				$connection = new Connection(
23
+			if( $jConfig != null && $jConfig->connection["enable"]) {
24
+							$connection = new Connection(
25 25
 						$jConfig->connection["server"]
26 26
 					, $jConfig->connection["database"]
27 27
 					, $jConfig->connection["user"]
28 28
 					, $jConfig->connection["password"]
29 29
 				);
30
+			}
30 31
 			$this->addConnection("base",$connection);
31 32
 		}
32 33
 		public function makeMenu() {
Please login to merge, or discard this patch.
examples/03pageParameters/status.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,17 +22,17 @@  discard block
 block discarded – undo
22 22
 					$percent;
23 23
 					foreach (getGitLog() as $i) {
24 24
 						$cont++;
25
-						if($cont % $nPerCol == 1)
25
+						if ($cont % $nPerCol == 1)
26 26
 							echo '<div class="row">';
27
-						if(isset($i["tag"])) {
28
-							$percent = explode(".",$i["tag"]);
27
+						if (isset($i["tag"])) {
28
+							$percent = explode(".", $i["tag"]);
29 29
 							$percent = 100 * intval($percent[0]) + 10 * intval($percent[1]) + intval($percent[2]);
30 30
 						}
31 31
 					?>
32 32
 						<div class="col-lg-<?=$dim?>">
33 33
 							<div class="well well-sm miniblock">
34 34
 								<div class="autor"><b>Autor:</b> <?=$i["author"]?><br></div>
35
-								<div class="tag"><b>Tag:</b> <?php if(isset($i["tag"])) echo $i["tag"]?><br></div>
35
+								<div class="tag"><b>Tag:</b> <?php if (isset($i["tag"])) echo $i["tag"]?><br></div>
36 36
 								<div class="date"><b>Date:</b> <?=$i["date"]?><br></div>
37 37
 								<div class="message"><b>Message:</b> <?=$i["message"]?><br></div>
38 38
 								<div class="progress">
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 							</div>
45 45
 						</div>
46 46
 					<?php
47
-					if($cont % $nPerCol == 0)
47
+					if ($cont % $nPerCol == 0)
48 48
 						echo '</div>';
49 49
 					} ?>
50 50
 				</div>
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,8 +22,9 @@  discard block
 block discarded – undo
22 22
 					$percent;
23 23
 					foreach (getGitLog() as $i) {
24 24
 						$cont++;
25
-						if($cont % $nPerCol == 1)
26
-							echo '<div class="row">';
25
+						if($cont % $nPerCol == 1) {
26
+													echo '<div class="row">';
27
+						}
27 28
 						if(isset($i["tag"])) {
28 29
 							$percent = explode(".",$i["tag"]);
29 30
 							$percent = 100 * intval($percent[0]) + 10 * intval($percent[1]) + intval($percent[2]);
@@ -32,7 +33,8 @@  discard block
 block discarded – undo
32 33
 						<div class="col-lg-<?=$dim?>">
33 34
 							<div class="well well-sm miniblock">
34 35
 								<div class="autor"><b>Autor:</b> <?=$i["author"]?><br></div>
35
-								<div class="tag"><b>Tag:</b> <?php if(isset($i["tag"])) echo $i["tag"]?><br></div>
36
+								<div class="tag"><b>Tag:</b> <?php if(isset($i["tag"])) {
37
+	echo $i["tag"]?><br></div>
36 38
 								<div class="date"><b>Date:</b> <?=$i["date"]?><br></div>
37 39
 								<div class="message"><b>Message:</b> <?=$i["message"]?><br></div>
38 40
 								<div class="progress">
@@ -46,6 +48,7 @@  discard block
 block discarded – undo
46 48
 					<?php
47 49
 					if($cont % $nPerCol == 0)
48 50
 						echo '</div>';
51
+}
49 52
 					} ?>
50 53
 				</div>
51 54
 			</div>
Please login to merge, or discard this patch.