Skip to content

Commit

Permalink
[CLEANUP] rector: Long array to short array and Change list() to arra…
Browse files Browse the repository at this point in the history
…y destruct (MyIntervals#553)

This applies the rule LongArrayToShortArrayRector.
For details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#longarraytoshortarrayrector

This applies the rule ListToArrayDestructRector
For details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#listtoarraydestructrector

Signed-off-by: Daniel Ziegenberg <[email protected]>
  • Loading branch information
ziegenberg authored Jun 17, 2024
1 parent 3c2e4e0 commit a07c51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RuleSet/DeclarationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public function expandFontShorthand()
) {
$aFontProperties['font-weight'] = $mValue;
} elseif ($mValue instanceof RuleValueList && $mValue->getListSeparator() == '/') {
list($oSize, $oHeight) = $mValue->getListComponents();
[$oSize, $oHeight] = $mValue->getListComponents();
$aFontProperties['font-size'] = $oSize;
$aFontProperties['line-height'] = $oHeight;
} elseif ($mValue instanceof Size && $mValue->getUnit() !== null) {
Expand Down

0 comments on commit a07c51a

Please sign in to comment.