build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
Change-Id: Icba559465885af1169a1912f501bed56eea23ad9
This commit is contained in:
parent
6819b6e163
commit
2aacf47c8d
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"jakub-onderka/php-parallel-lint": "0.9.2",
|
"jakub-onderka/php-parallel-lint": "0.9.2",
|
||||||
"mediawiki/mediawiki-codesniffer": "0.10.0",
|
"mediawiki/mediawiki-codesniffer": "0.10.1",
|
||||||
"jakub-onderka/php-console-highlighter": "0.3.2"
|
"jakub-onderka/php-console-highlighter": "0.3.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -10,7 +10,7 @@ interface ICustomizableSkin {
|
||||||
/**
|
/**
|
||||||
* Return whether a skin option is truthy
|
* Return whether a skin option is truthy
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function getSkinOption( $key );
|
public function getSkinOption( $key );
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ class MenuBuilder {
|
||||||
* Insert an entry into the menu.
|
* Insert an entry into the menu.
|
||||||
*
|
*
|
||||||
* @param string $name A unique name identifying the menu entry
|
* @param string $name A unique name identifying the menu entry
|
||||||
* @param boolean [$isJSOnly] Whether the menu entry works without JS
|
* @param bool [$isJSOnly] Whether the menu entry works without JS
|
||||||
* @throws DomainException When the entry already exists
|
* @throws DomainException When the entry already exists
|
||||||
* @return MenuEntry
|
* @return MenuEntry
|
||||||
*/
|
*/
|
||||||
|
@ -77,7 +77,7 @@ class MenuBuilder {
|
||||||
* @param string $targetName The name of the existing entry to insert
|
* @param string $targetName The name of the existing entry to insert
|
||||||
* the new entry after
|
* the new entry after
|
||||||
* @param string $name The name of the new entry
|
* @param string $name The name of the new entry
|
||||||
* @param boolean [$isJSOnly] Whether the entry works without JS
|
* @param bool [$isJSOnly] Whether the entry works without JS
|
||||||
* @throws DomainException When the existing entry doesn't exist
|
* @throws DomainException When the existing entry doesn't exist
|
||||||
* @return MenuEntry
|
* @return MenuEntry
|
||||||
*/
|
*/
|
||||||
|
@ -109,7 +109,7 @@ class MenuEntry {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param boolean $isJSOnly Whether the entry works without JS
|
* @param bool $isJSOnly Whether the entry works without JS
|
||||||
*/
|
*/
|
||||||
public function __construct( $name, $isJSOnly ) {
|
public function __construct( $name, $isJSOnly ) {
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
|
@ -128,7 +128,7 @@ class MenuEntry {
|
||||||
* Gets whether the entry should only be shown if JavaScript is disabled
|
* Gets whether the entry should only be shown if JavaScript is disabled
|
||||||
* in the client.
|
* in the client.
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isJSOnly() {
|
public function isJSOnly() {
|
||||||
return $this->isJSOnly;
|
return $this->isJSOnly;
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
* Extended Template class of BaseTemplate for mobile devices
|
* Extended Template class of BaseTemplate for mobile devices
|
||||||
*/
|
*/
|
||||||
class MinervaTemplate extends BaseTemplate {
|
class MinervaTemplate extends BaseTemplate {
|
||||||
/** @var boolean Specify whether the page is a special page */
|
/** @var bool Specify whether the page is a special page */
|
||||||
protected $isSpecialPage;
|
protected $isSpecialPage;
|
||||||
|
|
||||||
/** @var boolean Whether or not the user is on the Special:MobileMenu page */
|
/** @var bool Whether or not the user is on the Special:MobileMenu page */
|
||||||
protected $isSpecialMobileMenuPage;
|
protected $isSpecialMobileMenuPage;
|
||||||
|
|
||||||
/** @var boolean Specify whether the page is main page */
|
/** @var bool Specify whether the page is main page */
|
||||||
protected $isMainPage;
|
protected $isMainPage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,7 +24,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
||||||
public $skinname = 'minerva';
|
public $skinname = 'minerva';
|
||||||
/** @var string $template Name of this used template */
|
/** @var string $template Name of this used template */
|
||||||
public $template = 'MinervaTemplate';
|
public $template = 'MinervaTemplate';
|
||||||
/** @var boolean $useHeadElement Specify whether show head elements */
|
/** @var bool $useHeadElement Specify whether show head elements */
|
||||||
public $useHeadElement = true;
|
public $useHeadElement = true;
|
||||||
/** @var ContentHandler Content handler of page; only access through getContentHandler */
|
/** @var ContentHandler Content handler of page; only access through getContentHandler */
|
||||||
protected $contentHandler = null;
|
protected $contentHandler = null;
|
||||||
|
@ -92,7 +92,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
||||||
/**
|
/**
|
||||||
* Return whether a skin option is truthy
|
* Return whether a skin option is truthy
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function getSkinOption( $key ) {
|
public function getSkinOption( $key ) {
|
||||||
return $this->skinOptions[$key];
|
return $this->skinOptions[$key];
|
||||||
|
@ -189,7 +189,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
||||||
* is truthy.
|
* is truthy.
|
||||||
*
|
*
|
||||||
* @param string $action
|
* @param string $action
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function isAllowedPageAction( $action ) {
|
protected function isAllowedPageAction( $action ) {
|
||||||
$title = $this->getTitle();
|
$title = $this->getTitle();
|
||||||
|
@ -1137,7 +1137,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
||||||
* This is mostly the same check that sets wgIsProbablyEditable later in the page output
|
* This is mostly the same check that sets wgIsProbablyEditable later in the page output
|
||||||
* process.
|
* process.
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function isCurrentPageEditableByUser() {
|
protected function isCurrentPageEditableByUser() {
|
||||||
$title = $this->getTitle();
|
$title = $this->getTitle();
|
||||||
|
@ -1152,7 +1152,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
||||||
* This is mostly the same check that sets wgIsProbablyEditable later in the page output
|
* This is mostly the same check that sets wgIsProbablyEditable later in the page output
|
||||||
* process.
|
* process.
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function isCurrentPageContentModelEditable() {
|
protected function isCurrentPageContentModelEditable() {
|
||||||
$contentHandler = $this->getContentHandler();
|
$contentHandler = $this->getContentHandler();
|
||||||
|
@ -1214,7 +1214,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true, if the page can have a talk page and user is logged in.
|
* Returns true, if the page can have a talk page and user is logged in.
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function isTalkAllowed() {
|
protected function isTalkAllowed() {
|
||||||
$title = $this->getTitle();
|
$title = $this->getTitle();
|
||||||
|
@ -1226,7 +1226,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns true, if the talk page of this page is wikitext-based.
|
* Returns true, if the talk page of this page is wikitext-based.
|
||||||
* @return boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function isWikiTextTalkPage() {
|
protected function isWikiTextTalkPage() {
|
||||||
$title = $this->getTitle();
|
$title = $this->getTitle();
|
||||||
|
|
|
@ -15,14 +15,12 @@
|
||||||
<file>.</file>
|
<file>.</file>
|
||||||
<arg name="extensions" value="php,php5,inc"/>
|
<arg name="extensions" value="php,php5,inc"/>
|
||||||
<arg name="encoding" value="UTF-8"/>
|
<arg name="encoding" value="UTF-8"/>
|
||||||
<exclude-pattern>vendor</exclude-pattern>
|
|
||||||
<exclude-pattern>node_modules</exclude-pattern>
|
|
||||||
|
|
||||||
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
|
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="equalsSpacing" value="1" />
|
<property name="equalsSpacing" value="1" />
|
||||||
<property name="requiredSpacesAfterOpen" value="1"/>
|
<property name="requiredSpacesAfterOpen" value="1"/>
|
||||||
<property name="requiredSpacesBeforeClose" value="1" />
|
<property name="requiredSpacesBeforeClose" value="1" />
|
||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
Loading…
Reference in New Issue