Automated formatting changes

This commit is contained in:
Formatter Bot 2021-07-04 16:29:48 +00:00
parent c9a2faa1de
commit 7dbf3fb489
10 changed files with 10 additions and 14 deletions

View File

@ -12,8 +12,6 @@
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
?>
<div class="content">

View File

@ -14,8 +14,6 @@ declare(strict_types=1);
namespace Modules\QA\Admin\Install;
use Model\Setting;
use Model\SettingMapper;
use phpOMS\Application\ApplicationAbstract;
/**

View File

@ -14,14 +14,14 @@ declare(strict_types=1);
namespace Modules\QA\Controller;
use Modules\QA\Models\QAQuestionMapper;
use Modules\QA\Models\QAAppMapper;
use Modules\QA\Models\QAHelperMapper;
use Modules\QA\Models\QAQuestionMapper;
use phpOMS\Asset\AssetType;
use phpOMS\Contract\RenderableInterface;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
use phpOMS\Views\View;
use Modules\QA\Models\QAHelperMapper;
/**
* QA backend controller class.

View File

@ -88,7 +88,7 @@ final class QAAnswerVoteMapper extends DataMapperAbstract
*
* @since 1.0.0
*/
public static function findVote(int $answer, int $account) : bool|QAAnswerVote
public static function findVote(int $answer, int $account) : bool | QAAnswerVote
{
$depth = 3;
$query = self::getQuery();

View File

@ -88,7 +88,7 @@ final class QAQuestionVoteMapper extends DataMapperAbstract
*
* @since 1.0.0
*/
public static function findVote(int $question, int $account) : bool|QAQuestionVote
public static function findVote(int $question, int $account) : bool | QAQuestionVote
{
$depth = 3;
$query = self::getQuery();

View File

@ -59,7 +59,7 @@ echo $this->getData('nav')->render();
<a class="account-info" href="<?= UriFactory::build('{/prefix}profile/single?{?}&id=' . $question->createdBy->getId()); ?>">
<span class="name">
<div class="content"><?= $this->printHtml($question->createdBy->account->name2); ?>, <?= $this->printHtml($question->createdBy->account->name1); ?></div>
<div class="name-score">Score: <?= $scores[$question->createdBy->account->getId()] ?? 0 ?></div>
<div class="name-score">Score: <?= $scores[$question->createdBy->account->getId()] ?? 0; ?></div>
</span>
<?php if ($question->createdBy->image !== null && !($question->createdBy->image instanceof NullMedia)) : ?>
@ -100,7 +100,7 @@ echo $this->getData('nav')->render();
<a class="account-info" href="<?= UriFactory::build('{/prefix}profile/single?{?}&id=' . $answer->createdBy->getId()); ?>">
<span class="name">
<div class="content"><?= $this->printHtml($answer->createdBy->account->name2); ?> <?= $this->printHtml($answer->createdBy->account->name1); ?></div>
<div class="name-score">Score: <?= $scores[$answer->createdBy->account->getId()] ?? 0 ?></div>
<div class="name-score">Score: <?= $scores[$answer->createdBy->account->getId()] ?? 0; ?></div>
</span>
<?php if ($answer->createdBy->image !== null && !($answer->createdBy->image instanceof NullMedia)) : ?>
<img width="40px" alt="<?= $this->getHtml('AccountImage', '0', '0'); ?>" loading="lazy" src="<?= UriFactory::build('{/prefix}' . $answer->createdBy->image->getPath()); ?>">