Skip to content

Commit 0e956a8

Browse files
committed
[CLEANUP] Autoformat the code (#440)
Autoformat the code with the default PhpStorm settings (and re-run `composer fix:php` to minimize formatting-related changes when code is changed and autoformatted.
1 parent 57c353b commit 0e956a8

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

src/OutputFormatter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ public function removeLastSemicolon($sString)
215215
/**
216216
*
217217
* @param array<Commentable> $aComments
218+
*
218219
* @return string
219220
*/
220221
public function comments(Commentable $oCommentable)

src/Value/Value.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public static function parseValue(ParserState $oParserState, array $aListDelimit
4343
//Build a list of delimiters and parsed values
4444
while (
4545
!($oParserState->comes('}') || $oParserState->comes(';') || $oParserState->comes('!')
46-
|| $oParserState->comes(')')
47-
|| $oParserState->comes('\\')
48-
|| $oParserState->isEnd())
46+
|| $oParserState->comes(')')
47+
|| $oParserState->comes('\\')
48+
|| $oParserState->isEnd())
4949
) {
5050
if (count($aStack) > 0) {
5151
$bFoundDelimiter = false;

tests/Comment/CommentTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ public function keepCommentsInOutput()
140140
', $oCss->render(OutputFormat::createPretty()));
141141
self::assertSame(
142142
'/** Number 11 **//**' . "\n"
143-
. ' * Comments' . "\n"
144-
. ' *//* Hell */@import url("some/url.css") screen;'
145-
. '/* Number 4 *//* Number 5 */.foo,#bar{'
146-
. '/* Number 6 */background-color:#000;}@media screen{'
147-
. '/** Number 10 **/#foo.bar{/** Number 10b **/position:absolute;}}',
143+
. ' * Comments' . "\n"
144+
. ' *//* Hell */@import url("some/url.css") screen;'
145+
. '/* Number 4 *//* Number 5 */.foo,#bar{'
146+
. '/* Number 6 */background-color:#000;}@media screen{'
147+
. '/** Number 10 **/#foo.bar{/** Number 10b **/position:absolute;}}',
148148
$oCss->render(OutputFormat::createCompact()->setRenderComments(true))
149149
);
150150
}
@@ -170,8 +170,8 @@ public function stripCommentsFromOutput()
170170
', $oCss->render(OutputFormat::createPretty()->setRenderComments(false)));
171171
self::assertSame(
172172
'@import url("some/url.css") screen;'
173-
. '.foo,#bar{background-color:#000;}'
174-
. '@media screen{#foo.bar{position:absolute;}}',
173+
. '.foo,#bar{background-color:#000;}'
174+
. '@media screen{#foo.bar{position:absolute;}}',
175175
$oCss->render(OutputFormat::createCompact())
176176
);
177177
}

0 commit comments

Comments
 (0)