mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-08 16:08:54 +00:00
[M3uFormat] small refactoring
This commit is contained in:
parent
624fc8d551
commit
f0fc9a7ae2
@ -54,9 +54,14 @@ class M3uItem
|
|||||||
public $url = null;
|
public $url = null;
|
||||||
public $bytes = null;
|
public $bytes = null;
|
||||||
|
|
||||||
|
public function isEmpty(): bool
|
||||||
|
{
|
||||||
|
return $this->url === null;
|
||||||
|
}
|
||||||
|
|
||||||
public function render(): string
|
public function render(): string
|
||||||
{
|
{
|
||||||
if ($this->url === null) {
|
if ($this->isEmpty()) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
$text = "\n";
|
$text = "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user