make type hints easier to read

This commit is contained in:
Dennis Eichhorn 2020-06-08 22:43:28 +02:00
parent 0d5912a48c
commit 4aba4ad579
4 changed files with 6 additions and 14 deletions

View File

@ -12,9 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
/** /** @var \phpOMS\Views\View $this */
* @var \phpOMS\Views\View $this
*/
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="row"> <div class="row">

View File

@ -15,9 +15,7 @@ declare(strict_types=1);
use \Modules\Tasks\Models\TaskPriority; use \Modules\Tasks\Models\TaskPriority;
use \Modules\Tasks\Models\TaskType; use \Modules\Tasks\Models\TaskType;
/** /** @var \phpOMS\Views\View $this */
* @var \phpOMS\Views\View $this
*/
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="row"> <div class="row">

View File

@ -23,10 +23,8 @@ use phpOMS\Uri\UriFactory;
* It could also make sense to implement checkboxes infront of the list items which then show a close/done etc. button which can be pressed and changes the status of all of the checked tasks. * It could also make sense to implement checkboxes infront of the list items which then show a close/done etc. button which can be pressed and changes the status of all of the checked tasks.
*/ */
/** /** @var \phpOMS\Views\View $this */
* @var \phpOMS\Views\View $this /** @var \Modules\Tasks\Models\Task[] $tasks */
* @var \Modules\Tasks\Models\Task[] $tasks
*/
$tasks = $this->getData('tasks') ?? []; $tasks = $this->getData('tasks') ?? [];
$previous = empty($tasks) ? '{/prefix}task/dashboard' : '{/prefix}task/dashboard?{?}&id=' . \reset($tasks)->getId() . '&ptype=-'; $previous = empty($tasks) ? '{/prefix}task/dashboard' : '{/prefix}task/dashboard?{?}&id=' . \reset($tasks)->getId() . '&ptype=-';

View File

@ -17,10 +17,8 @@ use \Modules\Tasks\Models\GroupRelation;
use \Modules\Tasks\Models\TaskPriority; use \Modules\Tasks\Models\TaskPriority;
use \Modules\Tasks\Models\TaskStatus; use \Modules\Tasks\Models\TaskStatus;
/** /** @var \Modules\Tasks\Views\TaskView $this */
* @var \Modules\Tasks\Views\TaskView $this /** @var \Modules\Tasks\Models\Task $task */
* @var \Modules\Tasks\Models\Task $task
*/
$task = $this->getData('task'); $task = $this->getData('task');
$taskMedia = $task->getMedia(); $taskMedia = $task->getMedia();
$elements = $task->getTaskElements(); $elements = $task->getTaskElements();