@@ -57,12 +57,10 @@ public function __construct($iLineNo = 0)
5757 }
5858
5959 /**
60- * @return void
61- *
6260 * @throws UnexpectedTokenException
6361 * @throws SourceException
6462 */
65- public static function parseList (ParserState $ oParserState , CSSList $ oList )
63+ public static function parseList (ParserState $ oParserState , CSSList $ oList ): void
6664 {
6765 $ bIsRoot = $ oList instanceof Document;
6866 if (is_string ($ oParserState )) {
@@ -260,10 +258,8 @@ public function getLineNo()
260258 * Prepends an item to the list of contents.
261259 *
262260 * @param RuleSet|CSSList|Import|Charset $oItem
263- *
264- * @return void
265261 */
266- public function prepend ($ oItem )
262+ public function prepend ($ oItem ): void
267263 {
268264 array_unshift ($ this ->aContents , $ oItem );
269265 }
@@ -272,10 +268,8 @@ public function prepend($oItem)
272268 * Appends an item to the list of contents.
273269 *
274270 * @param RuleSet|CSSList|Import|Charset $oItem
275- *
276- * @return void
277271 */
278- public function append ($ oItem )
272+ public function append ($ oItem ): void
279273 {
280274 $ this ->aContents [] = $ oItem ;
281275 }
@@ -286,10 +280,8 @@ public function append($oItem)
286280 * @param int $iOffset
287281 * @param int $iLength
288282 * @param array<int, RuleSet|CSSList|Import|Charset> $mReplacement
289- *
290- * @return void
291283 */
292- public function splice ($ iOffset , $ iLength = null , $ mReplacement = null )
284+ public function splice ($ iOffset , $ iLength = null , $ mReplacement = null ): void
293285 {
294286 array_splice ($ this ->aContents , $ iOffset , $ iLength , $ mReplacement );
295287 }
@@ -355,7 +347,7 @@ public function replace($oOldItem, $mNewItem)
355347 /**
356348 * @param array<int, RuleSet|Import|Charset|CSSList> $aContents
357349 */
358- public function setContents (array $ aContents )
350+ public function setContents (array $ aContents ): void
359351 {
360352 $ this ->aContents = [];
361353 foreach ($ aContents as $ content ) {
@@ -368,10 +360,8 @@ public function setContents(array $aContents)
368360 *
369361 * @param DeclarationBlock|array<array-key, Selector>|string $mSelector the selectors to match
370362 * @param bool $bRemoveAll whether to stop at the first declaration block found or remove all blocks
371- *
372- * @return void
373363 */
374- public function removeDeclarationBlockBySelector ($ mSelector , $ bRemoveAll = false )
364+ public function removeDeclarationBlockBySelector ($ mSelector , $ bRemoveAll = false ): void
375365 {
376366 if ($ mSelector instanceof DeclarationBlock) {
377367 $ mSelector = $ mSelector ->getSelectors ();
@@ -466,10 +456,8 @@ public function getContents()
466456
467457 /**
468458 * @param array<array-key, Comment> $aComments
469- *
470- * @return void
471459 */
472- public function addComments (array $ aComments )
460+ public function addComments (array $ aComments ): void
473461 {
474462 $ this ->aComments = array_merge ($ this ->aComments , $ aComments );
475463 }
@@ -484,10 +472,8 @@ public function getComments()
484472
485473 /**
486474 * @param array<array-key, Comment> $aComments
487- *
488- * @return void
489475 */
490- public function setComments (array $ aComments )
476+ public function setComments (array $ aComments ): void
491477 {
492478 $ this ->aComments = $ aComments ;
493479 }
0 commit comments