Passed
Push — master ( bae2e5...39e222 )
by Anthony
03:12
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.