Use global namespace

This commit is contained in:
Dennis Eichhorn 2019-04-27 00:13:26 +02:00
parent 72623910be
commit fcdaeb776b
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ final class ApiController extends Controller
$val = [];
if (($val['title'] = empty($request->getData('title')))
|| ($val['plain'] = empty($request->getData('plain')))
|| ($val['due'] = !((bool) strtotime((string) $request->getData('due'))))
|| ($val['due'] = !((bool) \strtotime((string) $request->getData('due'))))
) {
return $val;
}

View File

@ -157,7 +157,7 @@ echo $this->getData('nav')->render(); ?>
<option value="<?= $this->printHtml(TaskPriority::VHIGH); ?>"<?= $task->getPriority() === TaskPriority::VHIGH ? 'selected' : ''?>><?= $this->getHtml('P5') ?>
</select>
<tr><td><label for="iDue"><?= $this->getHtml('Due') ?></label>
<tr><td><input type="datetime-local" id="iDue" name="due" value="<?= $this->printHtml(!empty($elements) ? end($elements)->getDue()->format('Y-m-d\TH:i:s') : $task->getDue()->format('Y-m-d\TH:i:s')); ?>">
<tr><td><input type="datetime-local" id="iDue" name="due" value="<?= $this->printHtml(!empty($elements) ? \end($elements)->getDue()->format('Y-m-d\TH:i:s') : $task->getDue()->format('Y-m-d\TH:i:s')); ?>">
<tr><td><label for="iStatus"><?= $this->getHtml('Status') ?></label>
<tr><td><select id="iStatus" name="status">
<option value="<?= $this->printHtml(TaskStatus::OPEN); ?>"<?= $task->getStatus() === TaskStatus::OPEN ? 'selected' : ''?>>Open