Skip to content

Commit ac0c3a1

Browse files
[GOVCMSCT2-121] Fixed lint issue.
1 parent 61dc9cc commit ac0c3a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web/themes/contrib/civictheme/civictheme.post_update.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,10 @@ function civictheme_post_update_update_editor_allowed_field(): string {
867867

868868
/**
869869
* Add civictheme_fast_fact_card paragraph type and enable it for manual list.
870+
*
871+
* @SuppressWarnings(PHPMD.StaticAccess)
870872
*/
871-
function civictheme_post_update_add_fast_fact_card_paragraph(array &$sandbox): string {
873+
function civictheme_post_update_add_fast_fact_card_paragraph_type(): string {
872874
$new_configs = [
873875
// Paragraph type definition.
874876
'paragraphs.paragraphs_type.civictheme_fast_fact_card' => 'paragraphs_type',
@@ -886,8 +888,7 @@ function civictheme_post_update_add_fast_fact_card_paragraph(array &$sandbox): s
886888

887889
// Enable civictheme_fast_fact_card for civictheme_manual_list.
888890
$field_config_name = 'field.field.paragraph.civictheme_manual_list.field_c_p_list_items';
889-
$config_factory = \Drupal::configFactory();
890-
$field_config = $config_factory->getEditable($field_config_name);
891+
$field_config = \Drupal::configFactory()->getEditable($field_config_name);
891892

892893
if (!$field_config->isNew()) {
893894
$handler_settings = $field_config->get('settings.handler_settings') ?: [];

0 commit comments

Comments
 (0)