Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored and github-actions[bot] committed Oct 9, 2024
1 parent 28ea670 commit a2862a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Mapping/DataTarget/Direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,16 @@ protected function checkAssignData($newData, $valueContainer, $getter)
if (count($fieldNameParts) === 3) {
$fieldName = $fieldNameParts[2];
}
try{

try {
$fieldDefinition = $this->getFieldDefinition($valueContainer, $fieldName);
$currentDataIsEmpty= $fieldDefinition->isEmpty($currentData);
$currentDataIsEmpty = $fieldDefinition->isEmpty($currentData);
$newDataIsEmpty = $fieldDefinition->isEmpty($newData);
} catch (InvalidConfigurationException $e) {
$currentDataIsEmpty= empty($currentData);
$currentDataIsEmpty = empty($currentData);
$newDataIsEmpty = empty($newData);
}

if ($this->writeIfTargetIsNotEmpty === false && !$currentDataIsEmpty) {
return false;
}
Expand Down

0 comments on commit a2862a2

Please sign in to comment.