diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 11:36:01 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-04-12 12:25:29 +0200 |
commit | 4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch) | |
tree | 3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/CoreBundle/EventListener | |
parent | 7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff) | |
download | wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip |
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/CoreBundle/EventListener')
-rw-r--r-- | src/Wallabag/CoreBundle/EventListener/LocaleListener.php | 6 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/EventListener/LocaleListener.php b/src/Wallabag/CoreBundle/EventListener/LocaleListener.php index 05deac0a..a1c7e5ab 100644 --- a/src/Wallabag/CoreBundle/EventListener/LocaleListener.php +++ b/src/Wallabag/CoreBundle/EventListener/LocaleListener.php | |||
@@ -36,9 +36,9 @@ class LocaleListener implements EventSubscriberInterface | |||
36 | 36 | ||
37 | public static function getSubscribedEvents() | 37 | public static function getSubscribedEvents() |
38 | { | 38 | { |
39 | return array( | 39 | return [ |
40 | // must be registered before the default Locale listener | 40 | // must be registered before the default Locale listener |
41 | KernelEvents::REQUEST => array(array('onKernelRequest', 17)), | 41 | KernelEvents::REQUEST => [['onKernelRequest', 17]], |
42 | ); | 42 | ]; |
43 | } | 43 | } |
44 | } | 44 | } |
diff --git a/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php b/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php index 1c9160d5..10586126 100644 --- a/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php +++ b/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php | |||
@@ -28,9 +28,9 @@ class RegistrationConfirmedListener implements EventSubscriberInterface | |||
28 | 28 | ||
29 | public static function getSubscribedEvents() | 29 | public static function getSubscribedEvents() |
30 | { | 30 | { |
31 | return array( | 31 | return [ |
32 | FOSUserEvents::REGISTRATION_CONFIRMED => 'authenticate', | 32 | FOSUserEvents::REGISTRATION_CONFIRMED => 'authenticate', |
33 | ); | 33 | ]; |
34 | } | 34 | } |
35 | 35 | ||
36 | public function authenticate(FilterUserResponseEvent $event, $eventName = null, EventDispatcherInterface $eventDispatcher = null) | 36 | public function authenticate(FilterUserResponseEvent $event, $eventName = null, EventDispatcherInterface $eventDispatcher = null) |