Physikerwelt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/248624

Change subject: Fix automatically fixable style issues using phpcbf
......................................................................

Fix automatically fixable style issues using phpcbf

Change-Id: I48be1bb382cd3c05caa620dc0a0a35b3e82e09d0
---
M SpecialMathIndex.php
M maintenance/ExportCache.php
M maintenance/GenerateFeatureTable.php
M maintenance/UpdateMath.php
4 files changed, 8 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch 
refs/changes/24/248624/1

diff --git a/SpecialMathIndex.php b/SpecialMathIndex.php
index 56b5e25..85e6593 100644
--- a/SpecialMathIndex.php
+++ b/SpecialMathIndex.php
@@ -63,16 +63,16 @@
        public static function processInput( $formData ) {
                switch ( $formData['script'] ) {
                        case self::SCRIPT_UPDATE_MATH:
-                               require_once dirname( __FILE__ ) 
.'/maintenance/UpdateMath.php';
+                               require_once __DIR__ 
.'/maintenance/UpdateMath.php';
                                $updater = new UpdateMath();
                                $updater->loadParamsAndArgs( null, array( 
"max"=>1 ), null );
                                $updater->execute();
                                break;
                        case self::SCRIPT_WRITE_INDEX:
-                               require_once dirname( __FILE__ ) 
.'/maintenance/CreateMathIndex.php';
+                               require_once __DIR__ 
.'/maintenance/CreateMathIndex.php';
                                $updater = new CreateMathIndex();
                                $updater->loadParamsAndArgs( null, array( 
"mwsns"=>'mws:' ),
-                                       array( dirname( __FILE__ ) 
.'/mws/data/wiki' )
+                                       array( __DIR__ .'/mws/data/wiki' )
                                );
                                $updater->execute();
                                break;
diff --git a/maintenance/ExportCache.php b/maintenance/ExportCache.php
index 860bd39..b9e4cd7 100644
--- a/maintenance/ExportCache.php
+++ b/maintenance/ExportCache.php
@@ -19,7 +19,7 @@
  * @ingroup Maintenance
  */
 
-require_once ( dirname( __FILE__ ) . '/../../../maintenance/Maintenance.php' );
+require_once ( __DIR__ . '/../../../maintenance/Maintenance.php' );
 
 class ExportMathCache extends Maintenance {
        const DEFAULT_TABLE = 'mathoid';
@@ -71,7 +71,8 @@
                        '',
                        __METHOD__,
                        $options );
-               if ( $res === false ) return false;
+               if ( $res === false ) { return false;
+        }
                // Convert result wrapper to array
                foreach ( $res as $row ){
                        $out[] = array(
diff --git a/maintenance/GenerateFeatureTable.php 
b/maintenance/GenerateFeatureTable.php
index e96e16d..3839187 100644
--- a/maintenance/GenerateFeatureTable.php
+++ b/maintenance/GenerateFeatureTable.php
@@ -19,7 +19,7 @@
  * @ingroup Maintenance
  */
 
-require_once ( dirname( __FILE__ ) . '/../../../maintenance/Maintenance.php' );
+require_once ( __DIR__ . '/../../../maintenance/Maintenance.php' );
 
 class GenerateFeatureTable extends Maintenance {
        const RTI_CHUNK_SIZE = 100000;
diff --git a/maintenance/UpdateMath.php b/maintenance/UpdateMath.php
index 4ea53a3..350fe42 100644
--- a/maintenance/UpdateMath.php
+++ b/maintenance/UpdateMath.php
@@ -19,7 +19,7 @@
  * @ingroup Maintenance
  */
 
-require_once ( dirname( __FILE__ ) . '/../../../maintenance/Maintenance.php' );
+require_once ( __DIR__ . '/../../../maintenance/Maintenance.php' );
 
 /**
  * Class UpdateMath

-- 
To view, visit https://gerrit.wikimedia.org/r/248624
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I48be1bb382cd3c05caa620dc0a0a35b3e82e09d0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to