From 3cb341b1851ac837e6115c7963e2da0dea128c7a Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 12 Aug 2016 21:16:37 -0700 Subject: [PATCH] content: Use "::class" when overriding TextContent::getContentClass() Change-Id: Iea03d2cd24fdb90253145a8abfefe9f8a09e46cd --- includes/content/CssContentHandler.php | 2 +- includes/content/JavaScriptContentHandler.php | 2 +- includes/content/JsonContentHandler.php | 2 +- includes/content/TextContentHandler.php | 2 +- includes/content/WikitextContentHandler.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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; } /** -- 2.20.1