Skip to content

Commit

Permalink
remove useless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Feb 5, 2018
1 parent e017c9d commit 923c568
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/SslCertificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ public function getDomain(): string
return '';
}

/* Common Name is a string */
if (is_string($this->rawCertificateFields['subject']['CN'])) {
return $this->rawCertificateFields['subject']['CN'];
}

/* Common name is an array consisting of multiple domains, take the first one */
if (is_array($this->rawCertificateFields['subject']['CN'])) {
return $this->rawCertificateFields['subject']['CN'][0];
}
Expand Down

0 comments on commit 923c568

Please sign in to comment.