mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-12 01:10:47 +00:00
Merge "build: Updating mediawiki/mediawiki-codesniffer to 0.10.1"
This commit is contained in:
commit
1da8158426
|
@ -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": {
|
||||
|
|
|
@ -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 = [];
|
||||
|
|
|
@ -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' );
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue