mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 18:14:59 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -27,7 +27,7 @@ class TimelineReportProvider implements TimelineProviderInterface
|
||||
{
|
||||
public function __construct(protected EntityManager $em, protected AuthorizationHelper $helper, private readonly Security $security, protected CustomFieldsHelper $customFieldsHelper, protected $showEmptyValues) {}
|
||||
|
||||
public function fetchQuery($context, array $args)
|
||||
public function fetchQuery($context, array $args): \Chill\MainBundle\Timeline\TimelineSingleQuery
|
||||
{
|
||||
$this->checkContext($context);
|
||||
|
||||
@@ -147,7 +147,7 @@ class TimelineReportProvider implements TimelineProviderInterface
|
||||
*
|
||||
* @throws \LogicException if the context is not supported
|
||||
*/
|
||||
private function checkContext($context)
|
||||
private function checkContext($context): void
|
||||
{
|
||||
if ('person' !== $context && 'center' !== $context) {
|
||||
throw new \LogicException("The context '{$context}' is not supported. Currently only 'person' and 'center' is supported");
|
||||
|
Reference in New Issue
Block a user