Code Duplication    Length = 8-8 lines in 2 locations

vendor/symfony/console/Input/ArgvInput.php 1 location

@@ 191-198 (lines=8) @@
188
     *
189
     * @throws RuntimeException When option given doesn't exist
190
     */
191
    private function addShortOption($shortcut, $value)
192
    {
193
        if (!$this->definition->hasShortcut($shortcut)) {
194
            throw new RuntimeException(sprintf('The "-%s" option does not exist.', $shortcut));
195
        }
196
197
        $this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value);
198
    }
199
200
    /**
201
     * Adds a long option value.

vendor/symfony/console/Input/ArrayInput.php 1 location

@@ 170-177 (lines=8) @@
167
     *
168
     * @throws InvalidOptionException When option given doesn't exist
169
     */
170
    private function addShortOption($shortcut, $value)
171
    {
172
        if (!$this->definition->hasShortcut($shortcut)) {
173
            throw new InvalidOptionException(sprintf('The "-%s" option does not exist.', $shortcut));
174
        }
175
176
        $this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value);
177
    }
178
179
    /**
180
     * Adds a long option value.