Skip to content

Commit

Permalink
core-1747 check before count(), use MockArraySessionStorage on Quote …
Browse files Browse the repository at this point in the history
…tests, fixed Auth tests
  • Loading branch information
stereomon committed Feb 1, 2018
1 parent dd181ae commit 63b93c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Spryker/Zed/Customer/Business/Customer/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,19 +242,19 @@ public function getFormattedAddressArray(AddressTransfer $addressTransfer)
{
$address = [];

if (count($addressTransfer->getCompany()) > 0) {
if ($addressTransfer->getCompany() !== null) {
$address[] = $addressTransfer->getCompany();
}

$address[] = sprintf('%s %s %s', $addressTransfer->getSalutation(), $addressTransfer->getFirstName(), $addressTransfer->getLastName());

if (count($addressTransfer->getAddress1()) > 0) {
if ($addressTransfer->getAddress1() !== null) {
$address[] = $addressTransfer->getAddress1();
}
if (count($addressTransfer->getAddress2()) > 0) {
if ($addressTransfer->getAddress2() !== null) {
$address[] = $addressTransfer->getAddress2();
}
if (count($addressTransfer->getAddress3()) > 0) {
if ($addressTransfer->getAddress3() !== null) {
$address[] = $addressTransfer->getAddress3();
}

Expand Down

0 comments on commit 63b93c6

Please sign in to comment.