From 60a81b69081edf1c6779123d42f29c96bf91486f Mon Sep 17 00:00:00 2001 From: Formatter Bot Date: Sat, 20 Feb 2021 10:03:31 +0000 Subject: [PATCH] Automated formatting changes --- Controller/ApiController.php | 12 ++++++------ Models/QAAnswerMapper.php | 14 +++++++------- Models/QAQuestionMapper.php | 16 ++++++++-------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 9fa1e66..649d9cb 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -89,10 +89,10 @@ final class ApiController extends Controller { $mardkownParser = new Markdown(); - $question = new QAQuestion(); - $question->name = (string) $request->getData('title'); + $question = new QAQuestion(); + $question->name = (string) $request->getData('title'); $question->questionRaw = (string) $request->getData('plain'); - $question->question = Markdown::parse((string) ($request->getData('plain') ?? '')); + $question->question = Markdown::parse((string) ($request->getData('plain') ?? '')); $question->setLanguage((string) $request->getData('language')); $question->setCategory(new NullQACategory((int) $request->getData('category'))); $question->setStatus((int) $request->getData('status')); @@ -185,10 +185,10 @@ final class ApiController extends Controller { $mardkownParser = new Markdown(); - $answer = new QAAnswer(); + $answer = new QAAnswer(); $answer->answerRaw = (string) $request->getData('plain'); - $answer->answer = Markdown::parse((string) ($request->getData('plain') ?? '')); - $answer->question = new NullQAQuestion((int) $request->getData('question')); + $answer->answer = Markdown::parse((string) ($request->getData('plain') ?? '')); + $answer->question = new NullQAQuestion((int) $request->getData('question')); $answer->setStatus((int) $request->getData('status')); $answer->createdBy = new NullAccount($request->header->account); diff --git a/Models/QAAnswerMapper.php b/Models/QAAnswerMapper.php index 11223e0..7268807 100755 --- a/Models/QAAnswerMapper.php +++ b/Models/QAAnswerMapper.php @@ -34,14 +34,14 @@ final class QAAnswerMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'qa_answer_id' => ['name' => 'qa_answer_id', 'type' => 'int', 'internal' => 'id'], + 'qa_answer_id' => ['name' => 'qa_answer_id', 'type' => 'int', 'internal' => 'id'], 'qa_answer_answer_raw' => ['name' => 'qa_answer_answer_raw', 'type' => 'string', 'internal' => 'answerRaw'], - 'qa_answer_answer' => ['name' => 'qa_answer_answer', 'type' => 'string', 'internal' => 'answer'], - 'qa_answer_question' => ['name' => 'qa_answer_question', 'type' => 'int', 'internal' => 'question'], - 'qa_answer_status' => ['name' => 'qa_answer_status', 'type' => 'int', 'internal' => 'status'], - 'qa_answer_accepted' => ['name' => 'qa_answer_accepted', 'type' => 'bool', 'internal' => 'isAccepted'], - 'qa_answer_created_by' => ['name' => 'qa_answer_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true], - 'qa_answer_created_at' => ['name' => 'qa_answer_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true], + 'qa_answer_answer' => ['name' => 'qa_answer_answer', 'type' => 'string', 'internal' => 'answer'], + 'qa_answer_question' => ['name' => 'qa_answer_question', 'type' => 'int', 'internal' => 'question'], + 'qa_answer_status' => ['name' => 'qa_answer_status', 'type' => 'int', 'internal' => 'status'], + 'qa_answer_accepted' => ['name' => 'qa_answer_accepted', 'type' => 'bool', 'internal' => 'isAccepted'], + 'qa_answer_created_by' => ['name' => 'qa_answer_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true], + 'qa_answer_created_at' => ['name' => 'qa_answer_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true], ]; /** diff --git a/Models/QAQuestionMapper.php b/Models/QAQuestionMapper.php index 84a2381..e7bf321 100755 --- a/Models/QAQuestionMapper.php +++ b/Models/QAQuestionMapper.php @@ -35,15 +35,15 @@ final class QAQuestionMapper extends DataMapperAbstract * @since 1.0.0 */ protected static array $columns = [ - 'qa_question_id' => ['name' => 'qa_question_id', 'type' => 'int', 'internal' => 'id'], - 'qa_question_title' => ['name' => 'qa_question_title', 'type' => 'string', 'internal' => 'name'], - 'qa_question_language' => ['name' => 'qa_question_language', 'type' => 'string', 'internal' => 'language'], - 'qa_question_question' => ['name' => 'qa_question_question', 'type' => 'string', 'internal' => 'question'], + 'qa_question_id' => ['name' => 'qa_question_id', 'type' => 'int', 'internal' => 'id'], + 'qa_question_title' => ['name' => 'qa_question_title', 'type' => 'string', 'internal' => 'name'], + 'qa_question_language' => ['name' => 'qa_question_language', 'type' => 'string', 'internal' => 'language'], + 'qa_question_question' => ['name' => 'qa_question_question', 'type' => 'string', 'internal' => 'question'], 'qa_question_question_raw' => ['name' => 'qa_question_question_raw', 'type' => 'string', 'internal' => 'questionRaw'], - 'qa_question_status' => ['name' => 'qa_question_status', 'type' => 'int', 'internal' => 'status'], - 'qa_question_category' => ['name' => 'qa_question_category', 'type' => 'int', 'internal' => 'category'], - 'qa_question_created_by' => ['name' => 'qa_question_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true], - 'qa_question_created_at' => ['name' => 'qa_question_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true], + 'qa_question_status' => ['name' => 'qa_question_status', 'type' => 'int', 'internal' => 'status'], + 'qa_question_category' => ['name' => 'qa_question_category', 'type' => 'int', 'internal' => 'category'], + 'qa_question_created_by' => ['name' => 'qa_question_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true], + 'qa_question_created_at' => ['name' => 'qa_question_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true], ]; /**