From 0faa0fb0aac490076e9a8d7a4b687d5ffb45b904 Mon Sep 17 00:00:00 2001 From: David Blankenship Date: Wed, 18 Sep 2024 19:36:09 -0400 Subject: [PATCH] chore(thumbnail-view-defaults): fix linting issues --- .../modules/custom/ys_views_basic/src/ViewsBasicManager.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php index 759d00ecf..f9806fea2 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_views_basic/src/ViewsBasicManager.php @@ -399,8 +399,9 @@ public function getView($type, $params) { $eventTimePeriod = $paramsDecoded['filters']['event_time_period'] ?? NULL; - // Determine if we are in a state where field_options doesn't yet exist (pre-existing view) - $no_field_display_options_saved = !key_exists('field_options', $paramsDecoded) || !is_array($paramsDecoded['field_options']); + // Determine if we are in a state where field_options doesn't yet exist + // (pre-existing view) + $no_field_display_options_saved = !array_key_exists('field_options', $paramsDecoded) || !is_array($paramsDecoded['field_options']); $field_display_options = [ 'show_categories' => (int) !empty($paramsDecoded['field_options']['show_categories']),