php csfixes

This commit is contained in:
2022-11-02 10:28:52 +01:00
parent dc149c7fd5
commit 1228a0323c
26 changed files with 64 additions and 60 deletions

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
/**
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
@@ -11,9 +11,10 @@ declare(strict_types=1);
namespace Chill\ActivityBundle\Export\Aggregator;
use Chill\MainBundle\Export\AggregatorInterface;
use Chill\ActivityBundle\Export\Declarations;
use Chill\MainBundle\Export\AggregatorInterface;
use Doctrine\ORM\QueryBuilder;
use LogicException;
use Symfony\Component\Form\FormBuilderInterface;
class SentReceivedAggregator implements AggregatorInterface
@@ -41,10 +42,11 @@ class SentReceivedAggregator implements AggregatorInterface
public function getLabels($key, array $values, $data)
{
return function ($value): string {
return static function ($value): string {
if ('_header' === $value) {
return '';
}
switch ($value) {
case 'sent':
return 'is sent';
@@ -53,7 +55,7 @@ class SentReceivedAggregator implements AggregatorInterface
return 'is received';
default:
throw new \LogicException(sprintf('The value %s is not valid', $value));
throw new LogicException(sprintf('The value %s is not valid', $value));
}
};
}