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
206206 if (!\is_array ($ mValue )) {
207207 $ mValue = [$ mValue ];
208208 }
209- if (!$ this ->mValue instanceof RuleValueList || $ this ->mValue ->getListSeparator () !== $ sType ) {
209+ if (!( $ this ->mValue instanceof RuleValueList) || $ this ->mValue ->getListSeparator () !== $ sType ) {
210210 $ mCurrentValue = $ this ->mValue ;
211211 $ this ->mValue = new RuleValueList ($ sType , $ this ->lineNumber );
212212 if ($ mCurrentValue ) {
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ private function getRealName(): string
260260 private function allComponentsAreNumbers (): bool
261261 {
262262 foreach ($ this ->aComponents as $ component ) {
263- if (!$ component instanceof Size || $ component ->getUnit () !== null ) {
263+ if (!( $ component instanceof Size) || $ component ->getUnit () !== null ) {
264264 return false ;
265265 }
266266 }
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public function colorParsing(): void
9797 {
9898 $ document = self ::parsedStructureForFile ('colortest ' );
9999 foreach ($ document ->getAllRuleSets () as $ ruleSet ) {
100- if (!$ ruleSet instanceof DeclarationBlock) {
100+ if (!( $ ruleSet instanceof DeclarationBlock) ) {
101101 continue ;
102102 }
103103 $ selectors = $ ruleSet ->getSelectors ();
@@ -405,7 +405,7 @@ public function ruleGetters(): void
405405 self ::assertSame ('background-color ' , $ backgroundHeaderRules [1 ]->getRule ());
406406 $ backgroundHeaderRules = $ headerBlock ->getRulesAssoc ('background- ' );
407407 self ::assertCount (1 , $ backgroundHeaderRules );
408- self ::assertTrue ( $ backgroundHeaderRules ['background-color ' ]->getValue () instanceof Color );
408+ self ::assertInstanceOf (Color::class, $ backgroundHeaderRules ['background-color ' ]->getValue ());
409409 self ::assertSame ('rgba ' , $ backgroundHeaderRules ['background-color ' ]->getValue ()->getColorDescription ());
410410 $ headerBlock ->removeRule ($ backgroundHeaderRules ['background-color ' ]);
411411 $ backgroundHeaderRules = $ headerBlock ->getRules ('background- ' );
You can’t perform that action at this time.
0 commit comments