mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-28 07:19:26 +02:00
remove unneeded elses
This commit is contained in:
@@ -16,7 +16,8 @@ final class StaticFactory
|
||||
{
|
||||
if ($type == 'number') {
|
||||
return new FormatNumber();
|
||||
} elseif ($type == 'string') {
|
||||
}
|
||||
if ($type == 'string') {
|
||||
return new FormatString();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user