Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Wikimedia\CSS\Objects\RuleList
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
 getSeparator
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
<?php
/**
 * @file
 * @license https://opensource.org/licenses/Apache-2.0 Apache-2.0
 */
namespace Wikimedia\CSS\Objects;
/**
 * Represent a list of CSS rules
 */
class RuleList extends CSSObjectList {
    protected static $objectType = Rule::class;
    /** @inheritDoc */
    protected function getSeparator( CSSObject $left, CSSObject $right = null ) {
        return $right ? [ new Token( Token::T_WHITESPACE, [ 'significant' => false ] ) ] : [];
    }
}