File tree Expand file tree Collapse file tree 6 files changed +23
-23
lines changed Expand file tree Collapse file tree 6 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 15
15
use Sabberworm \CSS \Property \CSSNamespace ;
16
16
use Sabberworm \CSS \Property \Import ;
17
17
use Sabberworm \CSS \Property \Selector ;
18
- use Sabberworm \CSS \Renderable ;
19
18
use Sabberworm \CSS \RuleSet \AtRuleSet ;
20
19
use Sabberworm \CSS \RuleSet \DeclarationBlock ;
21
20
use Sabberworm \CSS \RuleSet \RuleSet ;
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ interface Positionable
17
17
public function getLineNumber (): ?int ;
18
18
19
19
/**
20
- * @deprecated in version 9.0.0, will be removed in v10.0. Use `getLineNumber()` instead.
21
- *
22
20
* @return int<0, max>
21
+ *
22
+ * @deprecated in version 9.0.0, will be removed in v10.0. Use `getLineNumber()` instead.
23
23
*/
24
24
public function getLineNo (): int ;
25
25
@@ -29,9 +29,9 @@ public function getLineNo(): int;
29
29
public function getColumnNumber (): ?int ;
30
30
31
31
/**
32
- * @deprecated in version 9.0.0, will be removed in v10.0. Use `getColumnNumber()` instead.
33
- *
34
32
* @return int<0, max>
33
+ *
34
+ * @deprecated in version 9.0.0, will be removed in v10.0. Use `getColumnNumber()` instead.
35
35
*/
36
36
public function getColNo (): int ;
37
37
Original file line number Diff line number Diff line change 4
4
5
5
namespace Sabberworm \CSS \Property ;
6
6
7
- use Sabberworm \CSS \Comment \Commentable ;
8
7
use Sabberworm \CSS \CSSList \CSSListItem ;
9
- use Sabberworm \CSS \Renderable ;
10
8
11
9
/**
12
10
* Note that `CSSListItem` extends both `Commentable` and `Renderable`,
Original file line number Diff line number Diff line change 10
10
use Sabberworm \CSS \Parsing \ParserState ;
11
11
use Sabberworm \CSS \Parsing \UnexpectedEOFException ;
12
12
use Sabberworm \CSS \Parsing \UnexpectedTokenException ;
13
- use Sabberworm \CSS \Renderable ;
14
13
use Sabberworm \CSS \Rule \Rule ;
15
14
16
15
/**
Original file line number Diff line number Diff line change @@ -980,20 +980,20 @@ public function lineNumbersParsing(): void
980
980
// So a more explicit type check is required.
981
981
// TODO: tidy this up when an interface with `getLineNo()` is added.
982
982
if (
983
- !$ contentItem instanceof Charset &&
984
- !$ contentItem instanceof CSSList &&
985
- !$ contentItem instanceof CSSNamespace &&
986
- !$ contentItem instanceof Import &&
987
- !$ contentItem instanceof RuleSet
983
+ !$ contentItem instanceof Charset
984
+ && !$ contentItem instanceof CSSList
985
+ && !$ contentItem instanceof CSSNamespace
986
+ && !$ contentItem instanceof Import
987
+ && !$ contentItem instanceof RuleSet
988
988
) {
989
989
self ::fail ('Content item is not of an expected type. It \'s a ` ' . \get_class ($ contentItem ) . '`. ' );
990
990
}
991
991
$ actual [$ contentItem ->getLineNo ()] = [\get_class ($ contentItem )];
992
992
if ($ contentItem instanceof KeyFrame) {
993
993
foreach ($ contentItem ->getContents () as $ block ) {
994
994
if (
995
- !$ block instanceof CSSList &&
996
- !$ block instanceof RuleSet
995
+ !$ block instanceof CSSList
996
+ && !$ block instanceof RuleSet
997
997
) {
998
998
self ::fail (
999
999
'KeyFrame content item is not of an expected type. It \'s a ` ' . \get_class ($ block ) . '`. '
Original file line number Diff line number Diff line change @@ -42,10 +42,12 @@ public function provideCommentArray(): array
42
42
return [
43
43
'no comment ' => [[]],
44
44
'one comment ' => [[new Comment ('Is this really a spoon? ' )]],
45
- 'two comments ' => [[
46
- new Comment ('I’m a teapot. ' ),
47
- new Comment ('I’m a cafetière. ' ),
48
- ]],
45
+ 'two comments ' => [
46
+ [
47
+ new Comment ('I’m a teapot. ' ),
48
+ new Comment ('I’m a cafetière. ' ),
49
+ ],
50
+ ],
49
51
];
50
52
}
51
53
@@ -87,10 +89,12 @@ public function provideAlternativeCommentArray(): array
87
89
return [
88
90
'no comment ' => [[]],
89
91
'one comment ' => [[new Comment ('Can I eat it with my hands? ' )]],
90
- 'two comments ' => [[
91
- new Comment ('I’m a beer barrel. ' ),
92
- new Comment ('I’m a vineyard. ' ),
93
- ]],
92
+ 'two comments ' => [
93
+ [
94
+ new Comment ('I’m a beer barrel. ' ),
95
+ new Comment ('I’m a vineyard. ' ),
96
+ ],
97
+ ],
94
98
];
95
99
}
96
100
You can’t perform that action at this time.
0 commit comments