Remove space from end of line

This commit is contained in:
Dennis Eichhorn 2018-02-03 11:52:30 +01:00
parent 829abfd411
commit a6dbcaa7ab
2 changed files with 4 additions and 4 deletions

View File

@ -376,7 +376,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
$this->featured = $featured;
}
public function toArray() : array
public function toArray() : array
{
return [
'id' => $this->id,
@ -392,12 +392,12 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
];
}
public function __toString()
public function __toString()
{
return json_encode($this->toArray());
}
public function jsonSerialize()
public function jsonSerialize()
{
return $this->toArray();
}

View File

@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
$color = 'darkred';
if ($news->getType() === \Modules\News\Models\NewsType::ARTICLE) { $color = 'green'; }
elseif ($news->getType() === \Modules\News\Models\NewsType::HEADLINE) { $color = 'purple'; }
elseif ($news->getType() === \Modules\News\Models\NewsType::LINK) { $color = 'yellow'; }
elseif ($news->getType() === \Modules\News\Models\NewsType::LINK) { $color = 'yellow'; }
?>
<tr>
<td><span class="tag <?= $this->printHtml($color); ?>"><?= $this->getHtml('TYPE' . $news->getType()) ?></span></a>