diff --git a/src/Controller/Server/Nex.php b/src/Controller/Server/Nex.php index 176af38..8a14f3c 100644 --- a/src/Controller/Server/Nex.php +++ b/src/Controller/Server/Nex.php @@ -90,7 +90,7 @@ class Nex implements MessageComponentInterface { $lines[] = sprintf( '# %s', - \Yggverse\Pulsar\Model\Filter::title( + \Yggverse\Pulsar\Model\Filter::string( $channelItem->title ) ); @@ -106,14 +106,14 @@ class Nex implements MessageComponentInterface if ($channelItem->description) { - $lines[] = \Yggverse\Pulsar\Model\Filter::description( + $lines[] = \Yggverse\Pulsar\Model\Filter::text( $channelItem->description ) . PHP_EOL; } if ($channelItem->content) { - $lines[] = \Yggverse\Pulsar\Model\Filter::description( + $lines[] = \Yggverse\Pulsar\Model\Filter::text( $channelItem->content ) . PHP_EOL; } @@ -147,7 +147,7 @@ class Nex implements MessageComponentInterface { $lines[] = sprintf( '# %s', - \Yggverse\Pulsar\Model\Filter::title( + \Yggverse\Pulsar\Model\Filter::string( $channel->title ) ); @@ -170,7 +170,7 @@ class Nex implements MessageComponentInterface 'Y-m-d', $channelItem->pubTime ) : '', - \Yggverse\Pulsar\Model\Filter::title( + \Yggverse\Pulsar\Model\Filter::string( $channelItem->title ) ); diff --git a/src/Model/Filter.php b/src/Model/Filter.php index eed89fe..d015abc 100644 --- a/src/Model/Filter.php +++ b/src/Model/Filter.php @@ -17,7 +17,7 @@ class Filter ); } - public static function title( + public static function string( string $value ): string { @@ -35,15 +35,6 @@ class Filter ); } - public static function description( - string $value - ): string - { - return self::text( - $value - ); - } - public static function text( string $value ): string