Skip to content

Commit

Permalink
phpcs cleanup (#7163)
Browse files Browse the repository at this point in the history
  • Loading branch information
DAcodedBEAT authored Sep 22, 2024
2 parents 45c5c7f + 02b3f86 commit 6c8a894
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3,322 deletions.
6 changes: 4 additions & 2 deletions src/FamilyEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,16 @@
->setLongitude($nLongitude);

// Update Lat/Long if address changes
if (($family->isColumnModified(FamilyTableMap::COL_FAM_ADDRESS1)
if (
($family->isColumnModified(FamilyTableMap::COL_FAM_ADDRESS1)
|| $family->isColumnModified(FamilyTableMap::COL_FAM_ADDRESS2)
|| $family->isColumnModified(FamilyTableMap::COL_FAM_CITY)
|| $family->isColumnModified(FamilyTableMap::COL_FAM_STATE)
|| $family->isColumnModified(FamilyTableMap::COL_FAM_ZIP)
|| $family->isColumnModified(FamilyTableMap::COL_FAM_COUNTRY))
&& (!$family->isColumnModified(FamilyTableMap::COL_FAM_LATITUDE)
&& !$family->isColumnModified(FamilyTableMap::COL_FAM_LONGITUDE))) {
&& !$family->isColumnModified(FamilyTableMap::COL_FAM_LONGITUDE))
) {
$family->setLatitude(null);
$family->setLongitude(null);
}
Expand Down
Loading

0 comments on commit 6c8a894

Please sign in to comment.