From a0cc99c71fa635021c4b0aac8e804ecee716a05f Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 30 May 2019 12:29:37 +0200 Subject: [PATCH] Consistently use spaces and stars in comments Change-Id: Ia8e005ec65b5a98b12fc1c079604db175b731a88 --- includes/specials/SpecialUserrights.php | 8 ++++---- resources/src/jquery.tipsy/jquery.tipsy.css | 12 ++++++------ .../src/jquery/jquery.makeCollapsible.styles.less | 8 ++++---- resources/src/jquery/jquery.suggestions.js | 2 +- resources/src/mediawiki.legacy/commonPrint.css | 2 +- resources/src/mediawiki.legacy/oldshared.css | 2 +- resources/src/mediawiki.skinning/content.css | 10 +++++----- .../src/mediawiki.special.apisandbox/apisandbox.js | 8 ++++---- tests/phpunit/includes/api/ApiEditPageTest.php | 8 ++++---- 9 files changed, 30 insertions(+), 30 deletions(-) diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 8655b1c2e8..87bc259c47 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -156,10 +156,10 @@ class UserrightsPage extends SpecialPage { $user->matchEditToken( $request->getVal( 'wpEditToken' ), $this->mTarget ) ) { /* - * If the user is blocked and they only have "partial" access - * (e.g. they don't have the userrights permission), then don't - * allow them to change any user rights. - */ + * If the user is blocked and they only have "partial" access + * (e.g. they don't have the userrights permission), then don't + * allow them to change any user rights. + */ if ( !$user->isAllowed( 'userrights' ) ) { // @TODO Should the user be blocked from changing user rights if they // are partially blocked? diff --git a/resources/src/jquery.tipsy/jquery.tipsy.css b/resources/src/jquery.tipsy/jquery.tipsy.css index c239a8ff3b..8786dd380c 100644 --- a/resources/src/jquery.tipsy/jquery.tipsy.css +++ b/resources/src/jquery.tipsy/jquery.tipsy.css @@ -16,12 +16,12 @@ max-width: 15em; border-radius: 4px; /* - -moz-box-shadow: 0px 2px 8px #cccccc; - -webkit-box-shadow: 0px 2px 8px #cccccc; - box-shadow: 0px 2px 8px #cccccc; - -ms-filter: "progid:DXImageTransform.Microsoft.DropShadow(OffX=0, OffY=2, Strength=6, Direction=90, Color='#cccccc')"; - filter: progid:DXImageTransform.Microsoft.DropShadow(OffX=0, OffY=2, Strength=6, Direction=90, Color='#cccccc'); - */ + * -moz-box-shadow: 0px 2px 8px #cccccc; + * -webkit-box-shadow: 0px 2px 8px #cccccc; + * box-shadow: 0px 2px 8px #cccccc; + * -ms-filter: "progid:DXImageTransform.Microsoft.DropShadow(OffX=0, OffY=2, Strength=6, Direction=90, Color='#cccccc')"; + * filter: progid:DXImageTransform.Microsoft.DropShadow(OffX=0, OffY=2, Strength=6, Direction=90, Color='#cccccc'); + */ } .tipsy-arrow { diff --git a/resources/src/jquery/jquery.makeCollapsible.styles.less b/resources/src/jquery/jquery.makeCollapsible.styles.less index 0f922c98ac..fd6f38cddb 100644 --- a/resources/src/jquery/jquery.makeCollapsible.styles.less +++ b/resources/src/jquery/jquery.makeCollapsible.styles.less @@ -29,9 +29,9 @@ ul.mw-collapsible:before, .mw-collapsible-toggle-li { /* - Rather than inherit any margins from the general li selector - make sure this is explicit - to avoid reflows - */ + * Rather than inherit any margins from the general li selector - make sure this is explicit + * to avoid reflows + */ display: list-item; list-style: none; margin-bottom: 0.1em; @@ -92,7 +92,7 @@ float: right; } -/* For collapsible elements in the content area, override the alginment based on the content language. */ +/* For collapsible elements in the content area, override the alginment based on the content language. */ /* @noflip */ .mw-content-ltr, .mw-content-rtl .mw-content-ltr { diff --git a/resources/src/jquery/jquery.suggestions.js b/resources/src/jquery/jquery.suggestions.js index e970c0637e..f58d73369c 100644 --- a/resources/src/jquery/jquery.suggestions.js +++ b/resources/src/jquery/jquery.suggestions.js @@ -224,7 +224,7 @@ /** * @param {Object} context - */ + */ special: function ( context ) { // Allow custom rendering - but otherwise don't do any rendering if ( typeof context.config.special.render === 'function' ) { diff --git a/resources/src/mediawiki.legacy/commonPrint.css b/resources/src/mediawiki.legacy/commonPrint.css index e58e677096..cc206b7aea 100644 --- a/resources/src/mediawiki.legacy/commonPrint.css +++ b/resources/src/mediawiki.legacy/commonPrint.css @@ -267,7 +267,7 @@ div.thumbinner { color: #666; text-align: center; /* new block formatting context, - * to clear background from floating content */ + * to clear background from floating content */ overflow: hidden; min-width: 100px; } diff --git a/resources/src/mediawiki.legacy/oldshared.css b/resources/src/mediawiki.legacy/oldshared.css index 4d67caee1e..a4a4dee500 100644 --- a/resources/src/mediawiki.legacy/oldshared.css +++ b/resources/src/mediawiki.legacy/oldshared.css @@ -93,7 +93,7 @@ div.thumbinner { font-size: 94%; text-align: center; /* new block formatting context, - * to clear background from floating content */ + * to clear background from floating content */ overflow: hidden; } diff --git a/resources/src/mediawiki.skinning/content.css b/resources/src/mediawiki.skinning/content.css index 054bc273ec..13012b01d1 100644 --- a/resources/src/mediawiki.skinning/content.css +++ b/resources/src/mediawiki.skinning/content.css @@ -79,10 +79,10 @@ table.toc td { .toctext { display: table-cell; /* - Text decorations are not propagated to the contents of inline blocks and inline tables, - according to , and 'display: table-cell' - generates an inline table when used without any parent table-rows and tables. - */ + * Text decorations are not propagated to the contents of inline blocks and inline tables, + * according to , and 'display: table-cell' + * generates an inline table when used without any parent table-rows and tables. + */ text-decoration: inherit; } @@ -138,7 +138,7 @@ div.thumbinner { font-size: 94%; text-align: center; /* new block formatting context, - * to clear background from floating content */ + * to clear background from floating content */ overflow: hidden; } diff --git a/resources/src/mediawiki.special.apisandbox/apisandbox.js b/resources/src/mediawiki.special.apisandbox/apisandbox.js index 631a5c6ac8..395fb8bd82 100644 --- a/resources/src/mediawiki.special.apisandbox/apisandbox.js +++ b/resources/src/mediawiki.special.apisandbox/apisandbox.js @@ -776,10 +776,10 @@ }; /** - * Interface to ApiSandbox UI - * - * @class mw.special.ApiSandbox - */ + * Interface to ApiSandbox UI + * + * @class mw.special.ApiSandbox + */ ApiSandbox = { /** * Initialize the UI diff --git a/tests/phpunit/includes/api/ApiEditPageTest.php b/tests/phpunit/includes/api/ApiEditPageTest.php index a35613c30e..5203451019 100644 --- a/tests/phpunit/includes/api/ApiEditPageTest.php +++ b/tests/phpunit/includes/api/ApiEditPageTest.php @@ -411,10 +411,10 @@ class ApiEditPageTest extends ApiTestCase { $count++; /* - * T43990: if the target page has a newer revision than the redirect, then editing the - * redirect while specifying 'redirect' and *not* specifying 'basetimestamp' erroneously - * caused an edit conflict to be detected. - */ + * T43990: if the target page has a newer revision than the redirect, then editing the + * redirect while specifying 'redirect' and *not* specifying 'basetimestamp' erroneously + * caused an edit conflict to be detected. + */ // assume NS_HELP defaults to wikitext $name = "Help:ApiEditPageTest_testEditConflict_redirect_T43990_$count"; -- 2.20.1