Mercurial > hg > isophonics-drupal-site
diff vendor/psy/psysh/src/Input/ShellInput.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/vendor/psy/psysh/src/Input/ShellInput.php Thu Apr 26 11:26:54 2018 +0100 +++ b/vendor/psy/psysh/src/Input/ShellInput.php Tue Jul 10 15:07:59 2018 +0100 @@ -105,7 +105,9 @@ ]; } else { // should never happen + // @codeCoverageIgnoreStart throw new \InvalidArgumentException(sprintf('Unable to parse input near "... %s ..."', substr($input, $cursor, 10))); + // @codeCoverageIgnoreEnd } $cursor += strlen($match[0]); @@ -168,6 +170,10 @@ return; } + // (copypasta) + // + // @codeCoverageIgnoreStart + // if last argument isArray(), append token to last argument if ($this->definition->hasArgument($c - 1) && $this->definition->getArgument($c - 1)->isArray()) { $arg = $this->definition->getArgument($c - 1); @@ -183,9 +189,11 @@ } throw new \RuntimeException(sprintf('No arguments expected, got "%s".', $token)); + // @codeCoverageIgnoreEnd } // Everything below this is copypasta from ArgvInput private methods + // @codeCoverageIgnoreStart /** * Parses a short option. @@ -323,4 +331,6 @@ $this->options[$name] = $value; } } + + // @codeCoverageIgnoreEnd }