Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PhpFileCleaner.php

function PhpFileCleaner::skipToPhp

1 call to PhpFileCleaner::skipToPhp()
PhpFileCleaner::clean in vendor/composer/class-map-generator/src/PhpFileCleaner.php

File

vendor/composer/class-map-generator/src/PhpFileCleaner.php, line 144

Class

PhpFileCleaner
@author Jordi Boggiano <j.boggiano@seld.be> @internal

Namespace

Composer\ClassMapGenerator

Code

private function skipToPhp() : void {
    while ($this->index < $this->len) {
        if ($this->contents[$this->index] === '<' && $this->peek('?')) {
            $this->index += 2;
            break;
        }
        $this->index += 1;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal