File tree Expand file tree Collapse file tree 15 files changed +46
-1
lines changed Expand file tree Collapse file tree 15 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ public function atRuleArgs(): string
46
46
return $ this ->arguments ;
47
47
}
48
48
49
+ /**
50
+ * @return non-empty-string
51
+ */
49
52
public function render (OutputFormat $ outputFormat ): string
50
53
{
51
54
$ formatter = $ outputFormat ->getFormatter ();
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ public function getAnimationName(): string
51
51
return $ this ->animationName ;
52
52
}
53
53
54
+ /**
55
+ * @return non-empty-string
56
+ */
54
57
public function render (OutputFormat $ outputFormat ): string
55
58
{
56
59
$ formatter = $ outputFormat ->getFormatter ();
Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ public function setComment(string $commentText): void
50
50
$ this ->commentText = $ commentText ;
51
51
}
52
52
53
+ /**
54
+ * @return non-empty-string
55
+ */
53
56
public function render (OutputFormat $ outputFormat ): string
54
57
{
55
58
return '/* ' . $ this ->commentText . '*/ ' ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ final class OutputFormat
9
9
/**
10
10
* Value format: `"` means double-quote, `'` means single-quote
11
11
*
12
- * @var string
12
+ * @var non-empty- string
13
13
*/
14
14
private $ stringQuotingType = '" ' ;
15
15
@@ -181,6 +181,8 @@ final class OutputFormat
181
181
private $ indentationLevel = 0 ;
182
182
183
183
/**
184
+ * @return non-empty-string
185
+ *
184
186
* @internal
185
187
*/
186
188
public function getStringQuotingType (): string
@@ -189,6 +191,8 @@ public function getStringQuotingType(): string
189
191
}
190
192
191
193
/**
194
+ * @param non-empty-string $quotingType
195
+ *
192
196
* @return $this fluent interface
193
197
*/
194
198
public function setStringQuotingType (string $ quotingType ): self
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ public function getLineNo(): int
55
55
return $ this ->lineNumber ;
56
56
}
57
57
58
+ /**
59
+ * @return non-empty-string
60
+ */
58
61
public function render (OutputFormat $ outputFormat ): string
59
62
{
60
63
return '@namespace ' . ($ this ->prefix === null ? '' : $ this ->prefix . ' ' )
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ public function getCharset(): string
68
68
return $ this ->charset ->getString ();
69
69
}
70
70
71
+ /**
72
+ * @return non-empty-string
73
+ */
71
74
public function render (OutputFormat $ outputFormat ): string
72
75
{
73
76
return "{$ outputFormat ->getFormatter ()->comments ($ this )}@charset {$ this ->charset ->render ($ outputFormat )}; " ;
Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ public function getLocation(): URL
65
65
return $ this ->location ;
66
66
}
67
67
68
+ /**
69
+ * @return non-empty-string
70
+ */
68
71
public function render (OutputFormat $ outputFormat ): string
69
72
{
70
73
return $ outputFormat ->getFormatter ()->comments ($ this ) . '@import ' . $ this ->location ->render ($ outputFormat )
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ public function atRuleArgs(): string
49
49
return $ this ->arguments ;
50
50
}
51
51
52
+ /**
53
+ * @return non-empty-string
54
+ */
52
55
public function render (OutputFormat $ outputFormat ): string
53
56
{
54
57
$ formatter = $ outputFormat ->getFormatter ();
Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ public function getSelectors(): array
138
138
}
139
139
140
140
/**
141
+ * @return non-empty-string
142
+ *
141
143
* @throws OutputException
142
144
*/
143
145
public function render (OutputFormat $ outputFormat ): string
Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ public function getArguments(): array
105
105
return $ this ->components ;
106
106
}
107
107
108
+ /**
109
+ * @return non-empty-string
110
+ */
108
111
public function render (OutputFormat $ outputFormat ): string
109
112
{
110
113
$ arguments = parent ::render ($ outputFormat );
Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ public function getString(): string
83
83
return $ this ->string ;
84
84
}
85
85
86
+ /**
87
+ * @return non-empty-string
88
+ */
86
89
public function render (OutputFormat $ outputFormat ): string
87
90
{
88
91
$ string = \addslashes ($ this ->string );
Original file line number Diff line number Diff line change @@ -224,6 +224,9 @@ public function getColorDescription(): string
224
224
return $ this ->getName ();
225
225
}
226
226
227
+ /**
228
+ * @return non-empty-string
229
+ */
227
230
public function render (OutputFormat $ outputFormat ): string
228
231
{
229
232
if ($ this ->shouldRenderAsHex ($ outputFormat )) {
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ public static function parse(ParserState $parserState): LineName
49
49
return new LineName ($ names , $ parserState ->currentLine ());
50
50
}
51
51
52
+ /**
53
+ * @return non-empty-string
54
+ */
52
55
public function render (OutputFormat $ outputFormat ): string
53
56
{
54
57
return '[ ' . parent ::render (OutputFormat::createCompact ()) . '] ' ;
Original file line number Diff line number Diff line change @@ -195,6 +195,9 @@ public function isRelative(): bool
195
195
return false ;
196
196
}
197
197
198
+ /**
199
+ * @return non-empty-string
200
+ */
198
201
public function render (OutputFormat $ outputFormat ): string
199
202
{
200
203
$ locale = \localeconv ();
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ public function getURL(): CSSString
73
73
return $ this ->url ;
74
74
}
75
75
76
+ /**
77
+ * @return non-empty-string
78
+ */
76
79
public function render (OutputFormat $ outputFormat ): string
77
80
{
78
81
return "url( {$ this ->url ->render ($ outputFormat )}) " ;
You can’t perform that action at this time.
0 commit comments