Merge "Make lines shorter to pass phpcs under includes/libs"
This commit is contained in:
commit
9268f95522
2 changed files with 14 additions and 2 deletions
|
|
@ -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}" );
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue