last processing of review remarks

This commit is contained in:
2023-10-04 11:19:39 +02:00
parent af4bee4d50
commit dac48ea4e0
22 changed files with 22 additions and 95 deletions

View File

@@ -28,14 +28,10 @@ class CountCalendars implements ExportInterface, GroupedExportInterface
{
private CalendarRepository $calendarRepository;
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
public function __construct(
CalendarRepository $calendarRepository,
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
) {
$this->calendarRepository = $calendarRepository;
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
}
public function buildForm(FormBuilderInterface $builder)
@@ -106,7 +102,7 @@ class CountCalendars implements ExportInterface, GroupedExportInterface
$qb->select('COUNT(cal.id) AS export_result');
$qb->join('cal.accompanyingPeriod', 'acp');
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
return $qb;
}

View File

@@ -27,14 +27,10 @@ class StatCalendarAvgDuration implements ExportInterface, GroupedExportInterface
{
private CalendarRepository $calendarRepository;
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
public function __construct(
CalendarRepository $calendarRepository,
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
) {
$this->calendarRepository = $calendarRepository;
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
}
public function buildForm(FormBuilderInterface $builder): void
@@ -100,7 +96,7 @@ class StatCalendarAvgDuration implements ExportInterface, GroupedExportInterface
$qb->select('AVG(cal.endDate - cal.startDate) AS export_result');
$qb->join('cal.accompanyingPeriod', 'acp');
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
return $qb;
}

View File

@@ -27,14 +27,10 @@ class StatCalendarSumDuration implements ExportInterface, GroupedExportInterface
{
private CalendarRepository $calendarRepository;
private AccompanyingCourseExportHelper $accompanyingCourseExportHelper;
public function __construct(
CalendarRepository $calendarRepository,
AccompanyingCourseExportHelper $accompanyingCourseExportHelper
) {
$this->calendarRepository = $calendarRepository;
$this->accompanyingCourseExportHelper = $accompanyingCourseExportHelper;
}
public function buildForm(FormBuilderInterface $builder): void
@@ -100,7 +96,7 @@ class StatCalendarSumDuration implements ExportInterface, GroupedExportInterface
$qb->select('SUM(cal.endDate - cal.startDate) AS export_result');
$qb->join('cal.accompanyingPeriod', 'acp');
$this->accompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
AccompanyingCourseExportHelper::addClosingMotiveExclusionClause($qb);
return $qb;
}