fix for CiviCRM-Core-Style check
authorJeff Kellem <github-dist@beyond.dreams.org>
Sat, 2 Dec 2023 04:27:03 +0000 (20:27 -0800)
committerJeff Kellem <github-dist@beyond.dreams.org>
Sat, 2 Dec 2023 04:27:03 +0000 (20:27 -0800)
Civi/Api4/Service/Spec/SpecFormatter.php

index 2d6c1c2020f75d71d4a7fe8324d76b782811040d..47506d54aa5b87dae47f433ded52fbafa5f103e4 100644 (file)
@@ -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];
         }
       }