resourceloader: Use parent getDefinitionSummary() in ResourceLoaderFileModule
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 23 Mar 2015 03:56:35 +0000 (03:56 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 23 Mar 2015 04:09:13 +0000 (04:09 +0000)
Right now ResourceLoaderModule::getDefinitionSummary just returns an array
with the class name, but may be extended in the future. Either way, it shouldn't
be repeated in the subclass.

Change-Id: Ic1d58f8d330fb2176daffc7ad39bc0751c196181

includes/resourceloader/ResourceLoaderFileModule.php

index fbca08e..0104fe9 100644 (file)
@@ -587,9 +587,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
         * @return array
         */
        public function getDefinitionSummary( ResourceLoaderContext $context ) {
-               $summary = array(
-                       'class' => get_class( $this ),
-               );
+               $summary = parent::getDefinitionSummary( $context );
                foreach ( array(
                        'scripts',
                        'debugScripts',