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