| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function handle(Kernel $kernel, Destination $destination, UrlGenerator $urlGenerator) |
||
| 25 | { |
||
| 26 | $response = $kernel->handle( |
||
| 27 | Request::create($urlGenerator->to($this->path)) |
||
| 28 | ); |
||
| 29 | |||
| 30 | if ($response->status() !== 200) { |
||
|
|
|||
| 31 | throw new RuntimeException("Path [{$this->path}] returned status code [{$response->status()}]"); |
||
| 32 | } |
||
| 33 | |||
| 34 | $destination->write($this->normalizePath($this->path), $response->content()); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
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.