Merge "Point skins/extension READMEs to Phabricator"
[lhc/web/wiklou.git] / includes / resourceloader / ResourceLoaderSiteModule.php
index 19e0bae..e01d0a1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Resource loader module for site customizations.
+ * ResourceLoader module for site customizations.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -34,26 +34,17 @@ class ResourceLoaderSiteModule extends ResourceLoaderWikiModule {
         * @return array List of pages
         */
        protected function getPages( ResourceLoaderContext $context ) {
-               $pages = array();
+               $pages = [];
                if ( $this->getConfig()->get( 'UseSiteJs' ) ) {
-                       $pages['MediaWiki:Common.js'] = array( 'type' => 'script' );
-                       $pages['MediaWiki:' . ucfirst( $context->getSkin() ) . '.js'] = array( 'type' => 'script' );
+                       $pages['MediaWiki:Common.js'] = [ 'type' => 'script' ];
+                       $pages['MediaWiki:' . ucfirst( $context->getSkin() ) . '.js'] = [ 'type' => 'script' ];
                }
                if ( $this->getConfig()->get( 'UseSiteCss' ) ) {
-                       $pages['MediaWiki:Common.css'] = array( 'type' => 'style' );
-                       $pages['MediaWiki:' . ucfirst( $context->getSkin() ) . '.css'] = array( 'type' => 'style' );
-                       $pages['MediaWiki:Print.css'] = array( 'type' => 'style', 'media' => 'print' );
+                       $pages['MediaWiki:Common.css'] = [ 'type' => 'style' ];
+                       $pages['MediaWiki:' . ucfirst( $context->getSkin() ) . '.css'] = [ 'type' => 'style' ];
+                       $pages['MediaWiki:Print.css'] = [ 'type' => 'style', 'media' => 'print' ];
 
                }
                return $pages;
        }
-
-       /**
-        * Get group name
-        *
-        * @return string
-        */
-       public function getGroup() {
-               return 'site';
-       }
 }