src/Linter/CachingLinter.php
public function lintFile($path)
    {
        $checksum = crc32(file_get_contents($path));

        if (!isset($this->cache[$checksum])) {
            $this->cache[$checksum] = $this->sublinter->lintFile($path);
        }

        return $this->cache[$checksum];
    }
public function lintFile($path)
    {
        $checksum = crc32(file_get_contents($path));

        if (!isset($this->cache[$checksum])) {
            $this->cache[$checksum] = $this->sublinter->lintFile($path);
        }

        return $this->cache[$checksum];
    }
public function lintFile ( $ path ) { $ checksum = crc32 ( file_get_contents ( $ path ) ) ; if ( ! isset ( $ this -> cache [ $ checksum ] ) ) { $ this -> cache [ $ checksum ] = $ this -> sublinter -> lintFile ( $ path ) ; } return $ this -> cache [ $ checksum ] ; }
{@inheritdoc}
{