src/mako/event/Event.php
public function trigger(string $name, array $parameters = [], bool $break = false): array
	{
		$returnValues = [];

		if(isset($this->events[$name]))
		{
			foreach($this->events[$name] as $handler)
			{
				$returnValues[] = $last = $this->executeHandler($handler, $parameters);

				if($break && $last === false)
				{
					break;
				}
			}
		}

		return $returnValues;
	}
public function trigger(string $name, array $parameters = [], bool $break = false): array
	{
		$returnValues = [];

		if(isset($this->events[$name]))
		{
			foreach($this->events[$name] as $handler)
			{
				$returnValues[] = $last = $this->executeHandler($handler, $parameters);

				if($break && $last === false)
				{
					break;
				}
			}
		}

		return $returnValues;
	}
public function trigger ( string $ name , array $ parameters = [ ] , bool $ break = false ) : array { $ returnValues = [ ] ; if ( isset ( $ this -> events [ $ name ] ) ) { foreach ( $ this -> events [ $ name ] as $ handler ) { $ returnValues [ ] = $ last = $ this -> executeHandler ( $ handler , $ parameters ) ; if ( $ break && $ last === false ) { break ; } } } return $ returnValues ; }
Runs all closures for an event and returns an array
contaning the return values of each event handler.

@param  string $name       Event name
@param  array  $parameters Parameters
@param  bool   $break      Break if one of the closures returns false?
@return array
Runs all closures for an event and returns an array contaning the return values of each event handler .