Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Comment/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
namespace Sabberworm\CSS\Comment;

use Sabberworm\CSS\OutputFormat;
use Sabberworm\CSS\Renderable;
use Sabberworm\CSS\Position\Position;
use Sabberworm\CSS\Position\Positionable;
use Sabberworm\CSS\Renderable;

class Comment implements Positionable, Renderable
{
Expand Down
12 changes: 6 additions & 6 deletions src/RuleSet/DeclarationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,29 +190,29 @@ public function addRule(Rule $ruleToAdd, ?Rule $sibling = null): void
}

/**
* @see RuleSet::getRules()
*
* @return array<int<0, max>, Rule>
*
* @see RuleSet::getRules()
*/
public function getRules(?string $searchPattern = null): array
{
return $this->ruleSet->getRules($searchPattern);
}

/**
* @see RuleSet::setRules()
*
* @param array<Rule> $rules
*
* @see RuleSet::setRules()
*/
public function setRules(array $rules): void
{
$this->ruleSet->setRules($rules);
}

/**
* @see RuleSet::getRulesAssoc()
*
* @return array<string, Rule>
*
* @see RuleSet::getRulesAssoc()
*/
public function getRulesAssoc(?string $searchPattern = null): array
{
Expand Down
24 changes: 12 additions & 12 deletions tests/OutputFormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
final class OutputFormatTest extends TestCase
{
private const TEST_CSS = "\n"
. ".main, .test {\n"
. "\tfont: italic normal bold 16px/1.2 \"Helvetica\", Verdana, sans-serif;\n"
. "\tbackground: white;\n"
. "}\n"
. "\n"
. "@media screen {\n"
. "\t.main {\n"
. "\t\tbackground-size: 100% 100%;\n"
. "\t\tfont-size: 1.3em;\n"
. "\t\tbackground-color: #fff;\n"
. "\t}\n"
. "}\n";
. ".main, .test {\n"
. "\tfont: italic normal bold 16px/1.2 \"Helvetica\", Verdana, sans-serif;\n"
. "\tbackground: white;\n"
. "}\n"
. "\n"
. "@media screen {\n"
. "\t.main {\n"
. "\t\tbackground-size: 100% 100%;\n"
. "\t\tfont-size: 1.3em;\n"
. "\t\tbackground-color: #fff;\n"
. "\t}\n"
. "}\n";

/**
* @var Parser
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/Value/CalcFunctionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function parseSimpleCalc(): void
self::assertSame(20.0, $components[2]->getSize());
self::assertSame('px', $components[2]->getUnit());
}

/**
* @test
*/
Expand Down