public function trigger(Payload $payload) {
		$enabled = (boolean) (TRUE === isset($this->settings[self::OPTION_ENABLED]) ? $this->settings[self::OPTION_ENABLED] : TRUE);
		$matchesBranch = TRUE === isset($this->settings[self::OPTION_BRANCH]) ? 'refs/heads/' . $this->settings[self::OPTION_BRANCH] === $payload->getRef() : TRUE;
		return $enabled && $matchesBranch;
	}
public function trigger(Payload $payload) {
		$enabled = (boolean) (TRUE === isset($this->settings[self::OPTION_ENABLED]) ? $this->settings[self::OPTION_ENABLED] : TRUE);
		$matchesBranch = TRUE === isset($this->settings[self::OPTION_BRANCH]) ? 'refs/heads/' . $this->settings[self::OPTION_BRANCH] === $payload->getRef() : TRUE;
		return $enabled && $matchesBranch;
	}
public function trigger ( Payload $ payload ) { $ enabled = ( boolean ) ( TRUE === isset ( $ this -> settings [ self :: OPTION_ENABLED ] ) ? $ this -> settings [ self :: OPTION_ENABLED ] : TRUE ) ; $ matchesBranch = TRUE === isset ( $ this -> settings [ self :: OPTION_BRANCH ] ) ? 'refs/heads/' . $ this -> settings [ self :: OPTION_BRANCH ] === $ payload -> getRef ( ) : TRUE ; return $ enabled && $ matchesBranch ; }
This plugin will always trigger

@param Payload $payload
@return boolean
This plugin will always trigger