Code Duplication    Length = 5-5 lines in 2 locations

Command/GenerateFilesCommand.php 2 locations

@@ 34-38 (lines=5) @@
31
        $fp = fopen($scssDir . '/_fatcow16.scss', 'w+');
32
        $content = "";
33
        $icons16 = glob(__DIR__ .'/../Resources/public/images/icons16x16/*.{png,jpg,gif}', GLOB_BRACE);
34
        foreach($icons16 as $img)
35
        {
36
            $image = pathinfo($img);
37
            $content .= sprintf('.fci-%s {background-image:url(\'#{$icon16}/%s\');}'.PHP_EOL, $this->_slugify($image['filename']), basename($img));
38
        }
39
        fwrite($fp, $content);
40
        fclose($fp);
41
        $output->writeln(sprintf('Icons 16x16 - %d icons available', count($icons16)));
@@ 47-51 (lines=5) @@
44
        $fp = fopen($scssDir . '/_fatcow32.scss', 'w+');
45
        $content = "";
46
        $icons32 = glob(__DIR__ .'/../Resources/public/images/icons32x32/*.{png,jpg,gif}', GLOB_BRACE);
47
        foreach($icons32 as $img)
48
        {
49
            $image = pathinfo($img);
50
            $content .= sprintf('.fci32-%s {background-image:url(\'#{$icon32}/%s\');}'.PHP_EOL, $this->_slugify($image['filename']), basename($img));
51
        }
52
        fwrite($fp, $content);
53
        fclose($fp);
54
        $output->writeln(sprintf('Icons 32x32 - %d icons available', count($icons32)));