Passed
Push — master ( 8543ab...7db5d1 )
by Anthony
03:06
created
core/auth/Membre.class.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 		
18 18
 		//------------------------------ constructeur-----------------------------------
19 19
 		//Récupérer en base de données les infos du membre
20
-		public function __construct($id_identite=null){
20
+		public function __construct($id_identite = null) {
21 21
 			$dbc = \core\App::getDb();
22 22
 
23 23
 			$this->debut_lien = IMGROOT."profil/";
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		/**
84 84
 		 * @param null $id_identite
85 85
 		 */
86
-		public function setSupprimUser($id_identite=null) {
86
+		public function setSupprimUser($id_identite = null) {
87 87
 			$dbc = \core\App::getDb();
88 88
 
89 89
 			if ($id_identite == null) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 			$oldimg_profil = $obj->img_profil;
98 98
 			if ($oldimg_profil != "") {
99 99
 				$oldimg_profil = explode("/", $oldimg_profil);
100
-				if(end($oldimg_profil) == "defaut.png") {
100
+				if (end($oldimg_profil) == "defaut.png") {
101 101
 					
102 102
 				}
103 103
 				else {
@@ -192,22 +192,22 @@  discard block
 block discarded – undo
192 192
 		 * @param string $mdp
193 193
 		 * @return integer
194 194
 		 */
195
-		private function testpassword($mdp)	{
195
+		private function testpassword($mdp) {
196 196
 			$longueur = strlen($mdp);
197 197
 			$point = 0;
198 198
 
199
-			for ($i=0 ; $i<$longueur ; $i++) 	{
199
+			for ($i = 0; $i < $longueur; $i++) {
200 200
 				$lettre = $mdp[$i];
201 201
 
202 202
 				if ($lettre >= 'a' && $lettre <= 'z') {
203 203
 					$point = $point + 1;
204 204
 					$point_min = 1;
205 205
 				}
206
-				else if ($lettre >= 'A' && $lettre <= 'Z'){
206
+				else if ($lettre >= 'A' && $lettre <= 'Z') {
207 207
 					$point = $point + 2;
208 208
 					$point_maj = 2;
209 209
 				}
210
-				else if ($lettre >= '0' && $lettre <= '9'){
210
+				else if ($lettre >= '0' && $lettre <= '9') {
211 211
 					$point = $point + 3;
212 212
 					$point_chiffre = 3;
213 213
 				}
Please login to merge, or discard this patch.
admin/views/configuration/module.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@  discard block
 block discarded – undo
7 7
 <script src="<?=LIBSWEBROOT?>checkbox/js/anim.js"></script>
8 8
 <link rel="stylesheet" type="text/css" href="<?=LIBSWEBROOT?>popup/css/style.css">
9 9
 <script src="<?=LIBSWEBROOT?>popup/js/popup.js"></script>
10
-<?php require_once(ROOT."admin/views/configuration/js/configuration.php");?>
11
-<?php require_once('header.php');?>
10
+<?php require_once(ROOT."admin/views/configuration/js/configuration.php"); ?>
11
+<?php require_once('header.php'); ?>
12 12
 
13 13
 <div class="inner">
14
-	<?php require_once(LIBSROOT."barre_chargement/index.php");?>
14
+	<?php require_once(LIBSROOT."barre_chargement/index.php"); ?>
15 15
 	<div class="contenu modifier-contenu">
16 16
 		<h2>Ajouter un module</h2>
17 17
 		<form action="<?=ADMWEBROOT?>controller/core/modules/installation/installer" method="get" id="form-install">
@@ -36,23 +36,23 @@  discard block
 block discarded – undo
36 36
 				</tr>
37 37
 			</thead>
38 38
 			<tbody>
39
-				<?php for ($i=0 ; $i<count($gestion_module_page_syst->getIdModule()) ; $i++):?>
39
+				<?php for ($i = 0; $i < count($gestion_module_page_syst->getIdModule()); $i++):?>
40 40
 					<tr>
41 41
 						<td><?=$gestion_module_page_syst->getNom()[$i]?></td>
42 42
 						<td>
43 43
 							<label for="<?=$gestion_module_page_syst->getUrl()[$i]?>" class="checkbox-perso switched">
44
-								<input type="checkbox" class="test-check" id="<?=$gestion_module_page_syst->getUrl()[$i]?>" <?php if (\core\modules\GestionModule::getModuleActiver($gestion_module_page_syst->getNom()[$i]) === true): ?>checked<?php endif;?> <?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) === false):?>disabled<?php endif;?>>
44
+								<input type="checkbox" class="test-check" id="<?=$gestion_module_page_syst->getUrl()[$i]?>" <?php if (\core\modules\GestionModule::getModuleActiver($gestion_module_page_syst->getNom()[$i]) === true): ?>checked<?php endif; ?> <?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) === false):?>disabled<?php endif; ?>>
45 45
 							</label>
46 46
 						</td>
47 47
 						<td>
48 48
 							<?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) === true) { ?>
49 49
 								<a class="open-popup" popup="popup-delete-module" href="<?=ADMWEBROOT?>controller/core/modules/installation/supprimer?id_module=<?=$gestion_module_page_syst->getIdModule()[$i]?>">Supprimer</a>
50
-							<?php }else{ ?>
50
+							<?php } else { ?>
51 51
 								<a class="installer-module" href="<?=ADMWEBROOT?>controller/core/modules/installation/installer?url=<?=$gestion_module_page_syst->getUrlTelechargement()[$i]?>">Installer</a>
52 52
 							<?php }?>
53 53
 						</td>
54 54
 						<td>
55
-							<?php if ((\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) === true) && (\core\modules\GestionModule::getModuleActiver($gestion_module_page_syst->getNom()[$i]) === true)){ ?>
55
+							<?php if ((\core\modules\GestionModule::getModuleInstaller($gestion_module_page_syst->getNom()[$i]) === true) && (\core\modules\GestionModule::getModuleActiver($gestion_module_page_syst->getNom()[$i]) === true)) { ?>
56 56
 								<?php if (\core\modules\GestionModule::getModuleAJour($gestion_module_page_syst->getNom()[$i]) != 1) { ?>
57 57
 									<a href="<?=ADMWEBROOT?>controller/core/modules/installation/update?id_module=<?=$gestion_module_page_syst->getIdModule()[$i]?>" class="open-popup" popup="popup-update-module">Mettre à jour</a>
58 58
 								<?php } else {?>
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 							<?php }?>
64 64
 						</td>
65 65
 					</tr>
66
-				<?php endfor;?>
66
+				<?php endfor; ?>
67 67
 			</tbody>
68 68
 		</table>
69 69
 	</div>
@@ -79,23 +79,23 @@  discard block
 block discarded – undo
79 79
 				</tr>
80 80
 			</thead>
81 81
 			<tbody>
82
-				<?php for ($i=0 ; $i<count($gestion_module_page->getIdModule()) ; $i++):?>
82
+				<?php for ($i = 0; $i < count($gestion_module_page->getIdModule()); $i++):?>
83 83
 					<tr>
84 84
 						<td><?=$gestion_module_page->getNom()[$i]?></td>
85 85
 						<td>
86 86
 							<label for="<?=$gestion_module_page->getUrl()[$i]?>" class="checkbox-perso switched">
87
-								<input type="checkbox" class="test-check" id="<?=$gestion_module_page->getUrl()[$i]?>" <?php if (\core\modules\GestionModule::getModuleActiver($gestion_module_page->getNom()[$i]) === true): ?>checked<?php endif;?>>
87
+								<input type="checkbox" class="test-check" id="<?=$gestion_module_page->getUrl()[$i]?>" <?php if (\core\modules\GestionModule::getModuleActiver($gestion_module_page->getNom()[$i]) === true): ?>checked<?php endif; ?>>
88 88
 							</label>
89 89
 						</td>
90 90
 						<td>
91 91
 							<?php if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page->getNom()[$i]) === true) { ?>
92 92
 								<a class="supprimer open-popup" popup="popup-delete-module" href="<?=ADMWEBROOT?>controller/core/modules/installation/supprimer?id_module=<?=$gestion_module_page->getIdModule()[$i]?>">Supprimer</a>
93
-							<?php }else{ ?>
93
+							<?php } else { ?>
94 94
 								<a href="<?=ADMWEBROOT?>controller/core/modules/installation/installer?url=<?=$gestion_module_page->getUrlTelechargement()[$i]?>">Installer</a>
95 95
 							<?php }?>
96 96
 						</td>
97 97
 					</tr>
98
-				<?php endfor;?>
98
+				<?php endfor; ?>
99 99
 			</tbody>
100 100
 		</table>
101 101
 	</div>
Please login to merge, or discard this patch.