mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
fix cs
This commit is contained in:
@@ -54,8 +54,8 @@ class MonthYearAggregator implements AggregatorInterface
|
||||
return 'by month and year';
|
||||
}
|
||||
|
||||
$month = (int)substr($value, 0, 2);
|
||||
$year = (int)substr($value, 3, 4);
|
||||
$month = (int) substr($value, 0, 2);
|
||||
$year = (int) substr($value, 3, 4);
|
||||
|
||||
return strftime('%B %G', mktime(0, 0, 0, $month, 1, $year));
|
||||
};
|
||||
|
@@ -21,7 +21,6 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
class UrgencyAggregator implements AggregatorInterface
|
||||
{
|
||||
|
||||
private TranslatorInterface $translator;
|
||||
|
||||
public function __construct(
|
||||
@@ -88,4 +87,3 @@ class UrgencyAggregator implements AggregatorInterface
|
||||
return 'Group calendars by urgency';
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -23,7 +23,6 @@ use Doctrine\ORM\QueryBuilder;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Validator\Exception\LogicException;
|
||||
|
||||
|
||||
class CountCalendars implements ExportInterface, GroupedExportInterface
|
||||
{
|
||||
private CalendarRepository $calendarRepository;
|
||||
|
@@ -11,8 +11,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\CalendarBundle\Export\Filter;
|
||||
|
||||
use Chill\MainBundle\Export\FilterInterface;
|
||||
use Chill\CalendarBundle\Export\Declarations;
|
||||
use Chill\MainBundle\Export\FilterInterface;
|
||||
use Doctrine\ORM\Query\Expr\Andx;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
@@ -23,7 +23,7 @@ class CalendarRangeFilter implements FilterInterface
|
||||
{
|
||||
private const CHOICES = [
|
||||
'Not made within a calendar range' => true,
|
||||
'Made within a calendar range' => false
|
||||
'Made within a calendar range' => false,
|
||||
];
|
||||
|
||||
private const DEFAULT_CHOICE = false;
|
||||
@@ -52,7 +52,6 @@ class CalendarRangeFilter implements FilterInterface
|
||||
$clause = $qb->expr()->isNull('cal.calendarRange');
|
||||
}
|
||||
|
||||
|
||||
if ($where instanceof Andx) {
|
||||
$where->add($clause);
|
||||
} else {
|
||||
@@ -101,4 +100,3 @@ class CalendarRangeFilter implements FilterInterface
|
||||
return 'Filter by calendar range';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user