| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function autoEncodeAttributes() |
||
| 35 | { |
||
| 36 | foreach ($this->attributes as $name) { |
||
| 37 | if (!isset($this->owner->getDirtyAttributes()[$name])) { |
||
| 38 | continue; |
||
| 39 | } |
||
| 40 | |||
| 41 | $value = $this->owner->{$name}; |
||
| 42 | |||
| 43 | if (is_array($value)) { |
||
| 44 | $this->owner->{$name} = $this->jsonEncode($name); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 70 | } |