diff options
Diffstat (limited to 'src/Etym.php')
-rw-r--r-- | src/Etym.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Etym.php b/src/Etym.php index 0b2289c..1098021 100644 --- a/src/Etym.php +++ b/src/Etym.php @@ -85,7 +85,7 @@ class Etym * @return string * @author Phil Burton <phil@pgburton.com> */ - protected function cleanUpHtml(string $input) + protected function cleanUpHtml(string $input): string { // Strip HTML Tags $clear = strip_tags($input); @@ -103,7 +103,16 @@ class Etym return $clear; } - protected function handleTruncation($input, $definition, $url) + /** + * Handle when string is too long + * + * @param string $input + * @param string $definition + * @param string $url + * @return string + * @author Phil Burton <phil@pgburton.com> + */ + protected function handleTruncation(string $input, string $definition, string $url): string { $truncated = $definition; |