rector and cs-fixer

This commit is contained in:
2023-11-14 14:33:50 +01:00
parent 83c3621c26
commit 3e39c0ced7
8 changed files with 25 additions and 18 deletions

View File

@@ -23,8 +23,8 @@ class CreatorAggregator implements AggregatorInterface
private const PREFIX = 'acpw_aggr_creator';
public function __construct(
private UserRepository $userRepository,
private UserRender $userRender
private readonly UserRepository $userRepository,
private readonly UserRender $userRender
) {}
public function addRole(): ?string
@@ -58,7 +58,7 @@ class CreatorAggregator implements AggregatorInterface
return function ($value): string {
if ('_header' === $value) {
return 'export.aggregator.course_work.by_creator.Creator';
};
}
if (null === $value || '' === $value) {
return '';

View File

@@ -44,12 +44,12 @@ class CreatorJobAggregator implements AggregatorInterface
"{$p}_history",
Join::WITH,
$qb->expr()->andX(
$qb->expr()->eq("{$p}_history.user", "acpw.createdBy"),
$qb->expr()->eq("{$p}_history.user", 'acpw.createdBy'),
$qb->expr()->andX(
$qb->expr()->lte("{$p}_history.startDate", "acpw.createdAt"),
$qb->expr()->lte("{$p}_history.startDate", 'acpw.createdAt'),
$qb->expr()->orX(
$qb->expr()->isNull("{$p}_history.endDate"),
$qb->expr()->gt("{$p}_history.endDate", "acpw.createdAt")
$qb->expr()->gt("{$p}_history.endDate", 'acpw.createdAt')
)
)
)

View File

@@ -44,12 +44,12 @@ class CreatorScopeAggregator implements AggregatorInterface
"{$p}_history",
Join::WITH,
$qb->expr()->andX(
$qb->expr()->eq("{$p}_history.user", "acpw.createdBy"),
$qb->expr()->eq("{$p}_history.user", 'acpw.createdBy'),
$qb->expr()->andX(
$qb->expr()->lte("{$p}_history.startDate", "acpw.createdAt"),
$qb->expr()->lte("{$p}_history.startDate", 'acpw.createdAt'),
$qb->expr()->orX(
$qb->expr()->isNull("{$p}_history.endDate"),
$qb->expr()->gt("{$p}_history.endDate", "acpw.createdAt")
$qb->expr()->gt("{$p}_history.endDate", 'acpw.createdAt')
)
)
)

View File

@@ -46,12 +46,12 @@ class CreatorJobFilter implements FilterInterface
"{$p}_history",
Join::WITH,
$qb->expr()->andX(
$qb->expr()->eq("{$p}_history.user", "acpw.createdBy"),
$qb->expr()->eq("{$p}_history.user", 'acpw.createdBy'),
$qb->expr()->andX(
$qb->expr()->lte("{$p}_history.startDate", "acpw.createdAt"),
$qb->expr()->lte("{$p}_history.startDate", 'acpw.createdAt'),
$qb->expr()->orX(
$qb->expr()->isNull("{$p}_history.endDate"),
$qb->expr()->gt("{$p}_history.endDate", "acpw.createdAt")
$qb->expr()->gt("{$p}_history.endDate", 'acpw.createdAt')
)
)
)

View File

@@ -46,12 +46,12 @@ class CreatorScopeFilter implements FilterInterface
"{$p}_history",
Join::WITH,
$qb->expr()->andX(
$qb->expr()->eq("{$p}_history.user", "acpw.createdBy"),
$qb->expr()->eq("{$p}_history.user", 'acpw.createdBy'),
$qb->expr()->andX(
$qb->expr()->lte("{$p}_history.startDate", "acpw.createdAt"),
$qb->expr()->lte("{$p}_history.startDate", 'acpw.createdAt'),
$qb->expr()->orX(
$qb->expr()->isNull("{$p}_history.endDate"),
$qb->expr()->gt("{$p}_history.endDate", "acpw.createdAt")
$qb->expr()->gt("{$p}_history.endDate", 'acpw.createdAt')
)
)
)