Code Duplication    Length = 7-7 lines in 6 locations

src/Eccube/Command/PluginCommand/EntityFromDbGenerator.php 2 locations

@@ 106-112 (lines=7) @@
103
        }
104
        $dirFileNg = array();
105
        $dirFileOk = array();
106
        foreach ($fsList['dir'] as $path => $flag) {
107
            if ($flag) {
108
                $dirFileOk[] = $path;
109
            } else {
110
                $dirFileNg[] = $path;
111
            }
112
        }
113
        foreach ($fsList['file'] as $path => $flag) {
114
            if ($flag) {
115
                $dirFileOk[] = $path;
@@ 113-119 (lines=7) @@
110
                $dirFileNg[] = $path;
111
            }
112
        }
113
        foreach ($fsList['file'] as $path => $flag) {
114
            if ($flag) {
115
                $dirFileOk[] = $path;
116
            } else {
117
                $dirFileNg[] = $path;
118
            }
119
        }
120
        $this->output->writeln('');
121
        $this->output->writeln('[+]file system');
122
        if (!empty($dirFileOk)) {

src/Eccube/Command/PluginCommand/EntityFromYamlGenerator.php 2 locations

@@ 133-139 (lines=7) @@
130
131
        $dirFileNg = array();
132
        $dirFileOk = array();
133
        foreach ($fsList['dir'] as $path => $flag) {
134
            if ($flag) {
135
                $dirFileOk[] = $path;
136
            } else {
137
                $dirFileNg[] = $path;
138
            }
139
        }
140
        foreach ($fsList['file'] as $path => $flag) {
141
            if ($flag) {
142
                $dirFileOk[] = $path;
@@ 140-146 (lines=7) @@
137
                $dirFileNg[] = $path;
138
            }
139
        }
140
        foreach ($fsList['file'] as $path => $flag) {
141
            if ($flag) {
142
                $dirFileOk[] = $path;
143
            } else {
144
                $dirFileNg[] = $path;
145
            }
146
        }
147
        $this->output->writeln('');
148
        $this->output->writeln('[+]file system');
149
        if (!empty($dirFileOk)) {

src/Eccube/Command/PluginCommand/PluginGenerator.php 2 locations

@@ 476-482 (lines=7) @@
473
474
        $dirFileNg = array();
475
        $dirFileOk = array();
476
        foreach ($fsList['dir'] as $path => $flag) {
477
            if ($flag) {
478
                $dirFileOk[] = $path;
479
            } else {
480
                $dirFileNg[] = $path;
481
            }
482
        }
483
        foreach ($fsList['file'] as $path => $flag) {
484
            if ($flag) {
485
                $dirFileOk[] = $path;
@@ 483-489 (lines=7) @@
480
                $dirFileNg[] = $path;
481
            }
482
        }
483
        foreach ($fsList['file'] as $path => $flag) {
484
            if ($flag) {
485
                $dirFileOk[] = $path;
486
            } else {
487
                $dirFileNg[] = $path;
488
            }
489
        }
490
        $this->output->writeln('');
491
        $this->output->writeln('[+]File system');
492
        if (!empty($dirFileOk)) {