Passed
Push — master ( 01ef95...06f42e )
by Anthony
03:39
created
core/Navigation.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 			if($no_module === null) {
16 16
 				$query = $dbc->select()->from("navigation")->orderBy("ordre")->get();
17
-			}
18
-			else {
17
+			} else {
19 18
 				$query = $dbc->select()->from("navigation")->where("ID_page", " IS NOT ", "NULL")->orderBy("ordre")->get();
20 19
 			}
21 20
 
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
 				foreach ($query as $obj) {
24 23
 					if ($obj->ID_page === null) {
25 24
 						$navigation[] = $this->getLienNavigationModule($obj->ID_module);
26
-					}
27
-					else {
25
+					} else {
28 26
 						$navigation[] = $this->getLienNavigationPage($obj->ID_page);
29 27
 					}
30 28
 					$last_ordre = $obj->ordre;
Please login to merge, or discard this patch.
core/modules/GestionModule.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,8 +130,7 @@  discard block
 block discarded – undo
130 130
 				foreach ($query as $obj) {
131 131
 					if ($obj->activer == 1) {
132 132
 						return true;
133
-					}
134
-					else {
133
+					} else {
135 134
 						return false;
136 135
 					}
137 136
 				}
@@ -183,8 +182,7 @@  discard block
 block discarded – undo
183 182
 
184 183
 			if ($activer == 1) {
185 184
 				$nav->setAjoutLien("ID_module", self::getUrlToId($url));
186
-			}
187
-			else {
185
+			} else {
188 186
 				$nav->setSupprimerLien("ID_module", self::getUrlToId($url));
189 187
 			}
190 188
 		}
Please login to merge, or discard this patch.