Skip to content

Commit

Permalink
Fix PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Narek13 committed Feb 4, 2021
1 parent 9595cad commit b39052b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Module/ACF/Processor/OutgoingMetaProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function processOutgoing(Translation $translation)
$fields = get_field_objects($sourcePostId);
$acfFields = $this->addACFFieldKeys($fields, [], $sourcePostId);

$toNotTranslate = $acfFields['to-not-translate'] ?? [];
!empty($acfFields['to-not-translate']) ? $toNotTranslate = $acfFields['to-not-translate'] : [];
unset($acfFields['to-not-translate']);
if (!empty($acfFields)) {
$translation->set_value(Integrator::ACF_FIELDS, $acfFields, self::_NAMESPACE);
Expand Down

0 comments on commit b39052b

Please sign in to comment.