mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-04 03:08:41 +00:00
Remove space from end of line
This commit is contained in:
parent
829abfd411
commit
a6dbcaa7ab
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user