@@ -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. |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | /** |
| 113 | 113 | * Redo Task |
| 114 | 114 | * |
| 115 | - * @param string $task Task ID |
|
| 115 | + * @param string $taskId Task ID |
|
| 116 | 116 | * |
| 117 | 117 | * @return Task |
| 118 | 118 | * @throws TaskNotFoundException |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * @Route("/{taskId}/updateStatus/{taskStatus}",name="task.updateStatus") |
| 138 | 138 | * @Method({"GET"}) |
| 139 | 139 | * |
| 140 | - * @return array |
|
| 140 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
| 141 | 141 | * @throws \Exception |
| 142 | 142 | */ |
| 143 | 143 | public function updateStatusAction( |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * @Route("/{taskId}/delete",name="task.delete") |
| 194 | 194 | * @Method({"GET"}) |
| 195 | 195 | * |
| 196 | - * @return array |
|
| 196 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse |
|
| 197 | 197 | * @throws TaskNotFoundException |
| 198 | 198 | * @throws TaskCannotBeRemovedException |
| 199 | 199 | */ |
@@ -14,8 +14,6 @@ |
||
| 14 | 14 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 15 | 15 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 16 | 16 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 17 | -use Todo\Domain\Exception\TaskNameIsAlreadyExistedException; |
|
| 18 | -use Todo\Domain\Exception\TaskNameIsEmptyException; |
|
| 19 | 17 | use Todo\Domain\Exception\TaskNotFoundException; |
| 20 | 18 | use Todo\Domain\Task; |
| 21 | 19 | use Todo\Web\FrontendBundle\Form\CreateTaskForm; |