Conditions | 4 |
Paths | 8 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
49 | public function toArray() |
||
50 | { |
||
51 | $data = $this->parseFile(); |
||
52 | |||
53 | if ($this->title) { |
||
54 | $data['title'] = $this->title; |
||
55 | } |
||
56 | |||
57 | if ($this->tags) { |
||
58 | $data['tags'] = $this->tags; |
||
59 | } |
||
60 | |||
61 | if ($this->caption) { |
||
62 | $data['caption'] = $this->caption; |
||
63 | } |
||
64 | |||
65 | return $data; |
||
66 | } |
||
67 | |||
91 | } |