Code Duplication    Length = 16-17 lines in 2 locations

src/Comodojo/Dispatcher/Output/Processor.php 1 location

@@ 50-65 (lines=16) @@
47
48
    protected $mode = self::READONLY;
49
50
    public function __construct(
51
        Configuration $configuration,
52
        LoggerInterface $logger,
53
        Request $request,
54
        Response $response
55
    ) {
56
57
        parent::__construct($configuration, $logger);
58
59
        $this->setRaw('response', $response);
60
61
        $this->setRaw('request', $request);
62
63
        $this->setRaw('codes', new HttpStatusCodes());
64
65
    }
66
67
    public function send() {
68

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

@@ 38-54 (lines=17) @@
35
36
    protected $mode = self::READONLY;
37
38
    public function __construct(
39
        Configuration $configuration,
40
        LoggerInterface $logger,
41
        Request $request,
42
        Router $router,
43
        Response $response,
44
        Extra $extra
45
    ) {
46
47
        parent::__construct($configuration, $logger);
48
49
        $this->setRaw('request', $request);
50
        $this->setRaw('router', $router);
51
        $this->setRaw('response', $response);
52
        $this->setRaw('extra', $extra);
53
54
    }
55
56
    /**
57
     * Get service-implemented HTTP methods