aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance
diff options
context:
space:
mode:
authorReedy <reedy@wikimedia.org>2024-10-17 21:50:41 +0100
committerReedy <reedy@wikimedia.org>2024-10-17 21:21:14 +0000
commit573e216fc1f6b187a46e12a0e0ccc1a69c93fc5d (patch)
treeb062fd56d65aaa7c41bd54b500766b2b555f7300 /maintenance
parent73bb50edb4ee7734471b010178679ec1bbb32ee9 (diff)
downloadmediawikicore-573e216fc1f6b187a46e12a0e0ccc1a69c93fc5d.tar.gz
mediawikicore-573e216fc1f6b187a46e12a0e0ccc1a69c93fc5d.zip
Use ++ and -- rather than += 1 and -= 1
Change-Id: I27b9a19ab952ede1267921bd042af0fe1c89e228
Diffstat (limited to 'maintenance')
-rw-r--r--maintenance/importImages.php2
-rw-r--r--maintenance/updateExtensionJsonSchema.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/importImages.php b/maintenance/importImages.php
index 204fed4741a6..ea0d7dc78960 100644
--- a/maintenance/importImages.php
+++ b/maintenance/importImages.php
@@ -492,7 +492,7 @@ class ImportImages extends Maintenance {
}
$n = substr( $n, 0, $idx );
- $maxStrip -= 1;
+ $maxStrip--;
}
return false;
diff --git a/maintenance/updateExtensionJsonSchema.php b/maintenance/updateExtensionJsonSchema.php
index 1c7923231ccf..ab121a80b89c 100644
--- a/maintenance/updateExtensionJsonSchema.php
+++ b/maintenance/updateExtensionJsonSchema.php
@@ -38,7 +38,7 @@ class UpdateExtensionJsonSchema extends Maintenance {
}
while ( $json['manifest_version'] !== ExtensionRegistry::MANIFEST_VERSION ) {
- $json['manifest_version'] += 1;
+ $json['manifest_version']++;
$func = "updateTo{$json['manifest_version']}";
$this->$func( $json );
}