Skip to content

Commit

Permalink
Unify WebOffice and WebOutlook classes
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Feb 13, 2022
1 parent 3c88395 commit 59becff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Generators/WebOffice.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function generate(Link $link): string
}

/**
* Generate an text without html entity code and hexadecimal code instead spaces.
* Generate a text without html entity code and hexadecimal code instead spaces.
* @param string $text
* @return string
*/
Expand Down
3 changes: 2 additions & 1 deletion src/Generators/WebOutlook.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ public function generate(Link $link): string
}

if ($link->address) {
// The Location field is not HTML code
$url .= '&location='.urlencode($link->address);
}

return $url;
}

/**
* Generate an text without html entity code and hexadecimal code instead spaces.
* Generate a text without html entity code and hexadecimal code instead spaces.
* @param string $text
* @return string
*/
Expand Down

0 comments on commit 59becff

Please sign in to comment.