@@ -39,7 +39,7 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * @param Entity $object |
| 41 | 41 | * |
| 42 | - * @return bool|ManagerInterface |
|
| 42 | + * @return Entity |
|
| 43 | 43 | */ |
| 44 | 44 | public function getSupport(Entity $object) |
| 45 | 45 | { |
@@ -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. |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | return $contenu; |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $contenu |
|
| 16 | + */ |
|
| 14 | 17 | public function remplacerLesCaracteresSpeciaux($contenu) |
| 15 | 18 | { |
| 16 | 19 | // Gestion des accents. |
@@ -33,6 +33,9 @@ discard block |
||
| 33 | 33 | return $contenuReplace; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $type |
|
| 38 | + */ |
|
| 36 | 39 | protected function renderLien($type, $contenu) |
| 37 | 40 | { |
| 38 | 41 | if (!in_array($type, ["unsub", "click"])) { |
@@ -52,6 +55,11 @@ discard block |
||
| 52 | 55 | |
| 53 | 56 | } |
| 54 | 57 | |
| 58 | + /** |
|
| 59 | + * @param string $lien |
|
| 60 | + * @param string $texte |
|
| 61 | + * @param string $style |
|
| 62 | + */ |
|
| 55 | 63 | protected function retournerLaChaine($type, $lien, $texte, $style = null) |
| 56 | 64 | { |
| 57 | 65 | if ($type == "unsub") { |
@@ -4,7 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use {{ namespace }}\Manager\{{ nomEntity }}Manager; |
| 6 | 6 | |
| 7 | -class {{nomEntity}}ManagerTest extends \Starkerxp\StructureBundle\Tests\WebTest |
|
| 7 | +class |
|
| 8 | +{ |
|
| 9 | +{nomEntity}}ManagerTest extends \Starkerxp\StructureBundle\Tests\WebTest |
|
| 8 | 10 | { |
| 9 | 11 | |
| 10 | 12 | /** @var {{ nomEntity }}Manager */ |