Code Duplication    Length = 3-3 lines in 2 locations

src/Translation/Writer.php 2 locations

@@ 67-69 (lines=3) @@
64
65
        $content = sprintf('<?php%s%sreturn %s;%s', PHP_EOL, PHP_EOL, Util::varExport($items), PHP_EOL);
66
67
        if (! $this->files->isDirectory($dir = dirname($file))) {
68
            $this->files->makeDirectory($dir, 0755, true);
69
        }
70
71
        $this->files->put($file, $content);
72
    }
@@ 78-80 (lines=3) @@
75
    {
76
        $this->output->writeln('  JSON: '.$file);
77
78
        if (! $this->files->isDirectory($dir = dirname($file))) {
79
            $this->files->makeDirectory($dir, 0755, true);
80
        }
81
82
        $this->files->put($file, json_encode($items, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES).PHP_EOL);
83
    }