@@ -18,6 +18,12 @@ |
||
| 18 | 18 | $this->eventDispatcher = $eventDispatcher; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $key |
|
| 23 | + * @param string $default_value |
|
| 24 | + * |
|
| 25 | + * @return string |
|
| 26 | + */ |
|
| 21 | 27 | private function array_value($array, $key, $default_value = null) |
| 22 | 28 | { |
| 23 | 29 | if (!is_array($array)) |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * Adds a mandatory requirement in form of a php.ini configuration. |
| 224 | 224 | * |
| 225 | 225 | * @param string $cfgName The configuration name used for ini_get() |
| 226 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 226 | + * @param boolean|string $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 227 | 227 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 228 | 228 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 229 | 229 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * Adds an optional recommendation in form of a php.ini configuration. |
| 242 | 242 | * |
| 243 | 243 | * @param string $cfgName The configuration name used for ini_get() |
| 244 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 244 | + * @param string|false $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 245 | 245 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 246 | 246 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 247 | 247 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Éjecte tous les utilisateurs ne respectant pas la condition |
| 39 | 39 | * @param boolean $bool |
| 40 | - * @return boolean |
|
| 40 | + * @return boolean|null |
|
| 41 | 41 | */ |
| 42 | 42 | protected function trust($bool) |
| 43 | 43 | { |
@@ -80,7 +80,6 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * Génère la réponse relative au traitement d'un formulaire |
| 82 | 82 | * @param array $data Le formulaire traité |
| 83 | - * @param object $parent Éventuellement l'objet parent |
|
| 84 | 83 | * @return Response |
| 85 | 84 | */ |
| 86 | 85 | public function formJson($data) |
@@ -343,6 +343,9 @@ |
||
| 343 | 343 | ], 201); |
| 344 | 344 | } |
| 345 | 345 | |
| 346 | + /** |
|
| 347 | + * @return string |
|
| 348 | + */ |
|
| 346 | 349 | private function stripAccents($string) |
| 347 | 350 | { |
| 348 | 351 | return str_replace( |
@@ -23,6 +23,12 @@ |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | // Persiste des objets notification qui seront retrievables |
| 26 | + |
|
| 27 | + /** |
|
| 28 | + * @param string $reason |
|
| 29 | + * @param string $title |
|
| 30 | + * @param string $message |
|
| 31 | + */ |
|
| 26 | 32 | public function notify($reason, $title, $message, $mode = 'to', $recipient = [], $resource = '') |
| 27 | 33 | { |
| 28 | 34 | $notification = new Notification($reason, $title, $message, $mode, $resource); |