Code Duplication    Length = 7-7 lines in 2 locations

src/Parser/CommandInfo.php 2 locations

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