Code Duplication    Length = 7-7 lines in 4 locations

src/Commands/CreateModuleCommand.php 2 locations

@@ 128-134 (lines=7) @@
125
            return "{$folder}{$this->separator}{$endPoint}";
126
        };
127
128
        if ($withTravis = $input->getOption(self::OPTIONS_TRAVIS_CI)) {
129
            $file = '.travis.yml';
130
            $this->getFilesystem()->copy(
131
                $uri($source, $file),
132
                $uri($target, $file)
133
            );
134
        }
135
136
        if ($withCircleCI = $input->getOption(self::OPTIONS_CIRCLE_CI)) {
137
            $folder = '.circleci';
@@ 136-142 (lines=7) @@
133
            );
134
        }
135
136
        if ($withCircleCI = $input->getOption(self::OPTIONS_CIRCLE_CI)) {
137
            $folder = '.circleci';
138
            $this->getFilesystem()->mirror(
139
                $uri($source, $folder),
140
                $uri($target, $folder)
141
            );
142
        }
143
    }
144
145
    /**

src/Commands/CreateDataObjectCommand.php 2 locations

@@ 146-152 (lines=7) @@
143
            $this->frameworkVersion = 'ss3';
144
        }
145
146
        if ($withTravis = $input->getOption(self::OPTIONS_HAS_MANY)) {
147
            $file = '.travis.yml';
148
            $this->getFilesystem()->copy(
149
                $uri($source, $file),
150
                $uri($target, $file)
151
            );
152
        }
153
154
        if ($withCircleCI = $input->getOption(self::OPTIONS_MANY_MANY)) {
155
            $folder = '.circleci';
@@ 154-160 (lines=7) @@
151
            );
152
        }
153
154
        if ($withCircleCI = $input->getOption(self::OPTIONS_MANY_MANY)) {
155
            $folder = '.circleci';
156
            $this->getFilesystem()->mirror(
157
                $uri($source, $folder),
158
                $uri($target, $folder)
159
            );
160
        }
161
    }
162
163
    /**