This commit is contained in:
2022-10-05 15:30:55 +02:00
parent d95472ca9d
commit 642b1e43c8
22 changed files with 79 additions and 59 deletions

View File

@@ -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));
};

View File

@@ -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';
}
}

View File

@@ -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;

View File

@@ -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';
}
}