Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/126964
Change subject: Parameter type hints
......................................................................
Parameter type hints
Change-Id: I74fee5aff8fc45d12c84abee62d43aedd206db44
---
M CSS.php
1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CSS
refs/changes/64/126964/1
diff --git a/CSS.php b/CSS.php
index bfdb97e..1aea7d7 100644
--- a/CSS.php
+++ b/CSS.php
@@ -47,6 +47,12 @@
'remoteExtPath' => 'CSS',
);
+/**
+ * @param Parser $parser
+ * @param string $css
+ * @return string
+ * @throws MWException
+ */
function wfCSSRender( &$parser, $css ) {
global $wgCSSPath, $wgStylePath, $wgCSSIdentifier;
@@ -110,11 +116,20 @@
return '';
}
+/**
+ * @param Parser $parser
+ * @return bool
+ */
function wfCSSParserFirstCallInit( $parser ) {
$parser->setFunctionHook( 'css', 'wfCSSRender' );
return true;
}
+/**
+ * @param RawPage $rawPage
+ * @param string $text
+ * @return bool
+ */
function wfCSSRawPageViewBeforeOutput( &$rawPage, &$text ) {
global $wgCSSIdentifier;
--
To view, visit https://gerrit.wikimedia.org/r/126964
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I74fee5aff8fc45d12c84abee62d43aedd206db44
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CSS
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits