Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function getConfig() |
||
22 | { |
||
23 | $config = []; |
||
24 | if (empty($this->width)) { |
||
25 | $config['width'] = $this->height; |
||
26 | $config['height'] = $this->height; |
||
27 | } elseif (empty($this->height)) { |
||
28 | $config['width'] = $this->width; |
||
29 | $config['height'] = $this->width; |
||
30 | } else { |
||
31 | $config['width'] = $this->width; |
||
32 | $config['height'] = $this->height; |
||
33 | } |
||
34 | return $config; |
||
35 | } |
||
37 |