BaseType::isCorrectType() method > make static

This commit is contained in:
Meritoo
2019-05-05 23:05:42 +02:00
parent dd5ac0f7e6
commit a6b2704c66
10 changed files with 86 additions and 79 deletions

View File

@@ -94,7 +94,7 @@ class TestService
*/
public function getTranslatedType($type)
{
if ((new TestType())->isCorrectType($type)) {
if (TestType::isCorrectType($type)) {
return ucfirst(str_replace('_', ' ', $type));
}