Code Duplication    Length = 11-11 lines in 2 locations

src/Controller/CountController.php 1 location

@@ 34-44 (lines=11) @@
31
     * @param CriteriaConfiguratorInterface $configurator
32
     * @param EventDispatcherInterface      $evm
33
     */
34
    public function __construct(
35
        $fqcn,
36
        Selectable $repository,
37
        CriteriaConfiguratorInterface $configurator,
38
        EventDispatcherInterface $evm
39
    ) {
40
        $this->fqcn         = $fqcn;
41
        $this->configurator = $configurator;
42
        $this->repository   = $repository;
43
        $this->evm          = $evm;
44
    }
45
46
    /**
47
     * Performs counting search of entities and returns count

src/Controller/SearchController.php 1 location

@@ 35-45 (lines=11) @@
32
     * @param CriteriaConfiguratorInterface $configurator
33
     * @param EventDispatcherInterface      $evm
34
     */
35
    public function __construct(
36
        $fqcn,
37
        Selectable $repository,
38
        CriteriaConfiguratorInterface $configurator,
39
        EventDispatcherInterface $evm
40
    ) {
41
        $this->fqcn         = $fqcn;
42
        $this->configurator = $configurator;
43
        $this->repository   = $repository;
44
        $this->evm          = $evm;
45
    }
46
47
    /**
48
     * Performs search of entities and returns them