GrumPHP\Event\Subscriber\StashUnstagedChangesSubscriber::isStashEnabled PHP Method

isStashEnabled() private method

private isStashEnabled ( GrumPHP\Task\Context\ContextInterface $context ) : boolean
$context GrumPHP\Task\Context\ContextInterface
return boolean
    private function isStashEnabled(ContextInterface $context)
    {
        return $this->grumPHP->ignoreUnstagedChanges() && $context instanceof GitPreCommitContext;
    }