Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
BeforePageDisplayHookHandler
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 onBeforePageDisplay
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace WikimediaBadges;
4
5use OutputPage;
6use Skin;
7
8/**
9 * Handler for the BeforePageDisplay hook.
10 *
11 * @since 0.1
12 *
13 * @license GPL-2.0-or-later
14 * @author Bene* < benestar.wikimedia@gmail.com >
15 */
16class BeforePageDisplayHookHandler {
17
18    /**
19     * Handler for the BeforePageDisplay hook
20     *
21     * @param OutputPage $out
22     * @param Skin $skin
23     */
24    public static function onBeforePageDisplay( OutputPage $out, Skin $skin ) {
25        $out->addModuleStyles( 'ext.wikimediaBadges' );
26    }
27
28}