Code Duplication    Length = 3-5 lines in 2 locations

src/Driver/ParleLexer.php 1 location

@@ 166-170 (lines=5) @@
163
     */
164
    public function getTokenDefinitions(): iterable
165
    {
166
        foreach ($this->tokens as $id => $pcre) {
167
            $name = $this->map[$id];
168
169
            yield new TokenDefinition($name, $pcre, ! \in_array($name, $this->skipped, true));
170
        }
171
    }
172
}
173

src/Driver/SimpleLexer.php 1 location

@@ 80-82 (lines=3) @@
77
     */
78
    public function getTokenDefinitions(): iterable
79
    {
80
        foreach ($this->tokens as $name => $pcre) {
81
            yield new TokenDefinition($name, $pcre, ! \in_array($name, $this->skipped, true));
82
        }
83
    }
84
}
85