Skip to content

Commit

Permalink
update code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
cem-jtl committed Nov 6, 2024
1 parent 515f418 commit bece014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/Product/ProductGermanizedFieldsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,11 @@ private function updateGermanizedGpsrData(ProductModel $product): void
. $responsiblePersonData['email'] . "\n"
. $responsiblePersonData['homepage'];

if (!empty(str_replace([' ', "\n"], '', $gpsrManufacturerAddress))) {
if (!empty(\str_replace([' ', "\n"], '', $gpsrManufacturerAddress))) {
\update_term_meta($termId, 'formatted_address', $gpsrManufacturerAddress);
}

if (!empty(str_replace([' ', "\n"], '', $gpsrResponsibleAddress))) {
if (!empty(\str_replace([' ', "\n"], '', $gpsrResponsibleAddress))) {
\update_term_meta($termId, 'formatted_eu_address', $gpsrResponsibleAddress);
}

Expand Down

0 comments on commit bece014

Please sign in to comment.