| @@ 251-260 (lines=10) @@ | ||
| 248 | /** |
|
| 249 | * @param array $buffer |
|
| 250 | */ |
|
| 251 | private function writeArray($buffer) |
|
| 252 | { |
|
| 253 | array_walk_recursive($buffer, function (&$input) { |
|
| 254 | if (is_string($input)) { |
|
| 255 | $input = $this->convertToUtf8($input); |
|
| 256 | } |
|
| 257 | }); |
|
| 258 | ||
| 259 | $this->writeToLog(json_encode($buffer, JSON_PRETTY_PRINT)); |
|
| 260 | } |
|
| 261 | ||
| 262 | private function writeToLog($buffer) |
|
| 263 | { |
|
| @@ 262-271 (lines=10) @@ | ||
| 259 | /** |
|
| 260 | * @param array $buffer |
|
| 261 | */ |
|
| 262 | private function writeArray($buffer) |
|
| 263 | { |
|
| 264 | array_walk_recursive($buffer, function (&$input) { |
|
| 265 | if (is_string($input)) { |
|
| 266 | $input = $this->convertToUtf8($input); |
|
| 267 | } |
|
| 268 | }); |
|
| 269 | ||
| 270 | $this->writeToLog(json_encode($buffer, JSON_PRETTY_PRINT)); |
|
| 271 | } |
|
| 272 | ||
| 273 | private function writeToLog($buffer) |
|
| 274 | { |
|