Code Duplication    Length = 3-3 lines in 2 locations

src/Translation/Writer.php 2 locations

@@ 90-92 (lines=3) @@
87
88
        $content = sprintf('<?php%s%sreturn %s;%s', PHP_EOL, PHP_EOL, Util::varExport($items), PHP_EOL);
89
90
        if (!$this->files->isDirectory($dir = dirname($file))) {
91
            $this->files->makeDirectory($dir, 0755, true);
92
        }
93
94
        $this->files->put($file, $content);
95
    }
@@ 101-103 (lines=3) @@
98
    {
99
        $this->output->writeln('    <comment>json</comment> ' . $file);
100
101
        if (!$this->files->isDirectory($dir = dirname($file))) {
102
            $this->files->makeDirectory($dir, 0755, true);
103
        }
104
        $this->files->put($file, json_encode($items, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . PHP_EOL);
105
    }
106