@@ -190,6 +190,9 @@ public function run(float $startTime, float $totalTime, RequestInterface $reques
190190
191191 /**
192192 * Called within the view to display the timeline itself.
193+ *
194+ * @param list<array{hasTimelineData: bool, timelineData: list<array<string, mixed>>}> $collectors
195+ * @param array<string, string> $styles
193196 */
194197 protected function renderTimeline (array $ collectors , float $ startTime , int $ segmentCount , int $ segmentDuration , array &$ styles ): string
195198 {
@@ -202,6 +205,9 @@ protected function renderTimeline(array $collectors, float $startTime, int $segm
202205
203206 /**
204207 * Recursively renders timeline elements and their children.
208+ *
209+ * @param list<array<string, mixed>> $rows
210+ * @param array<string, string> $styles
205211 */
206212 protected function renderTimelineRecursive (array $ rows , float $ startTime , int $ segmentCount , int $ segmentDuration , array &$ styles , int &$ styleCount , int $ level = 0 , bool $ isChild = false ): string
207213 {
@@ -268,7 +274,9 @@ protected function renderTimelineRecursive(array $rows, float $startTime, int $s
268274 /**
269275 * Returns a sorted array of timeline data arrays from the collectors.
270276 *
271- * @param array $collectors
277+ * @param list<array{hasTimelineData: bool, timelineData: list<array<string, mixed>>}> $collectors
278+ *
279+ * @return list<array<string, mixed>>
272280 */
273281 protected function collectTimelineData ($ collectors ): array
274282 {
@@ -305,6 +313,10 @@ protected function collectTimelineData($collectors): array
305313
306314 /**
307315 * Arranges the already sorted timeline data into a parent => child structure.
316+ *
317+ * @param list<array<string, mixed>> $elements
318+ *
319+ * @return list<array<string, mixed>>
308320 */
309321 protected function structureTimelineData (array $ elements ): array
310322 {
@@ -333,6 +345,8 @@ protected function structureTimelineData(array $elements): array
333345 /**
334346 * Returns an array of data from all of the modules
335347 * that should be displayed in the 'Vars' tab.
348+ *
349+ * @return array<string, mixed>
336350 */
337351 protected function collectVarData (): array
338352 {
0 commit comments