Skip to content

Commit

Permalink
Use the existing Services object (#105)
Browse files Browse the repository at this point in the history
It was already defined above, on line 198.

Also compacted the multi-line chained method calls into one line since its length does not exceed 120 characters.
  • Loading branch information
mary-kate authored Mar 8, 2022
1 parent a8fdcb7 commit c37cda4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions includes/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ public static function newFromRow( $row, Parameters $parameters, Title $title, $

$article->mLink = $articleLink;

$languageConverter = MediaWikiServices::getInstance()
->getLanguageConverterFactory()
->getLanguageConverter();
$languageConverter = $services->getLanguageConverterFactory()->getLanguageConverter();

// get first char used for category-style output
if ( isset( $row['sortkey'] ) ) {
Expand Down

0 comments on commit c37cda4

Please sign in to comment.