[TASK] Use self:: where possible in GeneralUtility 57/30257/2
authorSebastian Michaelsen <sebastian@michaelsen.io>
Wed, 21 May 2014 14:10:16 +0000 (16:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 29 May 2014 14:12:06 +0000 (16:12 +0200)
It's common sense to use self:: where possible because it's quicker and
makes code better understandable.

This change fixes 2 violations in \TYPO3\CMS\Core\Utility\GeneralUtility

Releases: 6.2
Resolves: #59001
Change-Id: Ie56a6697186426e3ff082b1694572c885c8420f5
Reviewed-on: https://review.typo3.org/30257
Reviewed-by: Christian Kuhn
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index 9225194..f74620e 100644 (file)
@@ -1045,7 +1045,7 @@ class GeneralUtility {
         * @return string Converted result.
         */
        static public function htmlspecialchars_decode($value) {
-               GeneralUtility::logDeprecatedFunction();
+               self::logDeprecatedFunction();
                return htmlspecialchars_decode($value);
        }
 
@@ -4903,7 +4903,7 @@ Connection: close
                        $messageSubstituted = preg_replace_callback(
                                '/(http|https):\\/\\/.+(?=[\\]\\.\\?]*([\\! \'"()<>]+|$))/iU',
                                function (array $matches) use ($lengthLimit, $index_script_url) {
-                                       return GeneralUtility::makeRedirectUrl($matches[0], $lengthLimit, $index_script_url);
+                                       return self::makeRedirectUrl($matches[0], $lengthLimit, $index_script_url);
                                },
                                $message
                        );