Code Duplication    Length = 7-7 lines in 2 locations

src/Parser/CommandInfo.php 2 locations

@@ 157-163 (lines=7) @@
154
        $this->exampleUsage = $info_array['example_usages'];
155
        $this->returnType = $info_array['return_type'];
156
157
        foreach ((array)$info_array['arguments'] as $key => $info) {
158
            $info = (array)$info;
159
            $this->arguments->add($key, $info['description']);
160
            if (array_key_exists('default', $info)) {
161
                $this->arguments->setDefaultValue($key, $info['default']);
162
            }
163
        }
164
        foreach ((array)$info_array['options'] as $key => $info) {
165
            $info = (array)$info;
166
            $this->options->add($key, $info['description']);
@@ 164-170 (lines=7) @@
161
                $this->arguments->setDefaultValue($key, $info['default']);
162
            }
163
        }
164
        foreach ((array)$info_array['options'] as $key => $info) {
165
            $info = (array)$info;
166
            $this->options->add($key, $info['description']);
167
            if (array_key_exists('default', $info)) {
168
                $this->options->setDefaultValue($key, $info['default']);
169
            }
170
        }
171
172
        $this->input_options = [];
173
        foreach ((array)$info_array['input_options'] as $i => $option) {