function PhpFileCleaner::skipString
1 call to PhpFileCleaner::skipString()
- PhpFileCleaner::clean in vendor/
composer/ class-map-generator/ src/ PhpFileCleaner.php
File
-
vendor/
composer/ class-map-generator/ src/ PhpFileCleaner.php, line 156
Class
- PhpFileCleaner
- @author Jordi Boggiano <j.boggiano@seld.be> @internal
Namespace
Composer\ClassMapGeneratorCode
private function skipString(string $delimiter) : void {
$this->index += 1;
while ($this->index < $this->len) {
if ($this->contents[$this->index] === '\\' && ($this->peek('\\') || $this->peek($delimiter))) {
$this->index += 2;
continue;
}
if ($this->contents[$this->index] === $delimiter) {
$this->index += 1;
break;
}
$this->index += 1;
}
}