Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dietercoopman authored and github-actions[bot] committed Jan 12, 2024
1 parent b9b8142 commit 1bcac6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mailspfchecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ private function retreiveSpfRecordsFromSendingServer(): array
$domain = implode('.', $explodedServerUrl);
if ($domain) {
$record = $checker->getRecordFromDomain($domain);
if($record) {
if ($record) {
foreach ($record->getTerms() as $term) {
if ($term instanceof Mechanism\IncludeMechanism || $term instanceof Mechanism\AMechanism) {
$domainSpec = (string)$term->getDomainSpec();
$domainSpec = (string) $term->getDomainSpec();
if (strstr($domainSpec, $domain)) {
$spfRecords[] = $domainSpec;
}
Expand Down

0 comments on commit 1bcac6d

Please sign in to comment.