From 7a3418ae336379a5e44211f8b092b6411eb6ab15 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 30 Mar 2017 21:53:50 +0200 Subject: [PATCH] Use consistent spaces at start and end of comments Change-Id: Idbb09b69aa1ef4e46433319aaea62f34f0dbc038 --- includes/EditPage.php | 2 +- includes/media/IPTC.php | 4 ++-- includes/page/Article.php | 2 +- includes/widget/search/InterwikiSearchResultSetWidget.php | 2 +- resources/src/mediawiki.legacy/oldshared.css | 2 +- .../mediawiki.special.search.interwikiwidget.styles.less | 4 ++-- .../mediawiki.special/mediawiki.special.userlogin.common.css | 2 +- resources/src/mediawiki/mediawiki.Upload.BookletLayout.js | 2 +- tests/parser/DbTestPreviewer.php | 4 ++-- tests/selenium/wdio.conf.jenkins.js | 4 ++-- tests/selenium/wdio.conf.js | 4 ++-- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 7d19e94ad7..e4d217c979 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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 diff --git a/includes/media/IPTC.php b/includes/media/IPTC.php index f93b1b59a5..b7ebfc93a5 100644 --- a/includes/media/IPTC.php +++ b/includes/media/IPTC.php @@ -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 */ diff --git a/includes/page/Article.php b/includes/page/Article.php index 60676490c4..ee0ff225ca 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -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 ); diff --git a/includes/widget/search/InterwikiSearchResultSetWidget.php b/includes/widget/search/InterwikiSearchResultSetWidget.php index b1b8c730c0..1911c7909f 100644 --- a/includes/widget/search/InterwikiSearchResultSetWidget.php +++ b/includes/widget/search/InterwikiSearchResultSetWidget.php @@ -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 ); diff --git a/resources/src/mediawiki.legacy/oldshared.css b/resources/src/mediawiki.legacy/oldshared.css index 7c4dbb1ce7..7b2d71106e 100644 --- a/resources/src/mediawiki.legacy/oldshared.css +++ b/resources/src/mediawiki.legacy/oldshared.css @@ -459,4 +459,4 @@ html > body.rtl .mw-body ul#filetoc { display: block; } -/* RTL specific CSS ends here **/ +/** RTL specific CSS ends here **/ diff --git a/resources/src/mediawiki.special/mediawiki.special.search.interwikiwidget.styles.less b/resources/src/mediawiki.special/mediawiki.special.search.interwikiwidget.styles.less index 0b0f912b0e..d5e1c48fd9 100644 --- a/resources/src/mediawiki.special/mediawiki.special.search.interwikiwidget.styles.less +++ b/resources/src/mediawiki.special/mediawiki.special.search.interwikiwidget.styles.less @@ -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, diff --git a/resources/src/mediawiki.special/mediawiki.special.userlogin.common.css b/resources/src/mediawiki.special/mediawiki.special.userlogin.common.css index 9da6c83458..4a48f460c1 100644 --- a/resources/src/mediawiki.special/mediawiki.special.userlogin.common.css +++ b/resources/src/mediawiki.special/mediawiki.special.userlogin.common.css @@ -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; } diff --git a/resources/src/mediawiki/mediawiki.Upload.BookletLayout.js b/resources/src/mediawiki/mediawiki.Upload.BookletLayout.js index 2f90fe6847..3fcbb3f460 100644 --- a/resources/src/mediawiki/mediawiki.Upload.BookletLayout.js +++ b/resources/src/mediawiki/mediawiki.Upload.BookletLayout.js @@ -1,4 +1,4 @@ -/* global moment*/ +/* global moment */ ( function ( $, mw, moment ) { /** diff --git a/tests/parser/DbTestPreviewer.php b/tests/parser/DbTestPreviewer.php index 5ce0b34e6c..784c29cf4b 100644 --- a/tests/parser/DbTestPreviewer.php +++ b/tests/parser/DbTestPreviewer.php @@ -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'; } diff --git a/tests/selenium/wdio.conf.jenkins.js b/tests/selenium/wdio.conf.jenkins.js index 4491c8e1d5..6049eb2505 100644 --- a/tests/selenium/wdio.conf.jenkins.js +++ b/tests/selenium/wdio.conf.jenkins.js @@ -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' ); diff --git a/tests/selenium/wdio.conf.js b/tests/selenium/wdio.conf.js index b5dc61ad36..f132899bdd 100644 --- a/tests/selenium/wdio.conf.js +++ b/tests/selenium/wdio.conf.js @@ -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' ); -- 2.20.1