mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-11 15:38:40 +00:00
make type hints easier to read
This commit is contained in:
parent
0d5912a48c
commit
4aba4ad579
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -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=-';
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user