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 25 #98

Closed arhimede closed 3 years ago

arhimede commented 3 years ago

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

The next 83 lines appear both in src/Admin/src/Form/InputFilter/CreateAdminInputFilter.php:25 and src/User/src/Form/InputFilter/CreateUserInputFilter.php:25.


/**
 * Class CreateAdminInputFilter
 * @package Api\Admin\Form\InputFilter
 */
class CreateAdminInputFilter implements InputFilterAwareInterface
{
    use InputFilterAwareTrait;

    public const PASSWORD_MIN_LENGTH = 6;

Posted from SymfonyInsight