Code Duplication    Length = 10-11 lines in 2 locations

src/Application.php 2 locations

@@ 98-108 (lines=11) @@
95
        }
96
    }
97
98
    private function notFound($status, $message) : void
99
    {
100
        $errorHandlerClass = $this->container->get('http-error-handler');
101
        $errorHandler = new $errorHandlerClass($status, $message);
102
        $this->response = new ApplicationResponse(
103
            $errorHandlerClass,
104
            $errorHandler(),
105
            $this->config,
106
            $this->container->get(ViewInterface::class)
107
        );
108
    }
109
110
    private function getRoute() : Route
111
    {
@@ 131-140 (lines=10) @@
128
        }
129
    }
130
131
    private function runRoute($controllerClass, int $returnType, array $args) : void
132
    {
133
        $controller = new ApplicationController($this->container, $controllerClass, $returnType, $args);
134
        $this->response = new ApplicationResponse(
135
            $controllerClass,
136
            $controller->getControllerResponse(),
137
            $this->config,
138
            $this->container->get(ViewInterface::class)
139
        );
140
    }
141
}
142