Passed
Push — master ( c5c897...e23d24 )
by Anthony
03:27
created
core/admin/contenus/GestionContenus.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,9 @@
 block discarded – undo
60 60
 		private function getParentId($parent) {
61 61
 			$dbc = \core\App::getDb();
62 62
 
63
-			if ($parent == "") return 0;
63
+			if ($parent == "") {
64
+				return 0;
65
+			}
64 66
 
65 67
 			$query = $dbc->select("ID_page")->from("page")->where("titre", " LIKE ", '"%'.$parent.'%"', "", true)->get();
66 68
 
Please login to merge, or discard this patch.
Doc Comments   +10 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@  discard block
 block discarded – undo
41 41
 			return $bloc_editable;
42 42
 		}
43 43
 
44
+		/**
45
+		 * @param integer $parent
46
+		 */
44 47
 		private function getOrdrePage($parent) {
45 48
 			if (($parent != "") || ($parent != 0)) {
46 49
 				$dbc = \core\App::getDb();
@@ -74,13 +77,13 @@  discard block
 block discarded – undo
74 77
 		}
75 78
 
76 79
 		/**
77
-		 * @param $nom_table
78
-		 * @param $nom_id_table
79
-		 * @param $champ
80
+		 * @param string $nom_table
81
+		 * @param string $nom_id_table
82
+		 * @param string $champ
80 83
 		 * @param $value
81
-		 * @param $limit_char
82
-		 * @param $err_char
83
-		 * @param $err_egalite
84
+		 * @param integer $limit_char
85
+		 * @param string $err_char
86
+		 * @param string $err_egalite
84 87
 		 * @param null $value_id_table
85 88
 		 * @return string
86 89
 		 * fonction qui permet de vérifier qu'il n'y ait pas d'erreur dans le champ spécifié ni de doublons
@@ -348,7 +351,7 @@  discard block
 block discarded – undo
348 351
 
349 352
 		/**
350 353
 		 * @param string $id
351
-		 * @param $value_id
354
+		 * @param string $value_id
352 355
 		 * @param integer $affiche
353 356
 		 */
354 357
 		private function setAjoutLienNavigation($id, $value_id, $affiche) {
Please login to merge, or discard this patch.
core/auth/Connexion.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,9 @@
 block discarded – undo
177 177
 			$dbc = App::getDb();
178 178
 			$query = $dbc->select("last_change_mdp")->from("identite")->where("ID_identite", "=", $id_identite)->get();
179 179
 			if ((is_array($query)) && (count($query) > 0)) {
180
-				foreach ($query as $obj) return $obj->last_change_mdp;
180
+				foreach ($query as $obj) {
181
+					return $obj->last_change_mdp;
182
+				}
181 183
 			}
182 184
 		}
183 185
 
Please login to merge, or discard this patch.
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/admin/contenus/gestion/contenus_inline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 	$gestion_contenu = new \core\admin\contenus\GestionContenus(0, 1);
3 3
 	$droit_acces = new \core\admin\droitsacces\DroitAcces();
4 4
 
5
-	if ((($droit_acces->getDroitAccesContenu("GESTION CONTENU PAGE", $_POST['id_page']) == true) &&  ($droit_acces->getModifContenu() != 0)) || ($droit_acces->getSuperAdmin() == 1)) {
5
+	if ((($droit_acces->getDroitAccesContenu("GESTION CONTENU PAGE", $_POST['id_page']) == true) && ($droit_acces->getModifContenu() != 0)) || ($droit_acces->getSuperAdmin() == 1)) {
6 6
 
7 7
 		$gestion_contenu->setModifierContenu($_POST['id_page'], $_POST['contenu']);
8 8
 
Please login to merge, or discard this patch.