Passed
Push — master ( 7ee1fc...2d537f )
by Anthony
03:35
created
core/App.php 1 patch
Braces   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,12 @@
 block discarded – undo
84 84
 				$objects = scandir($url);
85 85
 				foreach ($objects as $object) {
86 86
 					if ($object != "." && $object != "..") {
87
-						if (filetype($url."/".$object) == "dir") App::supprimerDossier($url."/".$object); else unlink($url."/".$object);
87
+						if (filetype($url."/".$object) == "dir") {
88
+							App::supprimerDossier($url."/".$object);
89
+						}
90
+						else {
91
+							unlink($url."/".$object);
92
+						}
88 93
 					}
89 94
 				}
90 95
 				reset($objects);
Please login to merge, or discard this patch.
core/database/Database.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,9 @@
 block discarded – undo
96 96
 					$nb = $obj["nb"];
97 97
 				}
98 98
 
99
-				if ((isset($nb)) && ($nb != 0)) return true;
99
+				if ((isset($nb)) && ($nb != 0)) {
100
+					return true;
101
+				}
100 102
 			}
101 103
 			else {
102 104
 				return false;
Please login to merge, or discard this patch.
core/database/Querybuilder.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,9 @@
 block discarded – undo
123 123
 		 * @param string $type
124 124
 		 */
125 125
 		public function orderBy($order, $type = null) {
126
-			if ($type === null) $type = "ASC";
126
+			if ($type === null) {
127
+				$type = "ASC";
128
+			}
127 129
 			
128 130
 			$this->order_by = " ORDER BY ".$order." ".$type." ";
129 131
 			
Please login to merge, or discard this patch.
core/admin/droitsacces/DroitAcces.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 			return $this->supprimer_page;
61 61
 		}
62 62
 		public function getListeDroitsAcces(){
63
-		    return $this->liste_droits_acces;
63
+			return $this->liste_droits_acces;
64 64
 		}
65 65
 
66 66
 		/**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 		public function getSupprimerPage() {
60 60
 			return $this->supprimer_page;
61 61
 		}
62
-		public function getListeDroitsAcces(){
62
+		public function getListeDroitsAcces() {
63 63
 		    return $this->liste_droits_acces;
64 64
 		}
65 65
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		public function getSupprimerPage() {
60 60
 			return $this->supprimer_page;
61 61
 		}
62
-		public function getListeDroitsAcces(){
62
+		public function getListeDroitsAcces() {
63 63
 		    return $this->liste_droits_acces;
64 64
 		}
65 65
 
@@ -80,7 +80,9 @@  discard block
 block discarded – undo
80 80
 				->get();
81 81
 
82 82
 			if ((is_array($query)) && (count($query) > 0)) {
83
-				foreach ($query as $obj) $liste_droit_acces[] = $obj->droit_acces;
83
+				foreach ($query as $obj) {
84
+					$liste_droit_acces[] = $obj->droit_acces;
85
+				}
84 86
 			}
85 87
 			
86 88
 			App::setValues(["droit_acces_user" => $liste_droit_acces]);
Please login to merge, or discard this patch.
core/RouterController.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@
 block discarded – undo
31 31
 		
32 32
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
33 33
 		public function getController(){
34
-		    return $this->controller;
34
+			return $this->controller;
35 35
 		}
36 36
 		public function getErreur(){
37
-		    return $this->erreur;
37
+			return $this->erreur;
38 38
 		}
39 39
 		
40 40
 		/**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 				
19 19
 				$this->page = $page;
20 20
 				
21
-				if (($this->getTestCoreController() === false) && ($this->getTestModuleController()  === false)) {
21
+				if (($this->getTestCoreController() === false) && ($this->getTestModuleController() === false)) {
22 22
 					$this->controller = $this->part."/".$this->page.".php";
23 23
 				}
24 24
 				
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 		
31 31
 		
32 32
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
33
-		public function getController(){
33
+		public function getController() {
34 34
 		    return $this->controller;
35 35
 		}
36
-		public function getErreur(){
36
+		public function getErreur() {
37 37
 		    return $this->erreur;
38 38
 		}
39 39
 		
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
 		
31 31
 		
32 32
 		//-------------------------- GETTER ----------------------------------------------------------------------------//
33
-		public function getController(){
33
+		public function getController() {
34 34
 		    return $this->controller;
35 35
 		}
36
-		public function getErreur(){
36
+		public function getErreur() {
37 37
 		    return $this->erreur;
38 38
 		}
39 39
 		
Please login to merge, or discard this patch.