From 361174e8705fd3b31c13d94b4a39efde9c9cf400 Mon Sep 17 00:00:00 2001 From: Kirill Nesmeyanov Date: Tue, 10 Jul 2018 14:05:28 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Factory.php | 2 +- src/MultistateLexerInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Factory.php b/src/Factory.php index ea05a65..1a78931 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -44,7 +44,7 @@ public static function create(array $tokens, array $skip = [], int $flags = self switch (true) { case self::isMultistate($flags): $error = \vsprintf('Multistate %slexer does not implemented yet', [ - self::isLookahead($flags) ? 'lookahead ' : '' + self::isLookahead($flags) ? 'lookahead ' : '', ]); throw new \InvalidArgumentException($error); diff --git a/src/MultistateLexerInterface.php b/src/MultistateLexerInterface.php index d513753..1a2f8b8 100644 --- a/src/MultistateLexerInterface.php +++ b/src/MultistateLexerInterface.php @@ -40,5 +40,5 @@ interface MultistateLexerInterface extends SimpleLexerInterface * @param int|null $nextState * @return MultistateLexerInterface */ - public function state(string $token, int $state, int $nextState = null): MultistateLexerInterface; + public function state(string $token, int $state, int $nextState = null): self; }