| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function toArray(): array |
||
| 28 | { |
||
| 29 | return [ |
||
|
|
|||
| 30 | 'page_type' => $this->stylePageType($this->route->getPageClass()), |
||
| 31 | 'source_file' => $this->styleSourcePath($this->route->getSourcePath()), |
||
| 32 | 'output_file' => $this->styleOutputPath($this->route->getOutputPath()), |
||
| 33 | 'route_key' => $this->styleRouteKey($this->route->getRouteKey()), |
||
| 34 | ]; |
||
| 62 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: