|
@@ 146-148 (lines=3) @@
|
| 143 |
|
$closingName = null; |
| 144 |
|
|
| 145 |
|
while($this->position < $this->tokensCount) { |
| 146 |
|
while($this->position < $this->tokensCount && false === $this->lookahead(self::TOKEN_OPEN)) { |
| 147 |
|
$content .= $this->match(null, true); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
$this->beginBacktrack(); |
| 151 |
|
/** @psalm-suppress MixedArgumentTypeCoercion */ |
|
@@ 240-242 (lines=3) @@
|
| 237 |
|
$value = ''; |
| 238 |
|
|
| 239 |
|
if($this->match(self::TOKEN_DELIMITER, false)) { |
| 240 |
|
while($this->position < $this->tokensCount && false === $this->lookahead(self::TOKEN_DELIMITER)) { |
| 241 |
|
$value .= $this->match(null, false); |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
return $this->match(self::TOKEN_DELIMITER, false) ? $value : false; |
| 245 |
|
} |