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:
parent
792754c20c
commit
e1a9a99797
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user