dotkernel / api

DotKernel's PSR-7 REST style API built around the Mezzio API skeleton.
https://docs.dotkernel.org/api-documentation/
MIT License
38 stars 5 forks source link

[Insight] Your project should not contain duplicated code - in src/…/CreateAdminInputFilter.php, line 101 #99

Closed arhimede closed 3 years ago

arhimede commented 3 years ago

in src/Admin/src/Form/InputFilter/CreateAdminInputFilter.php, line 101

The next 31 lines appear both in src/Admin/src/Form/InputFilter/CreateAdminInputFilter.php:101 and src/Admin/src/Form/InputFilter/UpdateAdminInputFilter.php:102.

                    ]
                ]
            ])->add([
                'name' => 'passwordConfirm',
                'required' => true,
                'filters' => [
                    ['name' => StringTrim::class],
                    ['name' => StripTags::class]
                ],
                'validators' => [
                    [

Posted from SymfonyInsight