Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent 053b92b77c
commit 17db59d221
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -47,7 +47,7 @@ class TimelineBuilder
* @param string $context the context of the service
* @param string $id the
*/
public function addProvider($context, $id, TimelineProviderInterface $provider)
public function addProvider($context, $id, TimelineProviderInterface $provider): void
{
$this->providersByContext[$context][] = $id;
$this->providers[$id] = $provider;
@@ -113,7 +113,7 @@ class TimelineBuilder
*
* @return string an HTML representation, must be included using `|raw` filter
*/
public function getTimelineHTML($context, array $args, $firstItem = 0, $number = 20)
public function getTimelineHTML($context, array $args, $firstItem = 0, $number = 20): string
{
[$union, $parameters] = $this->buildUnionQuery($context, $args);
@@ -261,7 +261,7 @@ class TimelineBuilder
*
* @return string the HTML representation of the timeline
*/
private function render(array $fetched, array $entitiesByType, $context, array $args)
private function render(array $fetched, array $entitiesByType, $context, array $args): string
{
// add results to a pretty array
$timelineEntries = [];