Passed
Push — master ( f1cdd9...404c89 )
by Anthony
02:41
created
core/admin/contenus/GestionContenus.php 1 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/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.