From ad275af1b3efaba08dba9629c94b7e1688ff0b12 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Sat, 26 Sep 2015 21:06:36 +0300 Subject: [PATCH] Make lines shorter to pass phpcs under includes/libs Bug: T102614 Change-Id: I40ca85dbc5849d6ff7ee584c82a8b56d07e095b6 --- includes/libs/BufferingStatsdDataFactory.php | 4 +++- includes/libs/CSSMin.php | 12 +++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) 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). -- 2.20.1