src/Linter/CachingLinter.php
public function lintSource($source)
    {
        $checksum = crc32($source);

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

        return $this->cache[$checksum];
    }
public function lintSource($source)
    {
        $checksum = crc32($source);

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

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