Passed
Push — master ( e0b597...f1cdd9 )
by Anthony
02:43
created
admin/views/gestion-contenus/modifier-contenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 						<label class="label label-textarea" for="meta_description" data-error="La description doit être comprise entre 10 et 158 caractères">Description de votre site pour le navigateur (maximum 256 caractères)</label>
51 51
 						<textarea name="meta_description" type-val="string" min="10" max="158" required=""><?=$meta_description?></textarea>
52 52
 					</div>
53
-				<?php endif;?>
53
+				<?php endif; ?>
54 54
 			</section>
55 55
 		<?php endif; ?>
56 56
 
Please login to merge, or discard this patch.
admin/views/template/principal.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 		<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
8 8
 		<link rel="stylesheet" type="text/css" href="<?=WEBROOT?>admin/views/template/css/style.css">
9 9
 		<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
10
-		<?php require_once(ROOT."admin/views/template/js/menu.php");?>
10
+		<?php require_once(ROOT."admin/views/template/js/menu.php"); ?>
11 11
 		
12 12
 		<!-- Les librairies utlisées -->
13 13
 		<link rel="stylesheet" type="text/css" href="<?=LIBSWEBROOT?>popup/css/style.css">
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 	</head>
18 18
 	<?=\core\HTML\flashmessage\FlashMessage::getFlash(); ?>
19 19
 	<body>
20
-		<nav class="menu <?php if (($_SESSION["menu_plie".CLEF_SITE] == "deplie") || (!isset($_SESSION["menu_plie".CLEF_SITE]))):?>active<?php endif;?>">
20
+		<nav class="menu <?php if (($_SESSION["menu_plie".CLEF_SITE] == "deplie") || (!isset($_SESSION["menu_plie".CLEF_SITE]))):?>active<?php endif; ?>">
21 21
 			<div class="titre">
22 22
 				<h1>Ribs V0.1</h1>
23 23
 				<i class="fa fa-bars"></i>
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 										<a href="<?=ADMWEBROOT?>notifications"><i class="fa fa-bell  <?php if ($admin->getNotification() == 1):?> animated infinite swing<?php endif; ?>"></i></a>
40 40
 									</div>
41 41
 								</div>
42
-							<?php endif;?>
42
+							<?php endif; ?>
43 43
 							<div class="colonne">
44 44
 								<div class="config">
45 45
 									<a href="<?=ADMWEBROOT?>configuration/index"><i class="fa fa-gear"></i></a>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,9 @@
 block discarded – undo
91 91
 				</div>
92 92
 				
93 93
 				<?php
94
-					if (!isset($arr)) $arr = [];
94
+					if (!isset($arr)) {
95
+						$arr = [];
96
+					}
95 97
 					//echo $twig->render("template/left-navigation.html", array_merge(array_merge(array_merge(array_merge($arr, $constant), $_REQUEST), $_SESSION), $arr_admin));
96 98
 				?>
97 99
 				
Please login to merge, or discard this patch.
config/initialise.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-	if (!isset($page_root)) $page_root = "index.php";
2
+	if (!isset($page_root)) {
3
+		$page_root = "index.php";
4
+	}
3 5
 
4 6
 	//-------------------------- CONSTANTE POUR LES ROUTES ----------------------------------------------------------------------------//
5 7
 	//definit le chemin vers la racine du projet (depuis racine serveur web
Please login to merge, or discard this patch.
core/admin/droitsacces/DroitAcces.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,9 @@
 block discarded – undo
75 75
 				->get();
76 76
 
77 77
 			if ((is_array($query)) && (count($query) > 0)) {
78
-				foreach ($query as $obj) $liste_droit_acces[] = $obj->droit_acces;
78
+				foreach ($query as $obj) {
79
+					$liste_droit_acces[] = $obj->droit_acces;
80
+				}
79 81
 			}
80 82
 			
81 83
 			App::setValues(["droit_acces_user" => $liste_droit_acces]);
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.