From c2083e74559c8881b848f5c12f5eaf4d962130df Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 11 Aug 2018 00:16:25 +0200 Subject: [PATCH] Avoid variable reuse under same name It makes the code easier to read when using different variable names Change-Id: Ia65e8b7ebdc0692e8dac29c605c13092cef9b0ad --- includes/TemplateStylesHooks.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/TemplateStylesHooks.php b/includes/TemplateStylesHooks.php index 2d90f85..58587ca 100644 --- a/includes/TemplateStylesHooks.php +++ b/includes/TemplateStylesHooks.php @@ -224,19 +224,19 @@ class TemplateStylesHooks { $content = $rev ? $rev->getContent() : null; if ( !$content ) { - $title = $title->getPrefixedText(); + $titleText = $title->getPrefixedText(); return self::formatTagError( $parser, [ 'templatestyles-bad-src-missing', - $title, - wfEscapeWikiText( $title ) + $titleText, + wfEscapeWikiText( $titleText ) ] ); } if ( !$content instanceof TemplateStylesContent ) { - $title = $title->getPrefixedText(); + $titleText = $title->getPrefixedText(); return self::formatTagError( $parser, [ 'templatestyles-bad-src', - $title, - wfEscapeWikiText( $title ), + $titleText, + wfEscapeWikiText( $titleText ), ContentHandler::getLocalizedName( $content->getModel() ) ] ); }