mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-13 14:28:40 +00:00
Automated formatting changes
This commit is contained in:
parent
ece43f9e90
commit
bac178138b
|
|
@ -18,7 +18,6 @@ use Modules\QA\Models\QAApp;
|
||||||
use Modules\QA\Models\QAAppMapper;
|
use Modules\QA\Models\QAAppMapper;
|
||||||
use phpOMS\Application\ApplicationAbstract;
|
use phpOMS\Application\ApplicationAbstract;
|
||||||
use phpOMS\Config\SettingsInterface;
|
use phpOMS\Config\SettingsInterface;
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
|
||||||
use phpOMS\Module\InstallerAbstract;
|
use phpOMS\Module\InstallerAbstract;
|
||||||
use phpOMS\Module\ModuleInfo;
|
use phpOMS\Module\ModuleInfo;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ declare(strict_types=1);
|
||||||
use phpOMS\Uri\UriFactory;
|
use phpOMS\Uri\UriFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
* @var \Modules\QA\Models\QAApp[] $apps
|
* @var \Modules\QA\Models\QAApp[] $apps
|
||||||
*/
|
*/
|
||||||
$apps = $this->getData('apps') ?? [];
|
$apps = $this->getData('apps') ?? [];
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ namespace Modules\QA\Controller;
|
||||||
use Modules\Admin\Models\NullAccount;
|
use Modules\Admin\Models\NullAccount;
|
||||||
use Modules\Media\Models\NullMedia;
|
use Modules\Media\Models\NullMedia;
|
||||||
use Modules\Profile\Models\Profile;
|
use Modules\Profile\Models\Profile;
|
||||||
use Modules\QA\Models\NullQAAnswer;
|
|
||||||
use Modules\QA\Models\NullQAAnswerVote;
|
use Modules\QA\Models\NullQAAnswerVote;
|
||||||
use Modules\QA\Models\NullQAApp;
|
use Modules\QA\Models\NullQAApp;
|
||||||
use Modules\QA\Models\NullQAQuestion;
|
use Modules\QA\Models\NullQAQuestion;
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ final class BackendController extends Controller
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function viewModuleSettings(RequestAbstract $request, ResponseAbstract $response, $data = null): RenderableInterface
|
public function viewModuleSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||||
{
|
{
|
||||||
$view = new View($this->app->l11nManager, $request, $response);
|
$view = new View($this->app->l11nManager, $request, $response);
|
||||||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000105001, $request, $response));
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000105001, $request, $response));
|
||||||
|
|
@ -203,7 +203,7 @@ final class BackendController extends Controller
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function viewAppSettings(RequestAbstract $request, ResponseAbstract $response, $data = null): RenderableInterface
|
public function viewAppSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||||
{
|
{
|
||||||
$view = new View($this->app->l11nManager, $request, $response);
|
$view = new View($this->app->l11nManager, $request, $response);
|
||||||
$view->setTemplate('/Modules/' . static::NAME . '/Admin/Settings/Theme/Backend/settings-app');
|
$view->setTemplate('/Modules/' . static::NAME . '/Admin/Settings/Theme/Backend/settings-app');
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,12 @@ final class QAAnswerVoteMapper extends DataMapperFactory
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const COLUMNS = [
|
public const COLUMNS = [
|
||||||
'qa_answer_vote_id' => ['name' => 'qa_answer_vote_id', 'type' => 'int', 'internal' => 'id'],
|
'qa_answer_vote_id' => ['name' => 'qa_answer_vote_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'qa_answer_vote_score' => ['name' => 'qa_answer_vote_score', 'type' => 'int', 'internal' => 'score'],
|
'qa_answer_vote_score' => ['name' => 'qa_answer_vote_score', 'type' => 'int', 'internal' => 'score'],
|
||||||
'qa_answer_vote_answer' => ['name' => 'qa_answer_vote_answer', 'type' => 'int', 'internal' => 'answer', 'readonly' => true],
|
'qa_answer_vote_answer' => ['name' => 'qa_answer_vote_answer', 'type' => 'int', 'internal' => 'answer', 'readonly' => true],
|
||||||
'qa_answer_vote_created_by' => ['name' => 'qa_answer_vote_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true],
|
'qa_answer_vote_created_by' => ['name' => 'qa_answer_vote_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true],
|
||||||
'qa_answer_vote_created_for' => ['name' => 'qa_answer_vote_created_for', 'type' => 'int', 'internal' => 'createdFor', 'readonly' => true],
|
'qa_answer_vote_created_for' => ['name' => 'qa_answer_vote_created_for', 'type' => 'int', 'internal' => 'createdFor', 'readonly' => true],
|
||||||
'qa_answer_vote_created_at' => ['name' => 'qa_answer_vote_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true],
|
'qa_answer_vote_created_at' => ['name' => 'qa_answer_vote_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true],
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ namespace Modules\QA\Models;
|
||||||
use Modules\Media\Models\Media;
|
use Modules\Media\Models\Media;
|
||||||
use Modules\Profile\Models\NullProfile;
|
use Modules\Profile\Models\NullProfile;
|
||||||
use Modules\Profile\Models\Profile;
|
use Modules\Profile\Models\Profile;
|
||||||
|
use Modules\Tag\Models\NullTag;
|
||||||
use Modules\Tag\Models\Tag;
|
use Modules\Tag\Models\Tag;
|
||||||
use phpOMS\Localization\ISO639x1Enum;
|
use phpOMS\Localization\ISO639x1Enum;
|
||||||
use Modules\Tag\Models\NullTag;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* QA question class.
|
* QA question class.
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,12 @@ final class QAQuestionVoteMapper extends DataMapperFactory
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const COLUMNS = [
|
public const COLUMNS = [
|
||||||
'qa_question_vote_id' => ['name' => 'qa_question_vote_id', 'type' => 'int', 'internal' => 'id'],
|
'qa_question_vote_id' => ['name' => 'qa_question_vote_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'qa_question_vote_score' => ['name' => 'qa_question_vote_score', 'type' => 'int', 'internal' => 'score'],
|
'qa_question_vote_score' => ['name' => 'qa_question_vote_score', 'type' => 'int', 'internal' => 'score'],
|
||||||
'qa_question_vote_question' => ['name' => 'qa_question_vote_question', 'type' => 'int', 'internal' => 'question', 'readonly' => true],
|
'qa_question_vote_question' => ['name' => 'qa_question_vote_question', 'type' => 'int', 'internal' => 'question', 'readonly' => true],
|
||||||
'qa_question_vote_created_by' => ['name' => 'qa_question_vote_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true],
|
'qa_question_vote_created_by' => ['name' => 'qa_question_vote_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true],
|
||||||
'qa_question_vote_created_for' => ['name' => 'qa_question_vote_created_for', 'type' => 'int', 'internal' => 'createdFor', 'readonly' => true],
|
'qa_question_vote_created_for' => ['name' => 'qa_question_vote_created_for', 'type' => 'int', 'internal' => 'createdFor', 'readonly' => true],
|
||||||
'qa_question_vote_created_at' => ['name' => 'qa_question_vote_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true],
|
'qa_question_vote_created_at' => ['name' => 'qa_question_vote_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true],
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ echo $this->getData('nav')->render();
|
||||||
<div class="score">
|
<div class="score">
|
||||||
<div class="counter-area">
|
<div class="counter-area">
|
||||||
<div class="counter-container">
|
<div class="counter-container">
|
||||||
<a id="qa-answer-upvote-<?= $answer->getId() ?>" data-action='[
|
<a id="qa-answer-upvote-<?= $answer->getId(); ?>" data-action='[
|
||||||
{
|
{
|
||||||
"key": 1, "listener": "click", "action": [
|
"key": 1, "listener": "click", "action": [
|
||||||
{"key": 1, "type": "event.prevent"},
|
{"key": 1, "type": "event.prevent"},
|
||||||
|
|
@ -113,7 +113,7 @@ echo $this->getData('nav')->render();
|
||||||
</a>
|
</a>
|
||||||
<span class="counter"><?= $answer->getVoteScore(); ?></span>
|
<span class="counter"><?= $answer->getVoteScore(); ?></span>
|
||||||
<span class="text">Score</span>
|
<span class="text">Score</span>
|
||||||
<a id="qa-answer-downvote-<?= $answer->getId() ?>" data-action='[
|
<a id="qa-answer-downvote-<?= $answer->getId(); ?>" data-action='[
|
||||||
{
|
{
|
||||||
"key": 1, "listener": "click", "action": [
|
"key": 1, "listener": "click", "action": [
|
||||||
{"key": 1, "type": "event.prevent"},
|
{"key": 1, "type": "event.prevent"},
|
||||||
|
|
@ -125,7 +125,7 @@ echo $this->getData('nav')->render();
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="counter-container">
|
<div class="counter-container">
|
||||||
<a id="qa-answer-accept-<?= $answer->getId() ?>" data-action='[
|
<a id="qa-answer-accept-<?= $answer->getId(); ?>" data-action='[
|
||||||
{
|
{
|
||||||
"key": 1, "listener": "click", "action": [
|
"key": 1, "listener": "click", "action": [
|
||||||
{"key": 1, "type": "event.prevent"},
|
{"key": 1, "type": "event.prevent"},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user