From a95f49bde78488b6551febd760b9ad8c4e1f0697 Mon Sep 17 00:00:00 2001 From: Cavasin F Date: Tue, 12 Dec 2023 14:19:12 +0100 Subject: [PATCH] codestyle-fix --- src/Event/NotificationEvent.php | 4 +- src/Event/NotificationEventInterface.php | 7 +++ src/Model/NotificationInterface.php | 42 +++++++++--------- src/Model/NotificationModel.php | 8 ++-- src/Model/NotificationV2Interface.php | 56 ++++++++++++------------ src/Twig/RuntimeExtension.php | 2 +- tests/Event/NotificationEventTest.php | 6 +-- 7 files changed, 66 insertions(+), 59 deletions(-) diff --git a/src/Event/NotificationEvent.php b/src/Event/NotificationEvent.php index d33a288..955461a 100644 --- a/src/Event/NotificationEvent.php +++ b/src/Event/NotificationEvent.php @@ -9,8 +9,8 @@ namespace KevinPapst\TablerBundle\Event; -use KevinPapst\TablerBundle\Model\NotificationV2Interface; use KevinPapst\TablerBundle\Model\NotificationInterface; +use KevinPapst\TablerBundle\Model\NotificationV2Interface; class NotificationEvent extends ThemeEvent { @@ -29,7 +29,7 @@ class NotificationEvent extends ThemeEvent private int $maxDisplay = 10; /** - * @var $notifications array + * @var array */ private array $notifications = []; diff --git a/src/Event/NotificationEventInterface.php b/src/Event/NotificationEventInterface.php index 64d505c..45967ba 100644 --- a/src/Event/NotificationEventInterface.php +++ b/src/Event/NotificationEventInterface.php @@ -1,5 +1,12 @@ $routes - * @param array $icons + * @param array $icons */ public function __construct( private EventDispatcherInterface $eventDispatcher, diff --git a/tests/Event/NotificationEventTest.php b/tests/Event/NotificationEventTest.php index 3a979fc..57c6e5b 100644 --- a/tests/Event/NotificationEventTest.php +++ b/tests/Event/NotificationEventTest.php @@ -73,7 +73,7 @@ private function generateNbNotifications(): array // 2 $defaultNotification = new NotificationModel('default', 'My default Message'); - $arr[] = $defaultNotification; + $arr[] = $defaultNotification; // 3 $disabledNotification = new NotificationModel('disabled', 'My disabled Message', null); @@ -136,11 +136,11 @@ private function generateNbNotifications(): array // 8 $moreThanMaxNotification = new NotificationModel('max', 'Will not be displayed as max notification is set to 7'); - $arr[] = $moreThanMaxNotification; + $arr[] = $moreThanMaxNotification; // 9 $extraNotification = new NotificationModel('extra', 'One more not displayed'); - $arr[] = $extraNotification; + $arr[] = $extraNotification; return $arr; }