mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-18 16:48:40 +00:00
Automated formatting changes
This commit is contained in:
parent
c9a2faa1de
commit
7dbf3fb489
|
|
@ -12,8 +12,6 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
use phpOMS\Uri\UriFactory;
|
||||
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\QA\Admin\Install;
|
||||
|
||||
use Model\Setting;
|
||||
use Model\SettingMapper;
|
||||
use phpOMS\Application\ApplicationAbstract;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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()); ?>">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user