src/class-notifier-manager.php
protected function should_notify( Vulnerabilities $vulnerabilities ) {
		if ( $vulnerabilities->is_empty() ) {
			return false;
		}

		if ( $this->options->should_nag ) {
			return true;
		}

		return $vulnerabilities->hash() !== $this->options->last_scan_hash;
	}
protected function should_notify( Vulnerabilities $vulnerabilities ) {
		if ( $vulnerabilities->is_empty() ) {
			return false;
		}

		if ( $this->options->should_nag ) {
			return true;
		}

		return $vulnerabilities->hash() !== $this->options->last_scan_hash;
	}
protected function should_notify ( Vulnerabilities $ vulnerabilities ) { if ( $ vulnerabilities -> is_empty ( ) ) { return false ; } if ( $ this -> options -> should_nag ) { return true ; } return $ vulnerabilities -> hash ( ) !== $ this -> options -> last_scan_hash ; }
Determine whether a notifications should be sent.

@param  Vulnerabilities $vulnerabilities List of vulnerabilities.

@return boolean
Determine whether a notifications should be sent .