Skip to content

Commit

Permalink
Fix for issue mautic#5103 - correcting syntax/spaces for passing Trav…
Browse files Browse the repository at this point in the history
…is CI PHP 7.1 tests
  • Loading branch information
stancel committed Jan 28, 2018
1 parent b0d6dfd commit 2793ef0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/bundles/LeadBundle/Helper/IdentifyCompanyHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,16 @@ public static function findCompany(array $parameters, CompanyModel $companyModel

if (isset($parameters['company'])) {
$companyName = filter_var($parameters['company']);
}
elseif (isset($parameters['companyname'])) {
} elseif (isset($parameters['companyname'])) {
$companyName = filter_var($parameters['companyname']);
}
else {
} else {
// Do nothing here. Just adding this for proper syntax.
}

if (isset($parameters['email']) || isset($parameters['companyemail'])) {
$companyDomain = isset($parameters['email']) ? self::domainExists($parameters['email']) : self::domainExists($parameters['companyemail']);
}

if (empty($parameters['companywebsite']) && !empty($parameters['companyemail'])) {
$companyDomain = self::domainExists($parameters['companyemail']);
}
Expand Down

0 comments on commit 2793ef0

Please sign in to comment.