From ce9b8bf04ecaf483893a2f31a5d2058620c297f1 Mon Sep 17 00:00:00 2001 From: Shishir Suvarna Date: Mon, 25 Sep 2023 15:01:00 +0530 Subject: [PATCH] Fix PHPCS error --- .../EventSubscriber/ValidateApigeeXTeamEnabledSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/apigee_edge_teams/src/EventSubscriber/ValidateApigeeXTeamEnabledSubscriber.php b/modules/apigee_edge_teams/src/EventSubscriber/ValidateApigeeXTeamEnabledSubscriber.php index a86346d9..6c26b9ee 100644 --- a/modules/apigee_edge_teams/src/EventSubscriber/ValidateApigeeXTeamEnabledSubscriber.php +++ b/modules/apigee_edge_teams/src/EventSubscriber/ValidateApigeeXTeamEnabledSubscriber.php @@ -76,7 +76,7 @@ public function __construct(SDKConnectorInterface $sdk_connector, OrganizationCo */ public function validateApigeexTeamEnabled(RequestEvent $event) { /** @var \Symfony\Component\Routing\Route $current_route */ - if (($current_route = $event->getRequest()->get('_route')) && (strpos($current_route, 'team') !== false)) { + if (($current_route = $event->getRequest()->get('_route')) && (strpos($current_route, 'team') !== FALSE)) { $organization = $this->orgController->load($this->connector->getOrganization()); if ($organization && $this->orgController->isOrganizationApigeeX()) { if ($organization->getAddonsConfig() || TRUE === $organization->getAddonsConfig()->getMonetizationConfig()->getEnabled()) {