Code Duplication    Length = 8-8 lines in 2 locations

src/Weew/ConsoleArguments/Option.php 1 location

@@ 344-351 (lines=8) @@
341
     *
342
     * @return array
343
     */
344
    public function parseString($string, $strict = true) {
345
        $parser = new ArgumentsParser();
346
        $matcher = new ArgumentsMatcher($parser);
347
        $args = $parser->parse($string);
348
        $args = $parser->group($args);
349
350
        return $matcher->matchOption($this, $args, $strict);
351
    }
352
353
    /**
354
     * @param $type

src/Weew/ConsoleArguments/Command.php 1 location

@@ 349-356 (lines=8) @@
346
     * @return array
347
     * @throws Exceptions\TooManyArgumentValuesException
348
     */
349
    public function parseString($string, $strict = true) {
350
        $parser = new ArgumentsParser();
351
        $matcher = new ArgumentsMatcher($parser);
352
        $args = $parser->parse($string);
353
        $args = $parser->group($args);
354
355
        return $matcher->matchCommand($this, $args, $strict);
356
    }
357
358
    /**
359
     * Clone command and all of its arguments and options.