Automated formatting changes

This commit is contained in:
Formatter Bot 2022-04-10 16:06:31 +00:00
parent 90d67b49f1
commit 0227388df7
3 changed files with 2 additions and 4 deletions

View File

@ -23,7 +23,6 @@ use Modules\News\Models\NullNewsSeen;
use Modules\News\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Contract\RenderableInterface;
use phpOMS\DataStorage\Database\Query\OrderType;
use phpOMS\Message\Http\RequestStatusCode;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;

View File

@ -35,7 +35,7 @@ $newsList = $this->getData('news') ?? [];
<?php
$count = 0;
foreach ($newsList as $key => $news) : ++$count;
$url = UriFactory::build('{/prefix}news/article?{?}&id=' . $news->getId());
$url = UriFactory::build('{/prefix}news/article?{?}&id=' . $news->getId());
$color = 'darkred';
if ($news->getType() === NewsType::ARTICLE) { $color = 'green'; }
@ -66,7 +66,7 @@ $newsList = $this->getData('news') ?? [];
</table>
</div>
<div class="portlet-foot">
<a class="button" href="<?= UriFactory::build('{/prefix}news/dashboard?{?}') ?>"><?= $this->getHtml('More', '0', '0'); ?></a>
<a class="button" href="<?= UriFactory::build('{/prefix}news/dashboard?{?}'); ?>"><?= $this->getHtml('More', '0', '0'); ?></a>
</div>
</div>
</div>

View File

@ -12,7 +12,6 @@
*/
declare(strict_types=1);
use Modules\News\Models\NewsType;
use phpOMS\Uri\UriFactory;
/** @var \phpOMS\Views\View $this */