Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function handle(Kernel $kernel, Destination $destination) |
||
22 | { |
||
23 | $response = $kernel->handle( |
||
24 | Request::create($this->path) |
||
25 | ); |
||
26 | |||
27 | if ($response->status() !== 200) { |
||
|
|||
28 | throw new RuntimeException("Path [{$this->path}] returned status code [{$response->status()}]"); |
||
29 | } |
||
30 | |||
31 | $destination->write($this->path . '/index.html', $response->content()); |
||
32 | } |
||
33 | } |
||
34 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.