Use ++$i over $i++ outside of loops in Wikidata fetcher

This is a slightly more performant way of incrementing an integer.
This commit is contained in:
Joshua Ramon Enslin 2021-04-12 12:54:07 +02:00
parent 792754c20c
commit e1a9a99797
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -287,7 +287,7 @@ final class NodaWikidataFetcher {
$part1 = substr($input, 0, strpos($input, ".mw-parser-output"));
$part2 = substr($input, strpos($input, "}", strpos($input, ".mw-parser-output")) + 1);
$input = $part1 . $part2;
$i++;
++$i;
if ($i === 30) break;
}