From 5d802bfad03da873e2f21c9da82c2ddefa27fc5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Klein?= Date: Sat, 13 Feb 2016 18:14:04 +0100 Subject: [PATCH] Rename class "String" (breaks in php 7) --- Entity/Post.php | 4 ++-- Utils/{String.php => StringUtils.php} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename Utils/{String.php => StringUtils.php} (99%) 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 +