Remove space from end of line

This commit is contained in:
Dennis Eichhorn 2018-02-03 11:52:30 +01:00
parent 9ee3ee5f08
commit 98d4cbc727
6 changed files with 9 additions and 9 deletions

View File

@ -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'));

View File

@ -77,7 +77,7 @@ class QAAnswer implements \JsonSerializable
{
$this->status = $status;
}
public function setAccepted(bool $accepted) /* : void */
{
$this->isAccepted = $accepted;

View File

@ -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()) {

View File

@ -29,6 +29,6 @@ abstract class QAQuestionStatus extends Enum
/* public */ const ACTIVE = 1;
/* public */ const INACTIVE = 2;
/* public */ const BLOCKED = 4;
}

View File

@ -2,7 +2,7 @@
$question = $this->getData('question');
$answers = $question->getAnswers();
echo $this->getData('nav')->render();
echo $this->getData('nav')->render();
?>
<div class="row">

View File

@ -21,6 +21,6 @@ echo $this->getData('nav')->render();
<div class="row">
<div class="col-xs-12">
</div>
</div>