# 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
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) */
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 */
|| $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 );
: "";
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 );
display: block;
}
-/* RTL specific CSS ends here **/
+/** RTL specific CSS ends here **/
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 );
#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,
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;
}
-/* global moment*/
+/* global moment */
( function ( $, mw, moment ) {
/**
$before = 'n';
} elseif ( $prevResults[$test] == 1 ) {
$before = 'p';
- } else /* if ( $prevResults[$test] == 0 )*/ {
+ } else /* if ( $prevResults[$test] == 0 ) */ {
$before = 'f';
}
$after = 'n';
} elseif ( $this->results[$test] == 1 ) {
$after = 'p';
- } else /*if ( $this->results[$test] == 0 ) */ {
+ } else /* if ( $this->results[$test] == 0 ) */ {
$after = 'f';
}
-/* 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' );
/* 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' );