Use consistent spaces at start and end of comments

Change-Id: Idbb09b69aa1ef4e46433319aaea62f34f0dbc038
This commit is contained in:
Fomafix 2017-03-30 21:53:50 +02:00
parent c3c730f494
commit 7a3418ae33
11 changed files with 16 additions and 16 deletions

View file

@ -2421,7 +2421,7 @@ class EditPage {
# Show log extract when the user is currently blocked
if ( $namespace == NS_USER || $namespace == NS_USER_TALK ) {
$username = explode( '/', $this->mTitle->getText(), 2 )[0];
$user = User::newFromName( $username, false /* allow IP users*/ );
$user = User::newFromName( $username, false /* allow IP users */ );
$ip = User::isIP( $username );
$block = Block::newFromTarget( $user, $user );
if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist

View file

@ -97,7 +97,7 @@ class IPTC {
case '2#025': /* keywords */
$data['Keywords'] = self::convIPTC( $val, $c );
break;
case '2#101': /* Country (shown)*/
case '2#101': /* Country (shown) */
$data['CountryDest'] = self::convIPTC( $val, $c );
break;
case '2#095': /* state/province (shown) */
@ -115,7 +115,7 @@ class IPTC {
case '2#040': /* special instructions */
$data['SpecialInstructions'] = self::convIPTC( $val, $c );
break;
case '2#105': /* headline*/
case '2#105': /* headline */
$data['Headline'] = self::convIPTC( $val, $c );
break;
case '2#110': /* credit */

View file

@ -1133,7 +1133,7 @@ class Article implements Page {
|| $title->getNamespace() == NS_USER_TALK
) {
$rootPart = explode( '/', $title->getText() )[0];
$user = User::newFromName( $rootPart, false /* allow IP users*/ );
$user = User::newFromName( $rootPart, false /* allow IP users */ );
$ip = User::isIP( $rootPart );
$block = Block::newFromTarget( $user, $user );

View file

@ -131,7 +131,7 @@ class InterwikiSearchResultSetWidget implements SearchResultSetWidget {
: "";
if ( isset( $this->customCaptions[$iwPrefix] ) ) {
/* customCaptions composed by loadCustomCaptions() with pre-escaped content.*/
/* customCaptions composed by loadCustomCaptions() with pre-escaped content. */
$caption = $this->customCaptions[$iwPrefix];
} else {
$interwiki = $this->iwLookup->fetch( $iwPrefix );

View file

@ -459,4 +459,4 @@ html > body.rtl .mw-body ul#filetoc {
display: block;
}
/* RTL specific CSS ends here **/
/** RTL specific CSS ends here **/

View file

@ -148,7 +148,7 @@ to resemble a traditional dictionary definition */
left: 0;
text-align: center;
color: #fff;
text-shadow: 0 0 10px rgba( 0, 0, 0, 0.4 ); /* improves legibility on white background*/
text-shadow: 0 0 10px rgba( 0, 0, 0, 0.4 ); /* improves legibility on white background */
font-size: 0.8em;
padding: 5px;
background-color: rgba( 0, 0, 0, 0.5 );
@ -183,7 +183,7 @@ to resemble a traditional dictionary definition */
#mw-interwiki-results {
width: 30%;
display: inline-block; /* used to align iw sidebar with the top of the main search results*/
display: inline-block; /* used to align iw sidebar with the top of the main search results */
margin-left: 10%;
}
.searchresults .mw-search-createlink,

View file

@ -29,7 +29,7 @@
font-size: 0.8em;
}
/* Put some space under template's header, which may contain CAPTCHA HTML.*/
/* Put some space under template's header, which may contain CAPTCHA HTML. */
section.mw-form-header {
margin-bottom: 10px;
}

View file

@ -1,4 +1,4 @@
/* global moment*/
/* global moment */
( function ( $, mw, moment ) {
/**

View file

@ -93,7 +93,7 @@ class DbTestPreviewer extends TestRecorder {
$before = 'n';
} elseif ( $prevResults[$test] == 1 ) {
$before = 'p';
} else /* if ( $prevResults[$test] == 0 )*/ {
} else /* if ( $prevResults[$test] == 0 ) */ {
$before = 'f';
}
@ -101,7 +101,7 @@ class DbTestPreviewer extends TestRecorder {
$after = 'n';
} elseif ( $this->results[$test] == 1 ) {
$after = 'p';
} else /*if ( $this->results[$test] == 0 ) */ {
} else /* if ( $this->results[$test] == 0 ) */ {
$after = 'f';
}

View file

@ -1,5 +1,5 @@
/* eslint no-undef: "error"*/
/* eslint-env node*/
/* eslint no-undef: "error" */
/* eslint-env node */
'use strict';
var merge = require( 'deepmerge' ),
wdioConf = require( './wdio.conf.js' );

View file

@ -1,7 +1,7 @@
/* eslint comma-dangle: 0 */
/* eslint no-undef: "error"*/
/* eslint no-undef: "error" */
/* eslint no-console: 0 */
/* eslint-env node*/
/* eslint-env node */
'use strict';
const path = require( 'path' );