@@ 68-77 (lines=10) @@ | ||
65 | return $configFile; |
|
66 | } |
|
67 | ||
68 | private function objectsToArrays($data) |
|
69 | { |
|
70 | $data = (array) $data; |
|
71 | ||
72 | foreach ($data as $key => $value) { |
|
73 | $data[$key] = is_object($value) ? $this->objectsToArrays($value) : $value; |
|
74 | } |
|
75 | ||
76 | return $data; |
|
77 | } |
|
78 | ||
79 | private function arraysToObjects(array $data) |
|
80 | { |
@@ 187-196 (lines=10) @@ | ||
184 | } |
|
185 | } |
|
186 | ||
187 | private function objectsToArrays($data) |
|
188 | { |
|
189 | $data = (array) $data; |
|
190 | ||
191 | foreach ($data as $key => $value) { |
|
192 | $data[$key] = is_object($value) ? $this->objectsToArrays($value) : $value; |
|
193 | } |
|
194 | ||
195 | return $data; |
|
196 | } |
|
197 | } |
|
198 |