public function scope(string $filePath, string $contents, string $prefix, array $patchers, Whitelist $whitelist): string
    {
        if (false === $this->isPhpFile($filePath, $contents)) {
            return $this->decoratedScoper->scope(...func_get_args());
        }

        return $this->scopePhp($contents, $prefix, $whitelist);
    }
public function scope(string $filePath, string $contents, string $prefix, array $patchers, Whitelist $whitelist): string
    {
        if (false === $this->isPhpFile($filePath, $contents)) {
            return $this->decoratedScoper->scope(...func_get_args());
        }

        return $this->scopePhp($contents, $prefix, $whitelist);
    }
public function scope ( string $ filePath , string $ contents , string $ prefix , array $ patchers , Whitelist $ whitelist ) : string { if ( false === $ this -> isPhpFile ( $ filePath , $ contents ) ) { return $ this -> decoratedScoper -> scope ( ... func_get_args ( ) ) ; } return $ this -> scopePhp ( $ contents , $ prefix , $ whitelist ) ; }
Scopes PHP files.

{@inheritdoc}

@throws PhpParserError
Scopes PHP files .