Legoktm has uploaded a new change for review.

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

Change subject: build: Upgrade to mediawiki-codesniffer 0.5.0
......................................................................

build: Upgrade to mediawiki-codesniffer 0.5.0

Change-Id: I1049a02ad0afaa17a5473497dc509e995247148a
---
M PronunciationRecording.i18n.php
M PronunciationRecording.php
M composer.json
3 files changed, 7 insertions(+), 5 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PronunciationRecording 
refs/changes/01/252401/1

diff --git a/PronunciationRecording.i18n.php b/PronunciationRecording.i18n.php
index 1a41dd5..9f1bd74 100644
--- a/PronunciationRecording.i18n.php
+++ b/PronunciationRecording.i18n.php
@@ -15,7 +15,7 @@
        function wfJsonI18nShimff4e87ecb165bd77( $cache, $code, &$cachedData ) {
                $codeSequence = array_merge( array( $code ), 
$cachedData['fallbackSequence'] );
                foreach ( $codeSequence as $csCode ) {
-                       $fileName = dirname( __FILE__ ) . "/i18n/$csCode.json";
+                       $fileName = __DIR__ . "/i18n/$csCode.json";
                        if ( is_readable( $fileName ) ) {
                                $data = FormatJson::decode( file_get_contents( 
$fileName ), true );
                                foreach ( array_keys( $data ) as $key ) {
diff --git a/PronunciationRecording.php b/PronunciationRecording.php
index cce6134..6ed4f77 100644
--- a/PronunciationRecording.php
+++ b/PronunciationRecording.php
@@ -1,6 +1,8 @@
 <?php
 
-if ( !defined( 'MEDIAWIKI' ) ) die( 'Invalid entry point.' );
+if ( !defined( 'MEDIAWIKI' ) ) {
+       die( 'Invalid entry point.' );
+}
 
 $wgExtensionCredits[ 'specialpage' ][] = array(
        'path' => __FILE__,
@@ -29,9 +31,9 @@
        'remoteExtPath' => 'PronunciationRecording/resources',
 );
 
-//Modules
+// Modules
 
-//"mediawiki.libs.recorderjs" is loaded as WebWorker.
+// "mediawiki.libs.recorderjs" is loaded as WebWorker.
 $wgResourceModules['mediawiki.libs.recorderjs'] = array(
        'scripts' => '/mediawiki.libs.recorderjs/recorder.js',
 ) + $pronunciationRecordingModuleInfo;
diff --git a/composer.json b/composer.json
index 48e2014..99741dd 100644
--- a/composer.json
+++ b/composer.json
@@ -1,7 +1,7 @@
 {
        "require-dev": {
                "jakub-onderka/php-parallel-lint": "0.9",
-               "mediawiki/mediawiki-codesniffer": "0.3.0"
+               "mediawiki/mediawiki-codesniffer": "0.5.0"
        },
        "scripts": {
                "test": [

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1049a02ad0afaa17a5473497dc509e995247148a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PronunciationRecording
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

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

Reply via email to