Conditions | 3 |
Paths | 4 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
53 | protected function collectData() |
||
54 | { |
||
55 | $data = [ |
||
56 | 'name' => $this->name, |
||
57 | 'url' => $this->url, |
||
58 | 'options' => $this->options, |
||
59 | ]; |
||
60 | if ($this->smallImage) { |
||
61 | $data['smallImage'] = $this->getImage($this->smallImage); |
||
62 | $data['smallImageOptions'] = $this->smallImageOptions; |
||
63 | } |
||
64 | if ($this->image) { |
||
65 | $data['image'] = $this->getImage($this->image); |
||
66 | $data['imageOptions'] = $this->imageOptions; |
||
67 | } |
||
68 | |||
69 | return $data; |
||
70 | } |
||
71 | |||
77 |