summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Translate/scripts/processMessageChanges.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/Translate/scripts/processMessageChanges.php')
-rw-r--r--www/wiki/extensions/Translate/scripts/processMessageChanges.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/www/wiki/extensions/Translate/scripts/processMessageChanges.php b/www/wiki/extensions/Translate/scripts/processMessageChanges.php
index e0915ced..cca7e8cd 100644
--- a/www/wiki/extensions/Translate/scripts/processMessageChanges.php
+++ b/www/wiki/extensions/Translate/scripts/processMessageChanges.php
@@ -5,7 +5,7 @@
* @author Niklas Laxström
*
* @copyright Copyright © 2012-2013, Niklas Laxström
- * @license GPL-2.0+
+ * @license GPL-2.0-or-later
* @file
*/
@@ -28,7 +28,7 @@ require_once "$IP/maintenance/Maintenance.php";
* @since 2012-04-23
*/
class ProcessMessageChanges extends Maintenance {
- protected $changes = array();
+ protected $changes = [];
/**
* @var int
@@ -68,7 +68,7 @@ class ProcessMessageChanges extends Maintenance {
public function execute() {
$groups = $this->getGroups();
- $changes = array();
+ $changes = [];
$comparator = new ExternalMessageSourceStateComparator();
$scripted = $this->hasOption( 'safe-import' );
@@ -84,7 +84,7 @@ class ProcessMessageChanges extends Maintenance {
// Remove all groups without changes
$changes = array_filter( $changes );
- if ( $changes === array() ) {
+ if ( $changes === [] ) {
if ( !$scripted ) {
$this->output( "No changes found\n" );
}
@@ -151,7 +151,7 @@ class ProcessMessageChanges extends Maintenance {
$this->output( "Imported $count new messages or translations for $group.\n" );
}
- if ( $info['skipped'] !== array() ) {
+ if ( $info['skipped'] !== [] ) {
$skipped = implode( ', ', array_keys( $info['skipped'] ) );
$this->output( "There are changes to check for groups $skipped.\n" );
$url = SpecialPage::getTitleFor( 'ManageMessageGroups', $info['name'] )->getFullURL();
@@ -160,5 +160,5 @@ class ProcessMessageChanges extends Maintenance {
}
}
-$maintClass = 'ProcessMessageChanges';
+$maintClass = ProcessMessageChanges::class;
require_once RUN_MAINTENANCE_IF_MAIN;