Passed
Push — master ( e426a4...c32d1a )
by Anthony
03:18
created
core/admin/Admin.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
 		public static function testRedirect404($query, $url) {
27 27
 			if (is_array($query)) {
28 28
 				$count_query = count($query);
29
-			}
30
-			else {
29
+			} else {
31 30
 				$count_query = 0;
32 31
 			}
33 32
 
@@ -37,15 +36,13 @@  discard block
 block discarded – undo
37 36
 
38 37
 			if ($pos !== false) {
39 38
 				$controller = true;
40
-			}
41
-			else {
39
+			} else {
42 40
 				$controller = false;
43 41
 			}
44 42
 
45 43
 			if (($count_query > 0) || ((!is_array($query)) && ($query > 0)) || ($controller == true)) {
46 44
 				return true;
47
-			}
48
-			else {
45
+			} else {
49 46
 				$router = new RouterModule();
50 47
 
51 48
 				if ($router->getRouteModuleExist($url) == false) {
Please login to merge, or discard this patch.