| @@ 105-109 (lines=5) @@ | ||
| 102 | } |
|
| 103 | } else { |
|
| 104 | if (is_object($value)) { |
|
| 105 | if (is_array($fields[$key])) { |
|
| 106 | $return[$key][] = $value->getAttributes(); |
|
| 107 | } else { |
|
| 108 | $return[$key] = $value->getAttributes(); |
|
| 109 | } |
|
| 110 | } else { |
|
| 111 | if (is_array($fields[$key])) { |
|
| 112 | $return[$key][] = $value; |
|
| @@ 110-116 (lines=7) @@ | ||
| 107 | } else { |
|
| 108 | $return[$key] = $value->getAttributes(); |
|
| 109 | } |
|
| 110 | } else { |
|
| 111 | if (is_array($fields[$key])) { |
|
| 112 | $return[$key][] = $value; |
|
| 113 | } else { |
|
| 114 | $return[$key] = $value; |
|
| 115 | } |
|
| 116 | } |
|
| 117 | } |
|
| 118 | } |
|
| 119 | } |
|