summaryrefslogtreecommitdiff
path: root/app/Helper
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-15 20:42:41 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-15 20:42:41 -0400
commit56d5b96fc08fe69e3991b7909798b1db0ea5097b (patch)
tree8ed665f7507c81f9aec1f0cd5b7ccc97a4c882c4 /app/Helper
parentb96e6f82c8fa758b52790bdcf6a9a856b606fed6 (diff)
Remove truncate helper and use css instead
Diffstat (limited to 'app/Helper')
-rw-r--r--app/Helper/Text.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/app/Helper/Text.php b/app/Helper/Text.php
index 790fc411..4b8e99bd 100644
--- a/app/Helper/Text.php
+++ b/app/Helper/Text.php
@@ -42,25 +42,6 @@ class Text extends \Core\Base
}
/**
- * Truncate a long text
- *
- * @param string $value Text
- * @param integer $max_length Max Length
- * @param string $end Text end
- * @return string
- */
- public function truncate($value, $max_length = 85, $end = '[...]')
- {
- $length = mb_strlen($value);
-
- if ($length > $max_length) {
- return mb_substr($value, 0, $max_length).' '.$end;
- }
-
- return $value;
- }
-
- /**
* Return true if needle is contained in the haystack
*
* @param string $haystack Haystack