Merge "build: Updating mediawiki/mediawiki-codesniffer to 0.10.1"

This commit is contained in:
jenkins-bot 2017-07-26 22:10:23 +00:00 committed by Gerrit Code Review
commit 1da8158426
5 changed files with 9 additions and 10 deletions

View file

@ -1,7 +1,7 @@
{
"require-dev": {
"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"
},
"scripts": {

View file

@ -21,7 +21,7 @@ class FooterHooks {
*
* @param array &$vars variables to be added into the output of OutputPage::headElement.
* @param OutputPage $out OutputPage instance calling the hook
* @return boolean Always <code>true</code>
* @return bool Always <code>true</code>
*/
public static function onMakeGlobalVariablesScript( &$vars, OutputPage $out ) {
$config = MediaWikiServices::getInstance()->getConfigFactory()
@ -102,7 +102,7 @@ class FooterHooks {
*
* @param OutputPage $out The OutputPage object
* @param Skin $skin Skin object that will be used to generate the page
* @return boolean Always <code>true</code>
* @return bool Always <code>true</code>
*/
public static function onBeforePageDisplay( OutputPage $out, Skin $skin ) {
$config = MediaWikiServices::getInstance()->getConfigFactory()
@ -153,7 +153,7 @@ class FooterHooks {
* @see https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderGetConfigVars
*
* @param array &$vars Array of variables to be added into the output of the startup module.
* @return boolean
* @return bool
*/
public static function onResourceLoaderGetConfigVars( &$vars ) {
$config = MediaWikiServices::getInstance()->getConfigFactory()
@ -180,7 +180,7 @@ class FooterHooks {
* @see https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderRegisterModules
*
* @param ResourceLoader &$resourceLoader The ResourceLoader object
* @return boolean
* @return bool
*/
public static function onResourceLoaderRegisterModules( ResourceLoader &$resourceLoader ) {
$dependencies = [];

View file

@ -15,7 +15,7 @@ class Hooks {
* {@see Hooks::onFuncRelated}).
*
* @param Parser &$parser Paser object
* @return boolean Always <code>true</code>
* @return bool Always <code>true</code>
*/
public static function onParserFirstCallInit( Parser &$parser ) {
$parser->setFunctionHook( 'related', 'RelatedArticles\\Hooks::onFuncRelated' );
@ -64,7 +64,7 @@ class Hooks {
*
* @param OutputPage &$out the OutputPage object
* @param ParserOutput $parserOutput ParserOutput object
* @return boolean Always <code>true</code>
* @return bool Always <code>true</code>
*/
public static function onOutputPageParserOutput( OutputPage &$out, ParserOutput $parserOutput ) {
$related = $parserOutput->getExtensionData( 'RelatedArticles' );

View file

@ -19,7 +19,7 @@ class SidebarHooks {
*
* @param Skin $skin Skin object
* @param array &$bar Sidebar contents
* @return boolean Always <code>true</code>
* @return bool Always <code>true</code>
*/
public static function onSidebarBeforeOutput( Skin $skin, &$bar ) {
$out = $skin->getOutput();

View file

@ -4,6 +4,5 @@
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="utf8" />
<exclude-pattern>vendor</exclude-pattern>
<arg name="encoding" value="UTF-8" />
</ruleset>