From: Jeff Kellem Date: Sat, 2 Dec 2023 04:27:03 +0000 (-0800) Subject: fix for CiviCRM-Core-Style check X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1dd221aff6f90288830c7f2bd7899ff120166613;p=civicrm-core.git fix for CiviCRM-Core-Style check --- 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]; } }