private function lintFile()

in build/PhpFileLinterTrait.php [17:29]


    private function lintFile($path)
    {
        static $linter;

        if (empty($linter)) {
            $linter = function_exists('opcache_get_status')
                && !empty(opcache_get_status(false)['opcache_enabled'])
                    ? [$this, 'opcacheLint']
                    : [$this, 'commandLineLint'];
        }

        return call_user_func($linter, $path);
    }