Passed
Push — master ( 5c1cfb...bc7ca9 )
by Anthony
02:45
created
core/modules/RouterModule.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 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() {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 			}
91 91
 			
92 92
 			echo $this->page;
93
-			echo $this->parametre ;
93
+			echo $this->parametre;
94 94
 
95 95
 			$this->setActionPage();
96 96
 
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
 					$this->page[] = $explode[$i];
69 68
 				}
@@ -77,8 +76,7 @@  discard block
 block discarded – undo
77 76
 
78 77
 			if (!isset($centre_url) || ($centre_url == "")) {
79 78
 				$this->page = "index";
80
-			}
81
-			else {
79
+			} else {
82 80
 				$file = ROOT."modules/".$debut_url."/app/views/".$this->page;
83 81
 				
84 82
 				if (!file_exists($file)) {
Please login to merge, or discard this patch.