| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function parseAttributes($attributes) |
||
| 44 | { |
||
| 45 | $result = []; |
||
| 46 | if (is_array($attributes)) { |
||
| 47 | foreach ($attributes as $key => $field) { |
||
| 48 | $result[] = $this->model->getAttribute($field); |
||
| 49 | } |
||
| 50 | } else { |
||
| 51 | return $this->model->getAttribute($attributes); |
||
| 52 | } |
||
| 53 | |||
| 54 | return $result; |
||
| 55 | } |
||
| 56 | |||
| 69 |