summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Burton <phil@d3r.com>2019-06-11 14:37:16 +0100
committerPhil Burton <phil@d3r.com>2019-06-11 14:37:16 +0100
commit5ddc2b35b37f02270015626c7e3d3876dd0eca21 (patch)
tree9250d216cd45fabc6329576850728f6b8553611a /src
parent3faffde695cd887abdc582f85c43fb2f57d305ed (diff)
Fix more docos
Diffstat (limited to 'src')
-rw-r--r--src/Etym.php13
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;