Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3.009 |
Changes | 9 | ||
Bugs | 1 | Features | 5 |
1 | <?php |
||
56 | 15 | public function render($type = null) |
|
57 | 3 | { |
|
58 | 15 | $templates = new Engine($this->viewPath); |
|
59 | |||
60 | 15 | if ($type === null) { |
|
61 | 9 | if ($this->media === false) { |
|
62 | 9 | $type = 'media'; |
|
63 | 9 | } else { |
|
64 | $type = 'thumbnail'; |
||
65 | } |
||
66 | |||
67 | 9 | } |
|
68 | |||
69 | 15 | return $templates->render($type, $this->toArray()); |
|
70 | } |
||
71 | |||
104 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..