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,8 +11,8 @@ declare(strict_types=1);
namespace Chill\AsideActivityBundle\Export\Aggregator;
use Chill\MainBundle\Export\AggregatorInterface;
use Chill\AsideActivityBundle\Export\Declarations;
use Chill\MainBundle\Export\AggregatorInterface;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormBuilderInterface;
@@ -41,7 +41,7 @@ class ByActivityTypeAggregator implements AggregatorInterface
public function getLabels($key, array $values, $data)
{
return function ($value): string {
return static function ($value): string {
if ('_header' === $value) {
return '';
}

View File

@@ -17,4 +17,4 @@ namespace Chill\AsideActivityBundle\Export;
abstract class Declarations
{
public const ASIDE_ACTIVITY_TYPE = 'aside_activity';
}
}

View File

@@ -11,14 +11,14 @@ declare(strict_types=1);
namespace Chill\AsideActivityBundle\Export\Export;
use Chill\AsideActivityBundle\Export\Declarations;
use Chill\AsideActivityBundle\Repository\AsideActivityRepository;
use Chill\MainBundle\Export\ExportInterface;
use Chill\MainBundle\Export\FormatterInterface;
use Chill\MainBundle\Export\GroupedExportInterface;
use Chill\AsideActivityBundle\Export\Declarations;
use Symfony\Component\Form\FormBuilderInterface;
use Doctrine\ORM\Query;
use LogicException;
use Symfony\Component\Form\FormBuilderInterface;
class CountAsideActivity implements ExportInterface, GroupedExportInterface
{
@@ -105,7 +105,3 @@ class CountAsideActivity implements ExportInterface, GroupedExportInterface
return [];
}
}

View File

@@ -11,8 +11,8 @@ declare(strict_types=1);
namespace Chill\AsideActivityBundle\Export\Filter;
use Chill\MainBundle\Export\FilterInterface;
use Chill\AsideActivityBundle\Export\Declarations;
use Chill\MainBundle\Export\FilterInterface;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormBuilderInterface;
@@ -52,4 +52,4 @@ class ByActivityTypeFilter implements FilterInterface
{
return 'Filter by aside activity type';
}
}
}

View File

@@ -11,8 +11,8 @@ declare(strict_types=1);
namespace Chill\AsideActivityBundle\Export\Filter;
use Chill\MainBundle\Export\FilterInterface;
use Chill\AsideActivityBundle\Export\Declarations;
use Chill\MainBundle\Export\FilterInterface;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormBuilderInterface;
@@ -52,4 +52,4 @@ class ByDateFilter implements FilterInterface
{
return 'Filter by aside activity date';
}
}
}