From: Amir E. Aharoni Date: Sun, 27 Sep 2015 08:06:49 +0000 (+0300) Subject: Make lines short to pass phpcs in files under includes/resourceloader X-Git-Tag: 1.31.0-rc.0~9752 X-Git-Url: https://git.cyclocoop.org/admin/%7B%24plugin.url%7Cescape%7D?a=commitdiff_plain;h=4e7cc78b4f17af910658d5a969ea1ac0bea16c63;p=lhc%2Fweb%2Fwiklou.git Make lines short to pass phpcs in files under includes/resourceloader Bug: T102614 Change-Id: I2202438591e74a35570bb621f5aad3ac241fbc29 --- diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 4a9cd0e21b..c20d38642a 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -208,7 +208,12 @@ class ResourceLoader implements LoggerAwareInterface { if ( !$options['cache'] ) { $result = self::applyFilter( $filter, $data, $this->config ); } else { - $key = wfGlobalCacheKey( 'resourceloader', 'filter', $filter, self::$filterCacheVersion, md5( $data ) ); + $key = wfGlobalCacheKey( + 'resourceloader', + 'filter', + $filter, + self::$filterCacheVersion, md5( $data ) + ); $cache = wfGetCache( wfIsHHVM() ? CACHE_ACCEL : CACHE_ANYTHING ); $cacheEntry = $cache->get( $key ); if ( is_string( $cacheEntry ) ) { @@ -1380,7 +1385,8 @@ MESSAGE; * @return string */ public static function makeLoaderConditionalScript( $script ) { - return "window.RLQ = window.RLQ || []; window.RLQ.push( function () {\n" . trim( $script ) . "\n} );"; + return "window.RLQ = window.RLQ || []; window.RLQ.push( function () {\n" . + trim( $script ) . "\n} );"; } /** diff --git a/includes/resourceloader/ResourceLoaderStartUpModule.php b/includes/resourceloader/ResourceLoaderStartUpModule.php index c704c1a8ef..0553df09a2 100644 --- a/includes/resourceloader/ResourceLoaderStartUpModule.php +++ b/includes/resourceloader/ResourceLoaderStartUpModule.php @@ -356,7 +356,11 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { '$VARS.configuration' => $this->getConfigSettings( $context ), '$VARS.baseModulesUri' => self::getStartupModulesUrl( $context ), ) ); - $pairs['$CODE.registrations()'] = str_replace( "\n", "\n\t", trim( $this->getModuleRegistrations( $context ) ) ); + $pairs['$CODE.registrations()'] = str_replace( + "\n", + "\n\t", + trim( $this->getModuleRegistrations( $context ) ) + ); return strtr( $out, $pairs ); }