From 1dd221aff6f90288830c7f2bd7899ff120166613 Mon Sep 17 00:00:00 2001 From: Jeff Kellem Date: Fri, 1 Dec 2023 20:27:03 -0800 Subject: [PATCH] fix for CiviCRM-Core-Style check --- Civi/Api4/Service/Spec/SpecFormatter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Civi/Api4/Service/Spec/SpecFormatter.php b/Civi/Api4/Service/Spec/SpecFormatter.php index 2d6c1c2020..47506d54aa 100644 --- a/Civi/Api4/Service/Spec/SpecFormatter.php +++ b/Civi/Api4/Service/Spec/SpecFormatter.php @@ -323,7 +323,8 @@ class SpecFormatter { foreach (['rows', 'cols', 'note_rows', 'note_columns'] as $prop) { if (!empty($data[$prop])) { $key = str_replace('note_', '', $prop); - $key = str_replace('columns', 'cols', $key); // per @colemanw https://github.com/civicrm/civicrm-core/pull/28388#issuecomment-1835717428 + // per @colemanw https://github.com/civicrm/civicrm-core/pull/28388#issuecomment-1835717428 + $key = str_replace('columns', 'cols', $key); $inputAttrs[$key] = (int) $data[$prop]; } } -- 2.25.1