Ricordisamoa has uploaded a new change for review.

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

Change subject: Fix phpcs errors and warnings
......................................................................

Fix phpcs errors and warnings

Change-Id: I2fd6073000a561602d8db733525b5bf5aa0bd52f
---
M PronunciationRecording.alias.php
M PronunciationRecording.php
M SpecialPronunciationRecording.php
3 files changed, 7 insertions(+), 7 deletions(-)


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

diff --git a/PronunciationRecording.alias.php b/PronunciationRecording.alias.php
index 67611b4..1da567f 100644
--- a/PronunciationRecording.alias.php
+++ b/PronunciationRecording.alias.php
@@ -13,6 +13,6 @@
  * @author Rahul Maliakkal
  */
 $specialPageAliases[ 'en' ] = array(
-        'PronunciationRecording' => array( 'PronunciationRecording', 
'Pronunciation Recording' ),
+       'PronunciationRecording' => array( 'PronunciationRecording', 
'Pronunciation Recording' ),
 );
 
diff --git a/PronunciationRecording.php b/PronunciationRecording.php
index 05993b2..0f8d778 100644
--- a/PronunciationRecording.php
+++ b/PronunciationRecording.php
@@ -30,7 +30,7 @@
 
 //"mediawiki.libs.recorderjs" is loaded as WebWorker.
 $wgResourceModules['mediawiki.libs.recorderjs'] = array(
-        'scripts' => '/mediawiki.libs.recorderjs/recorder.js',
+       'scripts' => '/mediawiki.libs.recorderjs/recorder.js',
 ) + $pronunciationRecordingModuleInfo;
 
 $wgResourceModules['ext.pronunciationRecording.pronunciationRecorder'] = array(
diff --git a/SpecialPronunciationRecording.php 
b/SpecialPronunciationRecording.php
index 456dfab..32d39b7 100644
--- a/SpecialPronunciationRecording.php
+++ b/SpecialPronunciationRecording.php
@@ -34,12 +34,12 @@
                        $output->addHTML( '<b>'.wfMessage( 
'pronunciationrecording-information-word-label' )->escaped().'</b><input 
type="text" class="mw-pronunciationrecording-information-word"><br><br>' );
                        $languages = Language::fetchLanguageNames( null, 'mw' );
                        $output->addHTML( '<b>'.wfMessage( 
'pronunciationrecording-information-language-label' )->escaped().'</b><select 
class="mw-pronunciationrecording-information-language">' );
-                       foreach( $languages as $lang_code => $lang_name) {
-                               $output->addHTML( Html::element( 'option', 
array( 'value' => $lang_code ) , $lang_code.' - '.$lang_name ) );
+                       foreach ( $languages as $lang_code => $lang_name ) {
+                               $output->addHTML( Html::element( 'option', 
array( 'value' => $lang_code ), $lang_code.' - '.$lang_name ) );
                        }
                        $output->addHTML( '</select>' );
                        $output->addHTML( '<br><br>'.wfMessage( 
'pronunciationrecording-information-license-prompt', $user )->escaped() );
-                       $output->addHTML( '<div 
class="mw-pronunciationrecording-information-license-cc-by-sa" >'.wfMessage( 
'mwe-upwiz-source-ownwork-assert-cc-by-sa-3.0', 1, $user, 
'http://creativecommons.org/licenses/by-sa/3.0/deed.en'  )->parse().'<br>' );
+                       $output->addHTML( '<div 
class="mw-pronunciationrecording-information-license-cc-by-sa" >'.wfMessage( 
'mwe-upwiz-source-ownwork-assert-cc-by-sa-3.0', 1, $user, 
'http://creativecommons.org/licenses/by-sa/3.0/deed.en' )->parse().'<br>' );
                        $output->addHTML( wfMessage( 
'mwe-upwiz-source-ownwork-cc-by-sa-3.0-explain', 1 )->escaped().'<br></div>' );
                        $output->addHTML( '</fieldset>' );
                        $output->addHTML( '</form>' );
@@ -80,7 +80,7 @@
                        $output = $this->getOutput();
 
                        if ( !$user->isAllowed( 'upload' ) ) {
-                               if ( !$user->isLoggedIn() && ( 
$wgGroupPermissions['user']['upload']|| 
$wgGroupPermissions['autoconfirmed']['upload'] ) ) {
+                               if ( !$user->isLoggedIn() && ( 
$wgGroupPermissions['user']['upload'] || 
$wgGroupPermissions['autoconfirmed']['upload'] ) ) {
                                        // Custom message if logged-in users 
without any special rights can     upload
                                        $pronunciationRecordingPageName = 
$this->getPageTitle()->getPrefixedDBkey();
                                        $returnTo = array( 'returnto' => 
$pronunciationRecordingPageName );
@@ -90,7 +90,7 @@
                                        $output->addHTML( Html::rawElement( 
'span', array( 'class' => 'plainlinks' ), $anonMsgHtml ) );
                                        return;
                                } else {
-                                       throw new  PermissionsError( 'upload' );
+                                       throw new PermissionsError( 'upload' );
                                }
                                return false;
                        }

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

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

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

Reply via email to