protected function needInstallConfirmation(string $hook) : bool
    {
        return $this->repository->hookExists($hook) && !$this->force;
    }
protected function needInstallConfirmation(string $hook) : bool
    {
        return $this->repository->hookExists($hook) && !$this->force;
    }
protected function needInstallConfirmation ( string $ hook ) : bool { return $ this -> repository -> hookExists ( $ hook ) && ! $ this -> force ; }
If the hook already exists the user has to confirm the installation

@param  string $hook The name of the hook to check
@return bool
If the hook already exists the user has to confirm the installation