Skip to content

Commit 9f34e8b

Browse files
committed
codestyle
1 parent 6b6640f commit 9f34e8b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/CSSList/CSSList.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function parseList(ParserState $oParserState, CSSList $oList)
6969
$oParserState = new ParserState($oParserState, Settings::create());
7070
}
7171
$bLenientParsing = $oParserState->getSettings()->bLenientParsing;
72-
$comments=[];
72+
$comments = [];
7373
while (!$oParserState->isEnd()) {
7474
if (empty($comments)) {
7575
$comments = $oParserState->consumeWhiteSpace();
@@ -419,11 +419,10 @@ public function render(OutputFormat $oOutputFormat)
419419
$aComments = $oContent->getComments();
420420
$c = count($aComments);
421421

422-
foreach ($aComments as $i => $oComment)
423-
{
422+
foreach ($aComments as $i => $oComment) {
424423
$sResult .= $oComment->render($oNextLevel);
425424
$sResult .= $oNextLevel->spaceAfterBlocks();
426-
if ($c-1 !== $i) {
425+
if ($c - 1 !== $i) {
427426
$sResult .= $oNextLevel->spaceAfterBlocks();
428427
}
429428
}

src/RuleSet/RuleSet.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,10 @@ public function render(OutputFormat $oOutputFormat)
277277
$aComments = $oRule->getComments();
278278
$c = count($aComments);
279279

280-
foreach ($aComments as $i => $oComment)
281-
{
280+
foreach ($aComments as $i => $oComment) {
282281
$sResult .= $oComment->render($oOutputFormat);
283282
$sResult .= $oOutputFormat->nextLevel()->spaceBeforeRules();
284-
if ($c-1 !== $i) {
283+
if ($c - 1 !== $i) {
285284
$sResult .= $oOutputFormat->nextLevel()->spaceBeforeRules();
286285
}
287286
}

0 commit comments

Comments
 (0)