Code Duplication    Length = 20-22 lines in 2 locations

src/Comodojo/Dispatcher/Events/ServiceEvent.php 1 location

@@ 44-65 (lines=22) @@
41
42
    private $extra;
43
44
    public function __construct(
45
        $name,
46
        Logger $logger,
47
        Request $request,
48
        Router $router,
49
        Response $response,
50
        Extra $extra
51
    ) {
52
53
        parent::__construct($name);
54
55
        $this->logger = $logger;
56
57
        $this->request = $request;
58
59
        $this->router = $router;
60
61
        $this->response = $response;
62
63
        $this->extra = $extra;
64
65
    }
66
67
    final public function logger() {
68

src/Comodojo/Dispatcher/Service/AbstractService.php 1 location

@@ 44-63 (lines=20) @@
41
42
    protected $extra;
43
44
    public function __construct(
45
        Configuration $configuration,
46
        Logger $logger,
47
        Request $request,
48
        Router $router,
49
        Response $response,
50
        Extra $extra
51
    ) {
52
53
        parent::__construct($configuration, $logger);
54
55
        $this->request = $request;
56
57
        $this->router = $router;
58
59
        $this->response = $response;
60
61
        $this->extra = $extra;
62
63
    }
64
65
    final public function request() {
66