File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ public function addValue($mValue, $sType = ' '): void
206
206
if (!\is_array ($ mValue )) {
207
207
$ mValue = [$ mValue ];
208
208
}
209
- if (!$ this ->mValue instanceof RuleValueList || $ this ->mValue ->getListSeparator () !== $ sType ) {
209
+ if (!( $ this ->mValue instanceof RuleValueList) || $ this ->mValue ->getListSeparator () !== $ sType ) {
210
210
$ mCurrentValue = $ this ->mValue ;
211
211
$ this ->mValue = new RuleValueList ($ sType , $ this ->lineNumber );
212
212
if ($ mCurrentValue ) {
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ private function getRealName(): string
260
260
private function allComponentsAreNumbers (): bool
261
261
{
262
262
foreach ($ this ->aComponents as $ component ) {
263
- if (!$ component instanceof Size || $ component ->getUnit () !== null ) {
263
+ if (!( $ component instanceof Size) || $ component ->getUnit () !== null ) {
264
264
return false ;
265
265
}
266
266
}
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public function colorParsing(): void
97
97
{
98
98
$ document = self ::parsedStructureForFile ('colortest ' );
99
99
foreach ($ document ->getAllRuleSets () as $ ruleSet ) {
100
- if (!$ ruleSet instanceof DeclarationBlock) {
100
+ if (!( $ ruleSet instanceof DeclarationBlock) ) {
101
101
continue ;
102
102
}
103
103
$ selectors = $ ruleSet ->getSelectors ();
@@ -405,7 +405,7 @@ public function ruleGetters(): void
405
405
self ::assertSame ('background-color ' , $ backgroundHeaderRules [1 ]->getRule ());
406
406
$ backgroundHeaderRules = $ headerBlock ->getRulesAssoc ('background- ' );
407
407
self ::assertCount (1 , $ backgroundHeaderRules );
408
- self ::assertTrue ( $ backgroundHeaderRules ['background-color ' ]->getValue () instanceof Color );
408
+ self ::assertInstanceOf (Color::class, $ backgroundHeaderRules ['background-color ' ]->getValue ());
409
409
self ::assertSame ('rgba ' , $ backgroundHeaderRules ['background-color ' ]->getValue ()->getColorDescription ());
410
410
$ headerBlock ->removeRule ($ backgroundHeaderRules ['background-color ' ]);
411
411
$ backgroundHeaderRules = $ headerBlock ->getRules ('background- ' );
You can’t perform that action at this time.
0 commit comments