Skip to content

Commit 676c74b

Browse files
dabrtgithub-actions[bot]
authored andcommitted
PHP & JS CS Fixes
1 parent ca0e86d commit 676c74b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

code_samples/back_office/notifications/src/Notification/ListRenderer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,21 @@ public function render(Notification $notification): string
3232
if ($currentRequest && $currentRequest->attributes->getBoolean('render_all')) {
3333
$templateToExtend = '@ibexadesign/account/notifications/list_item_all.html.twig';
3434
}
35+
3536
return $this->twig->render('@ibexadesign/notification.html.twig', [
3637
'notification' => $notification,
3738
'template_to_extend' => $templateToExtend,
3839
]);
3940
}
40-
41+
4142
public function generateUrl(Notification $notification): ?string
4243
{
4344
if (array_key_exists('content_id', $notification->data)) {
4445
return $this->router->generate('ibexa.content.view', [
4546
'contentId' => $notification->data['content_id'],
4647
]);
4748
}
49+
4850
return null;
4951
}
5052
}

code_samples/notifications/Src/Query/search.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
declare(strict_types=1);
44

5-
use DateTimeImmutable;
6-
use Ibexa\Contracts\Core\Repository\Values\Notification\Query\Criterion;
75
use Ibexa\Contracts\Core\Repository\Values\NotificationQuery;
86

97
$repository = $this->getRepository();

0 commit comments

Comments
 (0)