Completed
Push — 2.2 ( f4c653...5ece81 )
by Vermeulen
02:18
created
install/skeleton/cli/exemple.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@
 block discarded – undo
7 7
 
8 8
 $opt = getCliParams('vhp', array('version::', 'help::', 'parameters::'));
9 9
 
10
-if(isset($opt['v']) || isset($opt['version']))
10
+if (isset($opt['v']) || isset($opt['version']))
11 11
 {
12 12
     displayMsg('v0.2');
13 13
 }
14 14
 
15
-if(isset($opt['p']) || isset($opt['paramters']))
15
+if (isset($opt['p']) || isset($opt['paramters']))
16 16
 {
17 17
     displayMsg(print_r($opt, true));
18 18
 }
19 19
 
20
-if(isset($opt['h']) || isset($opt['help']))
20
+if (isset($opt['h']) || isset($opt['help']))
21 21
 {
22 22
     displayMsg('');
23 23
     displayMsg('Helping Informations : Parameters script');
Please login to merge, or discard this patch.
install/skeleton/config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
  */
7 7
  
8 8
 //*** Config BFW ***
9
-$DebugMode    = true;     //True pour du dev (affiche toutes les erreurs), false pour de la prod (n'affiche rien)
9
+$DebugMode    = true; //True pour du dev (affiche toutes les erreurs), false pour de la prod (n'affiche rien)
10 10
 $errorRender  = 'displayPHPError'; //Fonction d'erreur PHP personnalisé du framework. false pour désactiver
11 11
 $myVendorName = 'vendor'; //Le nom du dossier où sont les libs de composer (default: "vendor")
12 12
 //*** Config BFW ***
13 13
 
14 14
 //*** Memcache ***
15
-$memcache_enabled = false;       //Permet d'activer ou non memcached
15
+$memcache_enabled = false; //Permet d'activer ou non memcached
16 16
 $memcache_host    = 'localhost'; //L'hote de connexion à memcached
17
-$memcache_port    = 11211;       //Le port de connexion à memcached
17
+$memcache_port    = 11211; //Le port de connexion à memcached
18 18
 //*** Memcache ***
19 19
 
20 20
 //*** Base De Données ***
Please login to merge, or discard this patch.
install/skeleton/cli.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 define('cliMode', true);
13 13
 //--- Config pour le kernel BFW ---
14 14
 
15
-if(PHP_SAPI != 'cli')
15
+if (PHP_SAPI != 'cli')
16 16
 {
17 17
     echo 'Fichier utilisable en mode CLI uniquement.';
18 18
     exit;
Please login to merge, or discard this patch.
src/classes/Ram.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
         $this->_kernel = getKernel();
54 54
         
55 55
         //Vérification si l'extension memcache est bien loadé
56
-        if(!extension_loaded('memcache'))
56
+        if (!extension_loaded('memcache'))
57 57
         {
58 58
             throw new Exception('Memcache php extension is not loaded.');
59 59
         }
60 60
         
61 61
         //Vérifie que les infos sont bien au bon typage
62
-        if(!(is_string($host) && is_integer($port)))
62
+        if (!(is_string($host) && is_integer($port)))
63 63
         {
64 64
             throw new Exception('Memcache connexion informations format is not correct.');
65 65
         }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $this->Server = new \Memcache;
68 68
         
69 69
         //Se connexion ... exception si fail
70
-        if($this->Server->connect($host, $port) === false)
70
+        if ($this->Server->connect($host, $port) === false)
71 71
         {
72 72
             throw new Exception('Memcache connect fail.');
73 73
         }
@@ -86,20 +86,20 @@  discard block
 block discarded – undo
86 86
      * 
87 87
      * @return bool
88 88
      */
89
-    public function setVal($key, $data, $expire=0)
89
+    public function setVal($key, $data, $expire = 0)
90 90
     {
91 91
         $verifParams = verifTypeData(array(
92 92
             array('type' => 'string', 'data' => $key),
93
-            array('type' => 'int',    'data' => $expire)
93
+            array('type' => 'int', 'data' => $expire)
94 94
         ));
95 95
         
96
-        if(!$verifParams || gettype($data) == 'resource')
96
+        if (!$verifParams || gettype($data) == 'resource')
97 97
         {
98 98
             throw new \Exception('Erreur dans les paramètres de Ram->setVal()');
99 99
         }
100 100
         
101 101
         $valDataServer = $this->Server->get($key);
102
-        if($valDataServer !== false)
102
+        if ($valDataServer !== false)
103 103
         {
104 104
             return $this->Server->replace($key, $data, 0, $expire);
105 105
         }
@@ -121,10 +121,10 @@  discard block
 block discarded – undo
121 121
     {
122 122
         $verifParams = verifTypeData(array(
123 123
             array('type' => 'string', 'data' => $key),
124
-            array('type' => 'int',    'data' => $exp)
124
+            array('type' => 'int', 'data' => $exp)
125 125
         ));
126 126
         
127
-        if(!$verifParams)
127
+        if (!$verifParams)
128 128
         {
129 129
             throw new \Exception('Erreur dans les paramètres de Ram->majExpire()');
130 130
         }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         
134 134
         //On la "modifie" en remettant la même valeur mais en changeant le temps
135 135
         //avant expiration si une valeur a été retournée
136
-        if($ret !== false && $this->Server->replace($key, $ret, 0, $exp))
136
+        if ($ret !== false && $this->Server->replace($key, $ret, 0, $exp))
137 137
         {
138 138
             return true;
139 139
         }
@@ -154,14 +154,14 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $verifParams = verifTypeData(array(array('type' => 'string', 'data' => $key)));
156 156
         
157
-        if(!$verifParams)
157
+        if (!$verifParams)
158 158
         {
159 159
             throw new \Exception('Erreur dans les paramètres de Ram->ifExists()');
160 160
         }
161 161
         
162 162
         $ret = $this->Server->get($key); //Récupère la valeur
163 163
         
164
-        if($ret === false) {return false;}
164
+        if ($ret === false) {return false; }
165 165
         return true;
166 166
     }
167 167
     
@@ -176,12 +176,12 @@  discard block
 block discarded – undo
176 176
     {
177 177
         $verifParams = verifTypeData(array(array('type' => 'string', 'data' => $key)));
178 178
         
179
-        if(!$verifParams)
179
+        if (!$verifParams)
180 180
         {
181 181
             throw new \Exception('Erreur dans les paramètres de Ram->delete()');
182 182
         }
183 183
         
184
-        if($this->Server->delete($key)) {return true;}
184
+        if ($this->Server->delete($key)) {return true; }
185 185
         return false;
186 186
     }
187 187
     
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     {
199 199
         $verifParams = verifTypeData(array(array('type' => 'string', 'data' => $key)));
200 200
         
201
-        if(!$verifParams)
201
+        if (!$verifParams)
202 202
         {
203 203
             throw new \Exception('Erreur dans les paramètres de Ram->getVal()');
204 204
         }
Please login to merge, or discard this patch.
src/classes/Observer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function updateWithAction($subject, $action)
38 38
     {
39
-        if(!is_object($subject))
39
+        if (!is_object($subject))
40 40
         {
41 41
             throw new Exception('Le paramètre $subject doit être un objet.');
42 42
         }
43
-        elseif(is_object($subject) && get_class($subject) != '\SplSubject')
43
+        elseif (is_object($subject) && get_class($subject) != '\SplSubject')
44 44
         {
45 45
             throw new Exception('Le paramètre $subject doit être un objet de type \SplSubject.');
46 46
         }
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
         $regex = '([0-9a-zA-Z.,_-]+)';
62 62
         $regex2 = '([0-9a-zA-Z.,_-]*)';
63 63
         
64
-        if(strpos($action, '::') !== false)
64
+        if (strpos($action, '::') !== false)
65 65
         {
66 66
             $preg_match = preg_match('^'.$regex.'::'.$regex.'\('.$regex2.'\);$', $action, $match);
67 67
             $class = $match[1];
68 68
             $args = $match[3];
69 69
         }
70
-        elseif(strpos($action, '->') !== false)
70
+        elseif (strpos($action, '->') !== false)
71 71
         {
72 72
             $preg_match = preg_match('^'.$regex.'::'.$regex.'\('.$regex2.'\);$', $action, $match);
73 73
             $class = $match[1];
@@ -79,16 +79,16 @@  discard block
 block discarded – undo
79 79
             $args = $match[2]; 
80 80
         }
81 81
         
82
-        if(!is_null($class))
82
+        if (!is_null($class))
83 83
         {
84 84
             $class = str_replace('$', '', $class);
85 85
             global ${$class};
86 86
         }
87 87
              
88
-        if(!is_null($args))
88
+        if (!is_null($args))
89 89
         {
90 90
             $args = explode(',', $args);
91
-            foreach($args as $arg)
91
+            foreach ($args as $arg)
92 92
             {
93 93
                 $arg = str_replace('$', '', $arg);
94 94
                 global ${$arg};
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         {
100 100
             eval($action);
101 101
         }
102
-        catch(\Exception $e)
102
+        catch (\Exception $e)
103 103
         {
104 104
             echo $e->getMessage();
105 105
         }
Please login to merge, or discard this patch.
src/classes/XmlWriterCustom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     protected function _indent()
51 51
     {
52
-        for($i = 0, $j = count($this->stack); $i < $j; $i++)
52
+        for ($i = 0, $j = count($this->stack); $i < $j; $i++)
53 53
         {
54 54
             $this->xml .= $this->indent;
55 55
         }
Please login to merge, or discard this patch.
src/classes/Visiteur.php 1 patch
Spacing   +20 added lines, -22 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         $this->_kernel = getKernel();
199 199
         
200 200
         $this->recup_infos();
201
-        if(isset($_SESSION['idSess']))
201
+        if (isset($_SESSION['idSess']))
202 202
         {
203 203
             $this->idSession = $_SESSION['idSess'];
204 204
         }
@@ -249,9 +249,9 @@  discard block
 block discarded – undo
249 249
             'HTTP_CLIENT_IP'
250 250
         );
251 251
         
252
-        foreach($array as $key)
252
+        foreach ($array as $key)
253 253
         {
254
-            if(isset($_SERVER[$key]) && !empty($_SERVER[$key]))
254
+            if (isset($_SERVER[$key]) && !empty($_SERVER[$key]))
255 255
             {
256 256
                 $this->proxy = $_SERVER[$key];
257 257
                 return $this->proxy;
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     {
270 270
         $this->proxyIp = '';
271 271
         
272
-        if($this->proxy != NULL)
272
+        if ($this->proxy != NULL)
273 273
         {
274 274
             $this->proxyIp = $_SERVER['REMOTE_ADDR'];
275 275
         }
@@ -295,11 +295,11 @@  discard block
 block discarded – undo
295 295
     {
296 296
         $this->ip = 'Unknown';
297 297
         
298
-        if($this->proxy != NULL)
298
+        if ($this->proxy != NULL)
299 299
         {
300 300
             $this->ip = $this->proxy;
301 301
         }
302
-        elseif(isset($_SERVER['REMOTE_ADDR']))
302
+        elseif (isset($_SERVER['REMOTE_ADDR']))
303 303
         {
304 304
             $this->ip = $_SERVER['REMOTE_ADDR'];
305 305
         }
@@ -323,8 +323,7 @@  discard block
 block discarded – undo
323 323
      */
324 324
     protected function systemDetect()
325 325
     {
326
-        $array = array
327
-        (
326
+        $array = array(
328 327
             '(win|windows) ?(9x ?4\.90|Me)'     => 'Windows ME',
329 328
             '(win|windows) ?(95)'               => 'Windows 95',
330 329
             '(win|windows) ?(98)'               => 'Windows 98',
@@ -360,10 +359,10 @@  discard block
 block discarded – undo
360 359
             'os/2'                              => 'OS/2'
361 360
         );
362 361
         
363
-        foreach($array as $reg => $system)
362
+        foreach ($array as $reg => $system)
364 363
         {
365 364
             //Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
366
-            if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match('#'.$reg.'#i', $_SERVER['HTTP_USER_AGENT']))
365
+            if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match('#'.$reg.'#i', $_SERVER['HTTP_USER_AGENT']))
367 366
             {
368 367
                 $this->os = $system;
369 368
                 return;
@@ -378,8 +377,7 @@  discard block
 block discarded – undo
378 377
      */
379 378
     protected function browserDetect()
380 379
     {
381
-        $array=array
382
-        (
380
+        $array = array(
383 381
             '(MSIE)'       => 'Internet Explorer',
384 382
             '(Chrome)'     => 'Chrome',
385 383
             '(Opera)'      => 'Opera',
@@ -400,15 +398,15 @@  discard block
 block discarded – undo
400 398
             '(Mozilla)'    => 'Mozilla'
401 399
         );
402 400
         
403
-        if(isset($_SERVER['HTTP_USER_AGENT']))
401
+        if (isset($_SERVER['HTTP_USER_AGENT']))
404 402
         {
405
-            foreach($array as $reg => $browser)
403
+            foreach ($array as $reg => $browser)
406 404
             {
407 405
                 $match = array();
408
-                if(preg_match('#'.$reg.'#i', $_SERVER['HTTP_USER_AGENT'], $match))
406
+                if (preg_match('#'.$reg.'#i', $_SERVER['HTTP_USER_AGENT'], $match))
409 407
                 {
410 408
                     $this->nav = $browser;
411
-                    if($browser == 'Search engine')
409
+                    if ($browser == 'Search engine')
412 410
                     {
413 411
                         $this->bot = $match[1];
414 412
                     }
@@ -437,7 +435,7 @@  discard block
 block discarded – undo
437 435
         */
438 436
         
439 437
         $lang = 'Unknown';
440
-        if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
438
+        if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
441 439
         {
442 440
             $language = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
443 441
             $ex       = explode(',', $language);
@@ -445,7 +443,7 @@  discard block
 block discarded – undo
445 443
             $ex2  = explode(';', $ex[0]);
446 444
             $lang = strtolower($ex2[0]);
447 445
             
448
-            if(strpos($lang, '-') !== false)
446
+            if (strpos($lang, '-') !== false)
449 447
             {
450 448
                 $ex3  = explode('-', $lang);
451 449
                 $lang = $ex3[0];
@@ -462,7 +460,7 @@  discard block
 block discarded – undo
462 460
      * 
463 461
      * @return string La langue choisie. "Inconnue" si elle n'a pas été trouvée.
464 462
      */
465
-    protected function languageConvert($lang='')
463
+    protected function languageConvert($lang = '')
466 464
     {
467 465
         $array = array(
468 466
             'AF'   => 'Afrikaans',
@@ -533,7 +531,7 @@  discard block
 block discarded – undo
533 531
         );
534 532
         
535 533
         $lang = strtoupper($lang);
536
-        if(array_key_exists($lang, $array))
534
+        if (array_key_exists($lang, $array))
537 535
         {
538 536
             return $array[$lang];
539 537
         }
@@ -547,7 +545,7 @@  discard block
 block discarded – undo
547 545
     protected function refererDetect()
548 546
     {
549 547
         $this->proviens = 'Inconnu';
550
-        if(!empty($_SERVER['HTTP_REFERER']))
548
+        if (!empty($_SERVER['HTTP_REFERER']))
551 549
         {
552 550
             $this->proviens = $_SERVER['HTTP_REFERER'];
553 551
         }
@@ -559,7 +557,7 @@  discard block
 block discarded – undo
559 557
     protected function uriDetect()
560 558
     {
561 559
         $this->url = 'Inconnu';
562
-        if(!empty($_SERVER['REQUEST_URI']))
560
+        if (!empty($_SERVER['REQUEST_URI']))
563 561
         {
564 562
             $this->url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
565 563
         }
Please login to merge, or discard this patch.
src/classes/Date.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -146,15 +146,15 @@  discard block
 block discarded – undo
146 146
      * 
147 147
      * @param string $date (default: "now") La date sur laquelle travailler. Si pas indiqué, il s'agit de la date actuelle.
148 148
      */
149
-    public function __construct($date="now")
149
+    public function __construct($date = "now")
150 150
     {
151 151
         $this->_kernel = getKernel();
152 152
         
153
-        if($date != "now")
153
+        if ($date != "now")
154 154
         {
155 155
             $len = strlen($date);
156 156
             $len -= 3;
157
-            if($date[$len] == '+')
157
+            if ($date[$len] == '+')
158 158
             {
159 159
                 $date .= ':00';
160 160
             }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         $this->date = $date;
164 164
         parent::__construct($date);
165 165
         
166
-        if($date == "now")
166
+        if ($date == "now")
167 167
         {
168 168
             $this->date = $this->format('Y-m-d H:i:sO');
169 169
         }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         $dateMod = parent::format('Y-m-d H:i:s');
207 207
         
208 208
         //Si la modif à marcher direct, on met à jour et on sort.
209
-        if(!($dateOri == $dateMod || $mod == false))
209
+        if (!($dateOri == $dateMod || $mod == false))
210 210
         {
211 211
             $this->MAJ_Attributes();
212 212
             return $this;
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $dateMod2 = parent::format('Y-m-d H:i:s');
246 246
         
247 247
         //Si la modif à fail : création d'une exception
248
-        if($dateOri == $dateMod2 || $mod2 == false)
248
+        if ($dateOri == $dateMod2 || $mod2 == false)
249 249
         {
250 250
             throw new Exception('Parameter '.$match[3].' is unknown.');
251 251
         }
@@ -264,13 +264,13 @@  discard block
 block discarded – undo
264 264
      * Si string : aaaa-mm-jj hh:mm:ss
265 265
      * Si array : [0]=>partie date (aaaa-mm-jj), [1]=>partie heure (hh:mm:ss)
266 266
      */
267
-    public function getSql($decoupe=false)
267
+    public function getSql($decoupe = false)
268 268
     {
269 269
         $dateSql = new \DateTime($this->date, new \DateTimeZone(self::ZONE_DEFAULT));
270 270
         $date = $dateSql->format('Y-m-d');
271 271
         $heure = $dateSql->format('H:i:s');
272 272
         
273
-        if($decoupe) {return array($date, $heure);}
273
+        if ($decoupe) {return array($date, $heure); }
274 274
         
275 275
         return $date.' '.$heure;
276 276
     }
@@ -332,10 +332,10 @@  discard block
 block discarded – undo
332 332
         $return = array();
333 333
         
334 334
         $pos = false;
335
-        foreach($lst_all as $val)
335
+        foreach ($lst_all as $val)
336 336
         {
337 337
             $pos = strpos($val, $continent);
338
-            if($pos !== false)
338
+            if ($pos !== false)
339 339
             {
340 340
                 $return[] = $val;
341 341
             }
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
      * 
381 381
      * @return string La date simplifié
382 382
      */
383
-    public function aff_simple($tout=true, $minus=false)
383
+    public function aff_simple($tout = true, $minus = false)
384 384
     {
385 385
         //Découpage de la date donnée dans l'instance de la classe
386 386
         $annee  = $this->annee;
@@ -414,27 +414,27 @@  discard block
 block discarded – undo
414 414
         $diffInvert  = $diff->invert;
415 415
         
416 416
         //@TODO : All $diffXxx variable is on a string type, not int.
417
-        if($diffAnnee == 0 && $diffMois == 0 && $diffJour == 0 && $diffHeure == 0 && $diffMinute == 0 && $diffSeconde == 0)
417
+        if ($diffAnnee == 0 && $diffMois == 0 && $diffJour == 0 && $diffHeure == 0 && $diffMinute == 0 && $diffSeconde == 0)
418 418
         {
419 419
             $aff_date = 'Maintenant';
420 420
             $aff_heure = '';
421 421
         }
422
-        elseif($diffAnnee == 0 && $diffMois == 0 && $diffJour == 0 && $diffHeure <= 2)
422
+        elseif ($diffAnnee == 0 && $diffMois == 0 && $diffJour == 0 && $diffHeure <= 2)
423 423
         {
424 424
             $aff_date = 'Il y a '; //On commence par déclaré le début de l'affichage
425 425
             
426
-            if($diffJour > 1) //Dans le cas de 23h -> $heure_diff = -1
426
+            if ($diffJour > 1) //Dans le cas de 23h -> $heure_diff = -1
427 427
             {
428
-                $h = 24+$diffHeure; //24 + (-1)
428
+                $h = 24 + $diffHeure; //24 + (-1)
429 429
                 $aff_date .= $h.'h';
430 430
             }
431 431
             else
432 432
             {
433
-                if($diffHeure > 0)
433
+                if ($diffHeure > 0)
434 434
                 {
435 435
                     $aff_date .= $diffHeure.'h';
436 436
                 }
437
-                elseif($diffHeure <= 0 && $diffMinute > 0)
437
+                elseif ($diffHeure <= 0 && $diffMinute > 0)
438 438
                 {
439 439
                     $aff_date .= $diffMinute.'min';
440 440
                 }
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
             
447 447
             $aff_heure = ''; #Partie prévu pour l'affichage
448 448
         }
449
-        elseif($diffInvert == 0 && $diffAnnee == 0 && $diffMois == 0 && (($diffJour == 0 && $diffHeure > 2) || ($diffJour == 1 && $diffHeure == 0)))
449
+        elseif ($diffInvert == 0 && $diffAnnee == 0 && $diffMois == 0 && (($diffJour == 0 && $diffHeure > 2) || ($diffJour == 1 && $diffHeure == 0)))
450 450
         {
451 451
             //C'était hier
452 452
             $aff_date = 'Hier'; #On affiche donc en première partie "hier"
@@ -459,15 +459,15 @@  discard block
 block discarded – undo
459 459
             $aff_heure = ' à '.$heure.':'.$minute; //Et ensuite l'heure et les minutes
460 460
             
461 461
             //Et si l'année n'est pas la meme que l'actuel, alors on rajoute l'année à la fin de la première partie l'année
462
-            if($diffAnnee != 0) {$aff_date .= '/'.$annee;}
462
+            if ($diffAnnee != 0) {$aff_date .= '/'.$annee; }
463 463
         }
464 464
         
465 465
         $aff = $aff_date; //On renvoi la date
466 466
         //Si on veut tout afficher (la date et l'heure)
467
-        if($tout == 1) {$aff .= $aff_heure;}
467
+        if ($tout == 1) {$aff .= $aff_heure; }
468 468
         
469 469
         //Met la première lettre en minuscule dans le cas où l'ont veuille du minuscule
470
-        if($minus === true) {$aff = mb_strtolower($aff);}
470
+        if ($minus === true) {$aff = mb_strtolower($aff); }
471 471
         
472 472
         return $aff; //Et on retour la date parser :D
473 473
     }
Please login to merge, or discard this patch.
src/classes/Kernel.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $key = array_search($observer, $this->observers, true);
63 63
         
64
-        if($key !== false)
64
+        if ($key !== false)
65 65
         {
66 66
             unset($this->observers[$key]);
67 67
         }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $key = array_search($observer, $this->observers, true);
78 78
         
79
-        if($key)
79
+        if ($key)
80 80
         {
81 81
             unset($this->observers[$key]);
82 82
         }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function notifyObserver($action)
91 91
     {
92
-        foreach($this->observers as $observer)
92
+        foreach ($this->observers as $observer)
93 93
         {
94 94
             //Appel la méthode update de l'observateur
95 95
             $observer->updateWithAction($this, $action);
@@ -116,13 +116,13 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function notify()
118 118
     {
119
-        if(!is_null($this->notify_action))
119
+        if (!is_null($this->notify_action))
120 120
         {
121 121
             $this->notifyObserver($this->notify_action);
122 122
         }
123 123
         else
124 124
         {
125
-            foreach($this->observers as $observer)
125
+            foreach ($this->observers as $observer)
126 126
             {
127 127
                 //Appel la méthode update de l'observateur
128 128
                 $observer->update($this);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $this->debug = $debug;
142 142
         
143
-        if($debug) //Affiche toutes les erreurs de php
143
+        if ($debug) //Affiche toutes les erreurs de php
144 144
         {
145 145
             error_reporting(E_ALL);
146 146
             ini_set('display_errors', 'On');
Please login to merge, or discard this patch.