protected function collectTimelineData($collectors): array
	{
		$data = [];

		// Collect it
		foreach ($collectors as $collector)
		{
			if (! $collector['hasTimelineData'])
			{
				continue;
			}

			$data = array_merge($data, $collector['timelineData']);
		}

		// Sort it

		return $data;
	}
protected function collectTimelineData($collectors): array
	{
		$data = [];

		// Collect it
		foreach ($collectors as $collector)
		{
			if (! $collector['hasTimelineData'])
			{
				continue;
			}

			$data = array_merge($data, $collector['timelineData']);
		}

		// Sort it

		return $data;
	}
protected function collectTimelineData ( $ collectors ) : array { $ data = [ ] ; // Collect it foreach ( $ collectors as $ collector ) { if ( ! $ collector [ 'hasTimelineData' ] ) { continue ; } $ data = array_merge ( $ data , $ collector [ 'timelineData' ] ) ; } // Sort it return $ data ; }
Returns a sorted array of timeline data arrays from the collectors.

@param array $collectors

@return array
Returns a sorted array of timeline data arrays from the collectors .