mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 07:37:27 +02:00
[core] Apply some fixes
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user