Code Duplication    Length = 10-10 lines in 2 locations

src/Paraunit/Parser/JSON/LogPrinter.php 1 location

@@ 258-267 (lines=10) @@
255
        /**
256
         * @param array $buffer
257
         */
258
        private function writeArray($buffer)
259
        {
260
            array_walk_recursive($buffer, function (&$input) {
261
                if (is_string($input)) {
262
                    $input = $this->convertToUtf8($input);
263
                }
264
            });
265
    
266
            $this->writeToLog(json_encode($buffer, JSON_PRETTY_PRINT));
267
        }
268
    
269
        private function writeToLog($buffer)
270
        {

src/Paraunit/Parser/JSON/LogPrinterV6.php 1 location

@@ 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
    {