Code Duplication    Length = 10-12 lines in 2 locations

src/Service/Creator.php 1 location

@@ 37-48 (lines=12) @@
34
     */
35
    protected $eventManager;
36
37
    public function __construct(
38
        ValidatorInterface $validator,
39
        RepositoryInterface $repository,
40
        EntityFactoryInterface $entityFactory,
41
        EventManagerInterface $eventManager = null
42
    ) {
43
44
        $this->validator = $validator;
45
        $this->repository = $repository;
46
        $this->entityFactory = $entityFactory;
47
        $this->eventManager = $eventManager;
48
    }
49
50
    public function create(array $data)
51
    {

src/Service/Updater.php 1 location

@@ 35-44 (lines=10) @@
32
     * @param ValidatorInterface $validator
33
     * @param RepositoryInterface $repository
34
     */
35
    public function __construct(
36
        ValidatorInterface $validator,
37
        RepositoryInterface $repository,
38
        EventManagerInterface $eventManager = null
39
    )
40
    {
41
        $this->validator = $validator;
42
        $this->repository = $repository;
43
        $this->eventManager = $eventManager;
44
    }
45
46
    /**
47
     * @param mixed $id