Passed
Push — master ( 05bb75...96b645 )
by Anthony
04:25
created
core/modules/RouterModule.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 		public function getPage() {
23 23
 			return $this->page;
24 24
 		}
25
-		public function getModule(){
25
+		public function getModule() {
26 26
 			return $this->module;
27 27
 		}
28 28
 		public function getController() {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@  discard block
 block discarded – undo
62 62
 				if (in_array($explode[$i], $this->getAllModules())) {
63 63
 					$this->module = $explode[$i];
64 64
 					$debut_url = $explode[$i];
65
-				}
66
-				else if ($i >= 1) {
65
+				} else if ($i >= 1) {
67 66
 					$centre_url[] = $explode[$i];
68 67
 				}
69 68
 			}
@@ -73,8 +72,7 @@  discard block
 block discarded – undo
73 72
 			
74 73
 			if (!isset($centre_url) || ($centre_url == "")) {
75 74
 				$this->page = "index";
76
-			}
77
-			else {
75
+			} else {
78 76
 				$file = ROOT."modules/".$debut_url."/app/views/".$centre_url;
79 77
 				
80 78
 				if (!file_exists($file.".html")) {
Please login to merge, or discard this patch.
core/database/Querybuilder.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@  discard block
 block discarded – undo
108 108
 			
109 109
 			if ($no_bind === true) {
110 110
 				$this->conditions_table[] = $champ.$cond.$champ_test." ".$closure;
111
-			}
112
-			else {
111
+			} else {
113 112
 				$this->conditions[] = $cond;
114 113
 				$this->addWhere($champ, $champ_test);
115 114
 			}
@@ -122,7 +121,9 @@  discard block
 block discarded – undo
122 121
 		 * @param string $type
123 122
 		 */
124 123
 		public function orderBy($order, $type = null) {
125
-			if ($type === null) $type = "ASC";
124
+			if ($type === null) {
125
+				$type = "ASC";
126
+			}
126 127
 			
127 128
 			$this->order_by = " ORDER BY ".$order." ".$type." ";
128 129
 			
@@ -136,8 +137,7 @@  discard block
 block discarded – undo
136 137
 		public function limit($debut, $fin = "no") {
137 138
 			if ($fin == "no") {
138 139
 				$this->limit = " LIMIT ".$debut." ";
139
-			}
140
-			else {
140
+			} else {
141 141
 				$this->limit = " LIMIT ".$debut.", ".$fin." ";
142 142
 			}
143 143
 			
Please login to merge, or discard this patch.