mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-16 00:18: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;
|
$this->featured = $featured;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toArray() : array
|
public function toArray() : array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
|
|
@ -392,12 +392,12 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return json_encode($this->toArray());
|
return json_encode($this->toArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function jsonSerialize()
|
public function jsonSerialize()
|
||||||
{
|
{
|
||||||
return $this->toArray();
|
return $this->toArray();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
$color = 'darkred';
|
$color = 'darkred';
|
||||||
if ($news->getType() === \Modules\News\Models\NewsType::ARTICLE) { $color = 'green'; }
|
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::HEADLINE) { $color = 'purple'; }
|
||||||
elseif ($news->getType() === \Modules\News\Models\NewsType::LINK) { $color = 'yellow'; }
|
elseif ($news->getType() === \Modules\News\Models\NewsType::LINK) { $color = 'yellow'; }
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span class="tag <?= $this->printHtml($color); ?>"><?= $this->getHtml('TYPE' . $news->getType()) ?></span></a>
|
<td><span class="tag <?= $this->printHtml($color); ?>"><?= $this->getHtml('TYPE' . $news->getType()) ?></span></a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user