diff --git a/Controller.php b/Controller.php index 843a40b..46471e3 100644 --- a/Controller.php +++ b/Controller.php @@ -224,7 +224,7 @@ class Controller extends ModuleAbstract implements WebInterface public function createQAQuestionFromRquest(RequestAbstract $request) : QAQuestion { $mardkownParser = new Markdown(); - + $question = new QAQuestion(); $question->setName((string) $request->getData('title')); $question->setQuestion((string) $request->getData('plain')); @@ -272,7 +272,7 @@ class Controller extends ModuleAbstract implements WebInterface public function createQAAnswerFromRquest(RequestAbstract $request) : QAAnswer { $mardkownParser = new Markdown(); - + $answer = new QAAnswer(); $answer->setName((string) $request->getData('title')); $answer->setQuestion((string) $request->getData('plain')); @@ -316,7 +316,7 @@ class Controller extends ModuleAbstract implements WebInterface public function createQACategoryFromRquest(RequestAbstract $request) : QACategory { $mardkownParser = new Markdown(); - + $category = new QACategory(); $category->setName((string) $request->getData('title')); $category->setParent((int) $request->getData('parent')); @@ -353,7 +353,7 @@ class Controller extends ModuleAbstract implements WebInterface public function createQABadgeFromRquest(RequestAbstract $request) : QABadge { $mardkownParser = new Markdown(); - + $badge = new QABadge(); $badge->setName((string) $request->getData('title')); diff --git a/Models/QAAnswer.php b/Models/QAAnswer.php index 372ad0d..b390b81 100644 --- a/Models/QAAnswer.php +++ b/Models/QAAnswer.php @@ -77,7 +77,7 @@ class QAAnswer implements \JsonSerializable { $this->status = $status; } - + public function setAccepted(bool $accepted) /* : void */ { $this->isAccepted = $accepted; diff --git a/Models/QAQuestion.php b/Models/QAQuestion.php index bc4beae..636b948 100644 --- a/Models/QAQuestion.php +++ b/Models/QAQuestion.php @@ -54,7 +54,7 @@ class QAQuestion implements \JsonSerializable return $this->id; } - public function hasAccepted() : bool + public function hasAccepted() : bool { foreach ($this->answers as $answer) { if ($answer->isAccepted()) { diff --git a/Models/QAQuestionStatus.php b/Models/QAQuestionStatus.php index cb899ea..b561240 100644 --- a/Models/QAQuestionStatus.php +++ b/Models/QAQuestionStatus.php @@ -29,6 +29,6 @@ abstract class QAQuestionStatus extends Enum /* public */ const ACTIVE = 1; /* public */ const INACTIVE = 2; - + /* public */ const BLOCKED = 4; } diff --git a/Theme/Backend/qa-question.tpl.php b/Theme/Backend/qa-question.tpl.php index e5fdff1..2f44ecd 100644 --- a/Theme/Backend/qa-question.tpl.php +++ b/Theme/Backend/qa-question.tpl.php @@ -2,7 +2,7 @@ $question = $this->getData('question'); $answers = $question->getAnswers(); -echo $this->getData('nav')->render(); +echo $this->getData('nav')->render(); ?>