Code Duplication    Length = 9-10 lines in 2 locations

vendor/cakephp/cakephp/src/Console/ConsoleOptionParser.php 1 location

@@ 652-660 (lines=9) @@
649
     * @param array $params The params to append the parsed value into
650
     * @return array Params with $option added in.
651
     */
652
    protected function _parseLongOption($option, $params)
653
    {
654
        $name = substr($option, 2);
655
        if (strpos($name, '=') !== false) {
656
            list($name, $value) = explode('=', $name, 2);
657
            array_unshift($this->_tokens, $value);
658
        }
659
        return $this->_parseOption($name, $params);
660
    }
661
662
    /**
663
     * Parse the value for a short option out of $this->_tokens

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

@@ 145-154 (lines=10) @@
142
     *
143
     * @param string $token The current token
144
     */
145
    private function parseLongOption($token)
146
    {
147
        $name = substr($token, 2);
148
149
        if (false !== $pos = strpos($name, '=')) {
150
            $this->addLongOption(substr($name, 0, $pos), substr($name, $pos + 1));
151
        } else {
152
            $this->addLongOption($name, null);
153
        }
154
    }
155
156
    /**
157
     * Parses an argument.