mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-02-07 03:48:40 +00:00
Remove space from end of line
This commit is contained in:
parent
9ee3ee5f08
commit
98d4cbc727
|
|
@ -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'));
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class QAAnswer implements \JsonSerializable
|
|||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
|
||||
public function setAccepted(bool $accepted) /* : void */
|
||||
{
|
||||
$this->isAccepted = $accepted;
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -29,6 +29,6 @@ abstract class QAQuestionStatus extends Enum
|
|||
/* public */ const ACTIVE = 1;
|
||||
|
||||
/* public */ const INACTIVE = 2;
|
||||
|
||||
|
||||
/* public */ const BLOCKED = 4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
$question = $this->getData('question');
|
||||
$answers = $question->getAnswers();
|
||||
|
||||
echo $this->getData('nav')->render();
|
||||
echo $this->getData('nav')->render();
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
|
|
|
|||
|
|
@ -21,6 +21,6 @@ echo $this->getData('nav')->render();
|
|||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user