mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-10 05:54:41 +02:00
refactor (#3708)
This commit is contained in:
parent
e1b911fc1f
commit
cd30c25b08
14 changed files with 282 additions and 884 deletions
|
@ -33,7 +33,7 @@ class FormatFactory
|
|||
* @throws \InvalidArgumentException
|
||||
* @param string $name The name of the format e.g. "Atom", "Mrss" or "Json"
|
||||
*/
|
||||
public function create(string $name): FormatInterface
|
||||
public function create(string $name): FormatAbstract
|
||||
{
|
||||
if (! preg_match('/^[a-zA-Z0-9-]*$/', $name)) {
|
||||
throw new \InvalidArgumentException('Format name invalid!');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue