From ca7b2d0117b963d6a5682cd6c6aff19484e408dc Mon Sep 17 00:00:00 2001 From: Yeni Atencio Date: Thu, 9 May 2024 20:45:41 +1000 Subject: [PATCH] fixed lint --- ...eSiteResourceObjectNormalizationCacher.php | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/EventSubscriber/TideSiteResourceObjectNormalizationCacher.php b/src/EventSubscriber/TideSiteResourceObjectNormalizationCacher.php index 1b84a82..d7aa80c 100644 --- a/src/EventSubscriber/TideSiteResourceObjectNormalizationCacher.php +++ b/src/EventSubscriber/TideSiteResourceObjectNormalizationCacher.php @@ -44,26 +44,26 @@ protected function set(ResourceObject $object, array $normalization_parts) { } /** - * Generates a lookup render array for a normalization. - * - * @param \Drupal\jsonapi\JsonApiResource\ResourceObject $object - * The resource object for which to generate a cache item. - * - * @return array - * A render array for use with the RenderCache service. - * - * @see \Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber::$dynamicPageCacheRedirectRenderArray - */ + * Generates a lookup render array for a normalization. + * + * @param \Drupal\jsonapi\JsonApiResource\ResourceObject $object + * The resource object for which to generate a cache item. + * + * @return array + * A render array for use with the RenderCache service. + * + * @see \Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber::$dynamicPageCacheRedirectRenderArray + */ protected static function generateLookupRenderArray(ResourceObject $object) { return [ '#cache' => [ - 'keys' => [ - $object->getResourceType() - ->getTypeName(), - $object->getId(), - ], - 'bin' => 'jsonapi_normalizations', - ], + 'keys' => [ + $object->getResourceType() + ->getTypeName(), + $object->getId(), + ], + 'bin' => 'jsonapi_normalizations', + ], ]; }