mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 16:45:01 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -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 = [];
|
||||
|
Reference in New Issue
Block a user