diff --git a/Entity/Post.php b/Entity/Post.php index c6b88e4..3f20681 100644 --- a/Entity/Post.php +++ b/Entity/Post.php @@ -7,7 +7,7 @@ use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Event\LifecycleEventArgs; use Doctrine\Common\Collections\ArrayCollection; -use Icap\BlogBundle\Utils\String; +use Icap\BlogBundle\Utils\StringUtils; use Icap\NotificationBundle\Entity\UserPickerContent; /** @@ -184,7 +184,7 @@ public function getContent() public function getShortContent($url, $text) { $readMoreText = sprintf('... %s ', $url, $text); - return String::resumeHtml($this->content, 400, $readMoreText); + return StringUtils::resumeHtml($this->content, 400, $readMoreText); } /** diff --git a/Utils/String.php b/Utils/StringUtils.php similarity index 99% rename from Utils/String.php rename to Utils/StringUtils.php index 1c1a70b..2dd684c 100644 --- a/Utils/String.php +++ b/Utils/StringUtils.php @@ -2,7 +2,7 @@ namespace Icap\BlogBundle\Utils; -class String +class StringUtils { /** * Came from http://j-reaux.developpez.com/tutoriel/php/fonctions-troncature-texte/ @@ -96,4 +96,4 @@ public static function resumeHtml($text, $nbCaracter, $readMoreText = '') return $text; } } - \ No newline at end of file +