Skip to content

Commit

Permalink
Added return type
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-intelli committed Oct 3, 2023
1 parent 648c118 commit 354c16f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function __construct(AccountInterface $current_user, SDKConnectorInterfac
* @param \Symfony\Component\HttpKernel\Event\RequestEvent $event
* The event.
*/
public function validateApigeexTeamEnabled(RequestEvent $event) {
public function validateApigeexTeamEnabled(RequestEvent $event): void {
// Check only for html request and admin users.
if ($this->currentUser->hasPermission('administer modules') && $event->getRequest()->getRequestFormat() === 'html') {
/** @var \Symfony\Component\Routing\Route $current_route */
Expand All @@ -103,7 +103,7 @@ public function validateApigeexTeamEnabled(RequestEvent $event) {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
public static function getSubscribedEvents(): array {
$events[KernelEvents::REQUEST][] = ['validateApigeexTeamEnabled'];
return $events;
}
Expand Down

0 comments on commit 354c16f

Please sign in to comment.