GrumPHP\Task\AbstractLinterTask::guardLinterIsInstalled PHP Method

guardLinterIsInstalled() protected method

Validates if the linter is installed.
protected guardLinterIsInstalled ( )
    protected function guardLinterIsInstalled()
    {
        if (!$this->linter->isInstalled()) {
            throw new RuntimeException(sprintf('The %s can\'t run on your system. Please install all dependencies.', $this->getName()));
        }
    }