From cf8b3f50a0b7777fe1cc522e523fa5192dbb973b Mon Sep 17 00:00:00 2001 From: Jens Schuppe Date: Mon, 22 Apr 2024 11:39:40 +0200 Subject: [PATCH] Code style fixes --- Civi/Api4/Service/Links/ECKLinksProvider.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Civi/Api4/Service/Links/ECKLinksProvider.php b/Civi/Api4/Service/Links/ECKLinksProvider.php index 33753f2..3d2b051 100644 --- a/Civi/Api4/Service/Links/ECKLinksProvider.php +++ b/Civi/Api4/Service/Links/ECKLinksProvider.php @@ -20,10 +20,14 @@ public static function getSubscribedEvents(): array { public static function alterECKLinksResult(RespondEvent $e): void { $request = $e->getApiRequest(); - if (is_object($request) && is_a($request, '\Civi\Api4\Action\GetLinks') && str_starts_with($request->getEntityName(), 'Eck_')) { + if ( + is_object($request) + && is_a($request, '\Civi\Api4\Action\GetLinks') && str_starts_with($request->getEntityName(), 'Eck_') + ) { $links = (array) $e->getResponse(); $addLinkIndex = self::getActionIndex($links, 'add'); - // Expand the "add" link to multiple subtypes if it exists (otherwise the WHERE clause excluded "add" so we should too) + // Expand the "add" link to multiple subtypes if it exists (otherwise the WHERE clause excluded "add" so we should + // too). if ($request->getExpandMultiple() && isset($addLinkIndex)) { [, $entityTypeName] = explode('_', $request->getEntityName(), 2); $addLinks = [];