| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function render() |
||
| 33 | { |
||
| 34 | $exportModel = $this->getExportModel(); |
||
| 35 | |||
| 36 | $template = $this->getTemplate(); |
||
| 37 | $template->setFile($this->buildTemplatePath()); |
||
| 38 | $template->imgDir = IMG_DIR; |
||
|
|
|||
| 39 | $template->graph = $exportModel->graph(); |
||
| 40 | $template->graphMax = $exportModel->graphMax(); |
||
| 41 | $template->graphWidth = static::GRAPH_WIDTH; |
||
| 42 | $template->graphHeight = static::GRAPH_HEIGHT_INIT; |
||
| 43 | $template->graphHeightStep = static::GRAPH_HEIGHT_STEP; |
||
| 44 | $template->render(); |
||
| 45 | } |
||
| 46 | |||
| 67 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: