mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-23 22:03:39 +00:00
build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I8ce5f16f496f048f6bcf587c545745193dbfe151
This commit is contained in:
parent
72d4a103fd
commit
e8d227b78e
|
@ -2,8 +2,11 @@
|
|||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="Generic.Files.OneObjectStructurePerFile.MultipleFound" />
|
||||
<exclude name="MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException" />
|
||||
<exclude name="MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedExceptionMessage" />
|
||||
<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName"/>
|
||||
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment"/>
|
||||
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
|
||||
</rule>
|
||||
<file>.</file>
|
||||
<arg name="extensions" value="php,php5,inc"/>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"require-dev": {
|
||||
"jakub-onderka/php-parallel-lint": "1.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "24.0.0",
|
||||
"mediawiki/mediawiki-codesniffer": "28.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/minus-x": "0.3.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.6.1"
|
||||
|
|
|
@ -23,7 +23,7 @@ use Html;
|
|||
use MessageLocalizer;
|
||||
use MinervaUI;
|
||||
use SpecialPage;
|
||||
use \MediaWiki\Special\SpecialPageFactory;
|
||||
use MediaWiki\Special\SpecialPageFactory;
|
||||
|
||||
/**
|
||||
* Director responsible for building Main Menu
|
||||
|
|
|
@ -71,6 +71,7 @@ class ToolbarBuilder {
|
|||
* @var LanguagesHelper
|
||||
*/
|
||||
private $languagesHelper;
|
||||
|
||||
/**
|
||||
* Build Group containing icons for toolbar
|
||||
* @param Title $title Article title user is currently browsing
|
||||
|
|
|
@ -333,6 +333,7 @@ class SkinMinerva extends SkinTemplate {
|
|||
$tpl->set( 'userNotificationsHTML', $badge );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Rewrites the language list so that it cannot be contaminated by other extensions with things
|
||||
* other than languages
|
||||
|
@ -481,6 +482,7 @@ class SkinMinerva extends SkinTemplate {
|
|||
$attrs[ 'class' ] = 'tagline';
|
||||
return Html::element( 'div', $attrs, $tagline );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the HTML representing the heading.
|
||||
* @return string HTML for header
|
||||
|
|
|
@ -19,12 +19,15 @@ class EchoNotifUser {
|
|||
$this->lastUnreadMessageTime = $lastUnreadMessageTime;
|
||||
$this->echoNotificationCount = $echoNotificationCount;
|
||||
}
|
||||
|
||||
public function getLastUnreadAlertTime() {
|
||||
return $this->lastUnreadAlertTime;
|
||||
}
|
||||
|
||||
public function getLastUnreadMessageTime() {
|
||||
return $this->lastUnreadMessageTime;
|
||||
}
|
||||
|
||||
public function getNotificationCount() {
|
||||
return $this->echoNotificationCount;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue