Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | private function constructImage(): Image|null |
||
25 | { |
||
26 | if ($this->page->matter('image') !== null) { |
||
27 | if (is_string($this->page->matter('image'))) { |
||
28 | return $this->constructBaseImage($this->page->matter('image')); |
||
29 | } |
||
30 | if (is_array($this->page->matter('image'))) { |
||
31 | return new Image($this->page->matter('image')); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | return null; |
||
36 | } |
||
45 |