@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** |
| 62 | 62 | * @param string $pattern |
| 63 | 63 | * @param string $content |
| 64 | - * @return \Traversable|TokenInterface[] |
|
| 64 | + * @return \Generator |
|
| 65 | 65 | * @throws \InvalidArgumentException |
| 66 | 66 | * @throws \RuntimeException |
| 67 | 67 | */ |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | public function lex(Readable $input): \Traversable |
| 53 | 53 | { |
| 54 | 54 | foreach ($this->exec($this->pattern, $input->getContents()) as $token) { |
| 55 | - if (! \in_array($token->name(), $this->skipped, true)) { |
|
| 55 | + if (!\in_array($token->name(), $this->skipped, true)) { |
|
| 56 | 56 | yield $token; |
| 57 | 57 | } |
| 58 | 58 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | public function lex(Readable $input): \Traversable |
| 42 | 42 | { |
| 43 | 43 | foreach (parent::exec($this->pcre->compile(), $input->getContents()) as $token) { |
| 44 | - if (! \in_array($token->name(), $this->skipped, true)) { |
|
| 44 | + if (!\in_array($token->name(), $this->skipped, true)) { |
|
| 45 | 45 | yield $token; |
| 46 | 46 | } |
| 47 | 47 | } |