Skip to content

Commit

Permalink
Fix code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jun 24, 2022
1 parent 96517a3 commit 025833e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Component/VCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,12 @@ public function validate($options = 0)
} elseif (isset($this->ORG)) {
$this->FN = (string) $this->ORG;
$repaired = true;

// Otherwise, the NICKNAME property may work
} elseif (isset($this->NICKNAME)) {
$this->FN = (string) $this->NICKNAME;
$repaired = true;

// Otherwise, the EMAIL property may work
} elseif (isset($this->EMAIL)) {
$this->FN = (string) $this->EMAIL;
Expand Down
2 changes: 1 addition & 1 deletion lib/Property/ICalendar/CalAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getNormalizedValue()
}
list($schema, $everythingElse) = explode(':', $input, 2);
$schema = strtolower($schema);
if($schema === "mailto") {
if ('mailto' === $schema) {
$everythingElse = strtolower($everythingElse);
}

Expand Down

0 comments on commit 025833e

Please sign in to comment.