@@ -84,7 +84,12 @@ |
||
| 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); |
@@ -96,7 +96,9 @@ |
||
| 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; |
@@ -123,7 +123,9 @@ |
||
| 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 | |
@@ -60,7 +60,7 @@ |
||
| 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 | /** |
@@ -59,7 +59,7 @@ |
||
| 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 | |
@@ -59,7 +59,7 @@ discard block |
||
| 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 |
||
| 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]); |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @return mixed |
|
| 68 | + * @return string |
|
| 69 | 69 | * this function return link and delete controller at the begining of the link |
| 70 | 70 | */ |
| 71 | 71 | private function getBaseLink() { |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
| 36 | 36 | public function getController(){ |
| 37 | - return $this->controller; |
|
| 37 | + return $this->controller; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | $this->page = $page; |
| 23 | 23 | |
| 24 | - if (($this->getTestCoreController() === false) && ($this->getTestModuleController() === false)) { |
|
| 24 | + if (($this->getTestCoreController() === false) && ($this->getTestModuleController() === false)) { |
|
| 25 | 25 | $this->controller = $this->part."/".$this->page.".php"; |
| 26 | 26 | } |
| 27 | 27 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
| 36 | - public function getController(){ |
|
| 36 | + public function getController() { |
|
| 37 | 37 | return $this->controller; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | //-------------------------- GETTER ----------------------------------------------------------------------------// |
| 36 | - public function getController(){ |
|
| 36 | + public function getController() { |
|
| 37 | 37 | return $this->controller; |
| 38 | 38 | } |
| 39 | 39 | |