mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-24 20:55:11 +02:00
[core] Apply some fixes
This commit is contained in:
parent
62eec43980
commit
ab16af631e
10 changed files with 153 additions and 136 deletions
|
@ -10,8 +10,8 @@ class Format {
|
|||
|
||||
static public function create($nameFormat){
|
||||
if(!preg_match('@^[A-Z][a-zA-Z]*$@', $nameFormat)){
|
||||
throw new \InvalidArgumentException('Name format must be at least '
|
||||
. 'one uppercase follow or not by alphabetic characters.');
|
||||
throw new \InvalidArgumentException('Name format must be at least
|
||||
one uppercase follow or not by alphabetic characters.');
|
||||
}
|
||||
|
||||
$nameFormat = $nameFormat . 'Format';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue