Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function toArray() |
||
30 | { |
||
31 | $result = []; |
||
32 | |||
33 | $result['og:image'] = $this->getUrl(); |
||
34 | $result['og:image:type'] = $this->getType(); |
||
35 | $result['og:image:secure_url'] = $this->getSecureUrl(); |
||
36 | $result['og:image:width'] = $this->getWidth(); |
||
37 | $result['og:image:height'] = $this->getHeight(); |
||
38 | |||
39 | return array_filter($result); |
||
40 | } |
||
41 | } |
||
42 |