Code Duplication    Length = 7-7 lines in 2 locations

src/Parser/CommandInfo.php 2 locations

@@ 167-173 (lines=7) @@
164
        $this->exampleUsage = $info_array['example_usages'];
165
        $this->returnType = $info_array['return_type'];
166
167
        foreach ((array)$info_array['arguments'] as $key => $info) {
168
            $info = (array)$info;
169
            $this->arguments->add($key, $info['description']);
170
            if (array_key_exists('default', $info)) {
171
                $this->arguments->setDefaultValue($key, $info['default']);
172
            }
173
        }
174
        foreach ((array)$info_array['options'] as $key => $info) {
175
            $info = (array)$info;
176
            $this->options->add($key, $info['description']);
@@ 174-180 (lines=7) @@
171
                $this->arguments->setDefaultValue($key, $info['default']);
172
            }
173
        }
174
        foreach ((array)$info_array['options'] as $key => $info) {
175
            $info = (array)$info;
176
            $this->options->add($key, $info['description']);
177
            if (array_key_exists('default', $info)) {
178
                $this->options->setDefaultValue($key, $info['default']);
179
            }
180
        }
181
182
        $this->input_options = [];
183
        foreach ((array)$info_array['input_options'] as $i => $option) {