Skip to content
Snippets Groups Projects

Issue #3332255: PHPCS ERRORS

Open Hardik Pandya requested to merge issue/autotagger-3332255:3332255-phpcs-errors into 1.0.x
5 files
+ 54
14
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -61,7 +61,8 @@ class SearchInTextFields extends AutotaggerPluginBase {
}
// Text fields on node or media references can be used as a source.
if ($field_type == 'entity_reference' && (in_array($field->getSettings()['target_type'], ['node', 'media']))) {
$target_types = ['node', 'media'];
if ($field_type == 'entity_reference' && (in_array($field->getSettings()['target_type'], $target_types))) {
$source_fields[$field->getName()] = t('Text fields on entities referenced by @label', ['@label' => $field->getLabel()])->render();
}
@@ -137,8 +138,9 @@ class SearchInTextFields extends AutotaggerPluginBase {
'autotagger_source_field' => $form_state->getValue('autotagger_source_field'),
'autotagger_destination_field' => $form_state->getValue('autotagger_destination_field'),
'autotagger_tag_on_create_only' => $form_state->getValue('autotagger_tag_on_create_only'),
'autotagger_rebuild_on_submit' => $form_state->getValue('autotagger_rebuild_on_submit')
'autotagger_rebuild_on_submit' => $form_state->getValue('autotagger_rebuild_on_submit'),
];
$node_type->setThirdPartySetting('autotagger', 'search_in_text_fields', $autotagger);
}
}
Loading