Skip to content

Commit 2fbcff0

Browse files
authored
Merge branch 'master' into cleanup/imports
2 parents d02e207 + 65c0ed6 commit 2fbcff0

19 files changed

+16
-32
lines changed

src/Comment/Commentable.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
interface Commentable
66
{
7-
87
/**
98
* @param array $aComments Array of comments.
109
*/

src/Property/KeyframeSelector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
class KeyframeSelector extends Selector
66
{
7-
87
//Regexes for specificity calculations
98

109
const SELECTOR_VALIDATION_RX = '/

src/Property/Selector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99
class Selector
1010
{
11-
1211
//Regexes for specificity calculations
1312
const NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX = '/
1413
(\.[\w]+) # classes

src/Renderable.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
interface Renderable
66
{
7+
/**
8+
* @return string
9+
*/
710
public function __toString();
811

912
/**

src/Rule/Rule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
class Rule implements Renderable, Commentable
1717
{
18-
1918
private $sRule;
2019

2120
private $mValue;

src/RuleSet/DeclarationBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static function parse(ParserState $oParserState, $oList = null)
5151
}
5252
}
5353
} while (!in_array($oParserState->peek(), ['{', '}']) || $sStringWrapperChar !== false);
54-
$oResult->setSelector(implode('', $aSelectorParts), $oList);
54+
$oResult->setSelectors(implode('', $aSelectorParts), $oList);
5555
if ($oParserState->comes('{')) {
5656
$oParserState->consume(1);
5757
}

src/RuleSet/RuleSet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
abstract class RuleSet implements Renderable, Commentable
1717
{
18-
1918
private $aRules;
2019

2120
protected $iLineNo;
@@ -129,7 +128,8 @@ public function getRules($mRule = null)
129128
// or the search rule ends in “-” and the found rule starts with the search rule.
130129
if (
131130
!$mRule || $sName === $mRule
132-
|| (strrpos($mRule, '-') === strlen($mRule) - strlen('-')
131+
|| (
132+
strrpos($mRule, '-') === strlen($mRule) - strlen('-')
133133
&& (strpos($sName, $mRule) === 0 || $sName === substr($mRule, 0, -1))
134134
)
135135
) {

src/Value/CSSFunction.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
class CSSFunction extends ValueList
88
{
9-
109
protected $sName;
1110

1211
/**

src/Value/CSSString.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
class CSSString extends PrimitiveValue
1010
{
11-
1211
private $sString;
1312

1413
public function __construct($sString, $iLineNo = 0)

src/Value/Color.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
class Color extends CSSFunction
99
{
10-
1110
public function __construct(array $aColor, $iLineNo = 0)
1211
{
1312
parent::__construct(implode('', array_keys($aColor)), $aColor, ',', $iLineNo);

0 commit comments

Comments
 (0)