Skip to content

Commit e58b67c

Browse files
authored
[CLEANUP] Reformat the code with the PER-2 configuration (#1391)
1 parent e94cb16 commit e58b67c

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

src/Comment/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
namespace Sabberworm\CSS\Comment;
66

77
use Sabberworm\CSS\OutputFormat;
8-
use Sabberworm\CSS\Renderable;
98
use Sabberworm\CSS\Position\Position;
109
use Sabberworm\CSS\Position\Positionable;
10+
use Sabberworm\CSS\Renderable;
1111

1212
class Comment implements Positionable, Renderable
1313
{

src/RuleSet/DeclarationBlock.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,29 +190,29 @@ public function addRule(Rule $ruleToAdd, ?Rule $sibling = null): void
190190
}
191191

192192
/**
193-
* @see RuleSet::getRules()
194-
*
195193
* @return array<int<0, max>, Rule>
194+
*
195+
* @see RuleSet::getRules()
196196
*/
197197
public function getRules(?string $searchPattern = null): array
198198
{
199199
return $this->ruleSet->getRules($searchPattern);
200200
}
201201

202202
/**
203-
* @see RuleSet::setRules()
204-
*
205203
* @param array<Rule> $rules
204+
*
205+
* @see RuleSet::setRules()
206206
*/
207207
public function setRules(array $rules): void
208208
{
209209
$this->ruleSet->setRules($rules);
210210
}
211211

212212
/**
213-
* @see RuleSet::getRulesAssoc()
214-
*
215213
* @return array<string, Rule>
214+
*
215+
* @see RuleSet::getRulesAssoc()
216216
*/
217217
public function getRulesAssoc(?string $searchPattern = null): array
218218
{

tests/OutputFormatTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
final class OutputFormatTest extends TestCase
1717
{
1818
private const TEST_CSS = "\n"
19-
. ".main, .test {\n"
20-
. "\tfont: italic normal bold 16px/1.2 \"Helvetica\", Verdana, sans-serif;\n"
21-
. "\tbackground: white;\n"
22-
. "}\n"
23-
. "\n"
24-
. "@media screen {\n"
25-
. "\t.main {\n"
26-
. "\t\tbackground-size: 100% 100%;\n"
27-
. "\t\tfont-size: 1.3em;\n"
28-
. "\t\tbackground-color: #fff;\n"
29-
. "\t}\n"
30-
. "}\n";
19+
. ".main, .test {\n"
20+
. "\tfont: italic normal bold 16px/1.2 \"Helvetica\", Verdana, sans-serif;\n"
21+
. "\tbackground: white;\n"
22+
. "}\n"
23+
. "\n"
24+
. "@media screen {\n"
25+
. "\t.main {\n"
26+
. "\t\tbackground-size: 100% 100%;\n"
27+
. "\t\tfont-size: 1.3em;\n"
28+
. "\t\tbackground-color: #fff;\n"
29+
. "\t}\n"
30+
. "}\n";
3131

3232
/**
3333
* @var Parser

tests/Unit/Value/CalcFunctionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function parseSimpleCalc(): void
4747
self::assertSame(20.0, $components[2]->getSize());
4848
self::assertSame('px', $components[2]->getUnit());
4949
}
50+
5051
/**
5152
* @test
5253
*/

0 commit comments

Comments
 (0)