From: Amir E. Aharoni Date: Sat, 26 Sep 2015 18:06:36 +0000 (+0300) Subject: Make lines shorter to pass phpcs under includes/libs X-Git-Tag: 1.31.0-rc.0~9783^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=ad275af1b3efaba08dba9629c94b7e1688ff0b12;p=lhc%2Fweb%2Fwiklou.git Make lines shorter to pass phpcs under includes/libs Bug: T102614 Change-Id: I40ca85dbc5849d6ff7ee584c82a8b56d07e095b6 --- diff --git a/includes/libs/BufferingStatsdDataFactory.php b/includes/libs/BufferingStatsdDataFactory.php index 100d2a4e38..a0020dabb3 100644 --- a/includes/libs/BufferingStatsdDataFactory.php +++ b/includes/libs/BufferingStatsdDataFactory.php @@ -57,7 +57,9 @@ class BufferingStatsdDataFactory extends StatsdDataFactory { return str_replace( array( '._', '_.' ), '.', $key ); } - public function produceStatsdData( $key, $value = 1, $metric = StatsdDataInterface::STATSD_METRIC_COUNT ) { + public function produceStatsdData( + $key, $value = 1, $metric = StatsdDataInterface::STATSD_METRIC_COUNT + ) { $entity = $this->produceStatsdDataEntity(); if ( $key !== null ) { $key = self::normalizeMetricKey( "{$this->prefix}.{$key}" ); diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index c93206ced9..6ca0fed5fb 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -304,7 +304,17 @@ class CSSMin { // Check for global @embed comment and remove it. Allow other comments to be present // before @embed (they have been replaced with placeholders at this point). $embedAll = false; - $rule = preg_replace( '/^((?:\s+|' . CSSMin::PLACEHOLDER . '(\d+)x)*)' . CSSMin::EMBED_REGEX . '\s*/', '$1', $rule, 1, $embedAll ); + $rule = preg_replace( + '/^((?:\s+|' . + CSSMin::PLACEHOLDER . + '(\d+)x)*)' . + CSSMin::EMBED_REGEX . + '\s*/', + '$1', + $rule, + 1, + $embedAll + ); // Build two versions of current rule: with remapped URLs // and with embedded data: URIs (where possible).