From: Kunal Mehta Date: Sat, 13 Aug 2016 04:16:37 +0000 (-0700) Subject: content: Use "::class" when overriding TextContent::getContentClass() X-Git-Tag: 1.31.0-rc.0~6074^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/File:Does_not_exist.jpg?a=commitdiff_plain;h=3cb341b1851ac837e6115c7963e2da0dea128c7a;p=lhc%2Fweb%2Fwiklou.git content: Use "::class" when overriding TextContent::getContentClass() Change-Id: Iea03d2cd24fdb90253145a8abfefe9f8a09e46cd --- diff --git a/includes/content/CssContentHandler.php b/includes/content/CssContentHandler.php index 845e39c076..9c1103536c 100644 --- a/includes/content/CssContentHandler.php +++ b/includes/content/CssContentHandler.php @@ -37,7 +37,7 @@ class CssContentHandler extends CodeContentHandler { } protected function getContentClass() { - return 'CssContent'; + return CssContent::class; } public function supportsRedirects() { diff --git a/includes/content/JavaScriptContentHandler.php b/includes/content/JavaScriptContentHandler.php index b082b327d8..9abad3e22a 100644 --- a/includes/content/JavaScriptContentHandler.php +++ b/includes/content/JavaScriptContentHandler.php @@ -39,7 +39,7 @@ class JavaScriptContentHandler extends CodeContentHandler { * @return string */ protected function getContentClass() { - return 'JavaScriptContent'; + return JavaScriptContent::class; } public function supportsRedirects() { diff --git a/includes/content/JsonContentHandler.php b/includes/content/JsonContentHandler.php index f97eaa4445..eb1c67d5d2 100644 --- a/includes/content/JsonContentHandler.php +++ b/includes/content/JsonContentHandler.php @@ -37,6 +37,6 @@ class JsonContentHandler extends CodeContentHandler { * @return string */ protected function getContentClass() { - return 'JsonContent'; + return JsonContent::class; } } diff --git a/includes/content/TextContentHandler.php b/includes/content/TextContentHandler.php index d4fad44e80..74cbd16965 100644 --- a/includes/content/TextContentHandler.php +++ b/includes/content/TextContentHandler.php @@ -101,7 +101,7 @@ class TextContentHandler extends ContentHandler { * @return string */ protected function getContentClass() { - return 'TextContent'; + return TextContent::class; } /** diff --git a/includes/content/WikitextContentHandler.php b/includes/content/WikitextContentHandler.php index 5c0a9c81fe..d9f1e8639d 100644 --- a/includes/content/WikitextContentHandler.php +++ b/includes/content/WikitextContentHandler.php @@ -35,7 +35,7 @@ class WikitextContentHandler extends TextContentHandler { } protected function getContentClass() { - return 'WikitextContent'; + return WikitextContent::class; } /**