| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 57 | 17 | public function updateAttribute() |
|
| 58 | { |
||
| 59 | 17 | foreach($this->attributes as $attribute) { |
|
| 60 | 17 | if (empty($this->owner->{$attribute}) === true) { |
|
| 61 | 14 | $this->owner->{$attribute} = []; |
|
| 62 | 17 | } elseif (is_array($this->owner->{$attribute}) === false) { |
|
| 63 | 3 | $this->owner->{$attribute} = explode($this->separator, $this->owner->{$attribute}); |
|
| 64 | 3 | } |
|
| 65 | 17 | } |
|
| 66 | 17 | } |
|
| 67 | |||
| 69 |