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

Breadcrumb

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

function FileList::current

Get the file that is currently being processed.

Return value

\PHP_CodeSniffer\Files\File

File

vendor/squizlabs/php_codesniffer/src/Files/FileList.php, line 192

Class

FileList

Namespace

PHP_CodeSniffer\Files

Code

public function current() {
    $path = key($this->files);
    if (isset($this->files[$path]) === false) {
        $this->files[$path] = new LocalFile($path, $this->ruleset, $this->config);
    }
    return $this->files[$path];
}

API Navigation

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