@@ -51,6 +51,9 @@ |
||
| 51 | 51 | return $this->composerLoader; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param string $configKey |
|
| 56 | + */ |
|
| 54 | 57 | public function getConfig($configKey) |
| 55 | 58 | { |
| 56 | 59 | return $this->config->getConfig($configKey); |
@@ -15,6 +15,9 @@ |
||
| 15 | 15 | $this->formId = $formId; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param stdClass $saveInfos |
|
| 20 | + */ |
|
| 18 | 21 | protected function saveToken($saveInfos) |
| 19 | 22 | { |
| 20 | 23 | //Default to session |
@@ -28,6 +28,9 @@ discard block |
||
| 28 | 28 | $this->status->load = true; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $pathName |
|
| 33 | + */ |
|
| 31 | 34 | public static function installInfos($pathName) |
| 32 | 35 | { |
| 33 | 36 | $this->loadModulesInstallInfos(); |
@@ -94,6 +97,9 @@ discard block |
||
| 94 | 97 | ); |
| 95 | 98 | } |
| 96 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $jsonFilePath |
|
| 102 | + */ |
|
| 97 | 103 | protected function loadJsonFile($jsonFilePath) |
| 98 | 104 | { |
| 99 | 105 | if(!file_exists($jsonFilePath)) { |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | * Permet de rediriger une page |
| 134 | 134 | * |
| 135 | 135 | * @param string $page : la page vers laquelle rediriger |
| 136 | - * @param bool $permaet : If it's a permanent redirection for this url or not |
|
| 136 | + * @param bool $permanent : If it's a permanent redirection for this url or not |
|
| 137 | 137 | */ |
| 138 | 138 | function redirection($page, $permanent=false) |
| 139 | 139 | { |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | * |
| 37 | 37 | * @throws \Exception Erreur dsans les paramètres donnée à la méthode |
| 38 | 38 | * |
| 39 | - * @return boolean|null |
|
| 39 | + * @return boolean |
|
| 40 | 40 | */ |
| 41 | 41 | public function majExpire($key, $expire) |
| 42 | 42 | { |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | define('cliMode', true); |
| 5 | 5 | |
| 6 | 6 | //If this file is not call from cli, we display an error |
| 7 | -if(PHP_SAPI !== 'cli') { |
|
| 7 | +if (PHP_SAPI !== 'cli') { |
|
| 8 | 8 | echo 'cli.php should be used only from the command.'; |
| 9 | 9 | exit; |
| 10 | 10 | } |
@@ -7,17 +7,17 @@ |
||
| 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'); |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | $keywords->search, |
| 151 | 151 | $keywords->replace, |
| 152 | 152 | strtolower($match[3]) |
| 153 | - ); |
|
| 153 | + ); |
|
| 154 | 154 | |
| 155 | 155 | $dateDepart = clone $this; |
| 156 | 156 | parent::modify($match[1].$match[2].' '.$keyword); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | $match = []; |
| 143 | 143 | |
| 144 | 144 | //Regex sur le paramètre pour récupéré le type de modification |
| 145 | - if(preg_match('#(\+|\-)([0-9]+) ([a-z]+)#i', $modify, $match) !== 1) { |
|
| 145 | + if (preg_match('#(\+|\-)([0-9]+) ([a-z]+)#i', $modify, $match) !== 1) { |
|
| 146 | 146 | throw new Exceptio('Date::modify pattern not match.'); |
| 147 | 147 | } |
| 148 | 148 | |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | $dateDepart = clone $this; |
| 156 | 156 | parent::modify($match[1].$match[2].' '.$keyword); |
| 157 | 157 | |
| 158 | - if($dateDepart == $this) { |
|
| 158 | + if ($dateDepart == $this) { |
|
| 159 | 159 | throw new Exception('Parameter '.$match[3].' is unknown.'); |
| 160 | 160 | } |
| 161 | 161 | } |
@@ -53,31 +53,31 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | function displayMsg($msg, $colorTxt = null, $colorBg = null, $style = 'normal') |
| 55 | 55 | { |
| 56 | - if($colorTxt == null) { |
|
| 56 | + if ($colorTxt == null) { |
|
| 57 | 57 | echo $msg."\n"; |
| 58 | 58 | return; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | //Gestion cas avec couleur |
| 62 | 62 | $styleNum = styleForShell($style); |
| 63 | - if($styleNum === false) { |
|
| 63 | + if ($styleNum === false) { |
|
| 64 | 64 | $styleNum = styleForShell('normal'); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | $colorTxtNum = colorForShell('white', 'txt'); |
| 68 | - if($colorTxt !== null) { |
|
| 68 | + if ($colorTxt !== null) { |
|
| 69 | 69 | $colorTxtNumArg = colorForShell($colorTxt, 'txt'); |
| 70 | 70 | |
| 71 | - if($colorTxtNumArg !== false) { |
|
| 71 | + if ($colorTxtNumArg !== false) { |
|
| 72 | 72 | $colorTxtNum = $colorTxtNumArg; |
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $colorBgNum = colorForShell('black', 'bg'); |
| 77 | - if($colorBg !== null) { |
|
| 77 | + if ($colorBg !== null) { |
|
| 78 | 78 | $colorBgNumArg = colorForShell($colorBg, 'bg'); |
| 79 | 79 | |
| 80 | - if($colorBgNumArg !== false) { |
|
| 80 | + if ($colorBgNumArg !== false) { |
|
| 81 | 81 | $colorBgNum = $colorBgNumArg; |
| 82 | 82 | } |
| 83 | 83 | } |