Skip to content

Commit ff3992d

Browse files
committed
break long throw expression
1 parent f709b08 commit ff3992d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

system/Common.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,12 @@ function command(string $command)
144144
} elseif (preg_match('/' . $regexString . '/A', $command, $match, 0, $cursor)) {
145145
$args[] = stripcslashes($match[1]);
146146
} else {
147-
throw new InvalidArgumentException(sprintf('Unable to parse input near "... %s ...".', substr($command, $cursor, 10))); // @codeCoverageIgnore
147+
// @codeCoverageIgnoreStart
148+
throw new InvalidArgumentException(sprintf(
149+
'Unable to parse input near "... %s ...".',
150+
substr($command, $cursor, 10)
151+
));
152+
// @codeCoverageIgnoreEnd
148153
}
149154

150155
$cursor += strlen($match[0]);

0 commit comments

Comments
 (0)