@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
21 | - * @param $parent |
|
21 | + * @param integer $parent |
|
22 | 22 | * @return int |
23 | 23 | */ |
24 | 24 | private function getOrdrePage($parent) { |
@@ -24,9 +24,9 @@ |
||
24 | 24 | **/ |
25 | 25 | public static function Heureenseconde($heure, $minute) { |
26 | 26 | if ((is_numeric($heure)) && (is_numeric($minute))) { |
27 | - $heuresec = $heure * 3600; |
|
28 | - $minutesec = $minute * 60; |
|
29 | - $heureseconde = $heuresec + $minutesec; |
|
27 | + $heuresec = $heure*3600; |
|
28 | + $minutesec = $minute*60; |
|
29 | + $heureseconde = $heuresec+$minutesec; |
|
30 | 30 | return $heureseconde; |
31 | 31 | } |
32 | 32 | else { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $chaine = "abcdefghijklmnpqrstuvwxyz0123456789"; |
18 | 18 | srand((double)microtime()*1000000); |
19 | 19 | for ($i = 0; $i < $longueur; $i++) { |
20 | - $string .= $chaine[rand() % strlen($chaine)]; |
|
20 | + $string .= $chaine[rand()%strlen($chaine)]; |
|
21 | 21 | } |
22 | 22 | return $string; |
23 | 23 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | $this->page = $page; |
20 | 20 | |
21 | - if (($this->getTestCoreController() === false) && ($this->getTestModuleController() === false)) { |
|
21 | + if (($this->getTestCoreController() === false) && ($this->getTestModuleController() === false)) { |
|
22 | 22 | $this->controller = $this->part."/".$this->page.".php"; |
23 | 23 | } |
24 | 24 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | $dbc = App::getDb(); |
12 | 12 | $count_nav = count($nav); |
13 | 13 | |
14 | - for ($i = 0 ; $i < $count_nav ; $i++) { |
|
14 | + for ($i = 0; $i < $count_nav; $i++) { |
|
15 | 15 | $lien = explode(".", $nav[$i]); |
16 | 16 | |
17 | 17 | if ($lien[1] == "page") { |