From 717bc965a36bc27eddd9d38a05741ad0ffee64f4 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 14 Jun 2021 13:56:49 +0200 Subject: [PATCH] Split long lines in `DeclarationBlockTest` This is the last step required to pass the PSR-12 rule set of PHP_CodeSniffer. --- tests/RuleSet/DeclarationBlockTest.php | 39 +++++++++++++++++--------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/tests/RuleSet/DeclarationBlockTest.php b/tests/RuleSet/DeclarationBlockTest.php index bb1d9344..01d317d6 100644 --- a/tests/RuleSet/DeclarationBlockTest.php +++ b/tests/RuleSet/DeclarationBlockTest.php @@ -56,23 +56,28 @@ public function expandFontShorthandProvider() ], [ 'body {font: 12px serif;}', - 'body {font-style: normal;font-variant: normal;font-weight: normal;font-size: 12px;line-height: normal;font-family: serif;}', + 'body {font-style: normal;font-variant: normal;font-weight: normal;font-size: 12px;' + . 'line-height: normal;font-family: serif;}', ], [ 'body {font: italic 12px serif;}', - 'body {font-style: italic;font-variant: normal;font-weight: normal;font-size: 12px;line-height: normal;font-family: serif;}', + 'body {font-style: italic;font-variant: normal;font-weight: normal;font-size: 12px;' + . 'line-height: normal;font-family: serif;}', ], [ 'body {font: italic bold 12px serif;}', - 'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;line-height: normal;font-family: serif;}', + 'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;' + . 'line-height: normal;font-family: serif;}', ], [ 'body {font: italic bold 12px/1.6 serif;}', - 'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;line-height: 1.6;font-family: serif;}', + 'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;' + . 'line-height: 1.6;font-family: serif;}', ], [ 'body {font: italic small-caps bold 12px/1.6 serif;}', - 'body {font-style: italic;font-variant: small-caps;font-weight: bold;font-size: 12px;line-height: 1.6;font-family: serif;}', + 'body {font-style: italic;font-variant: small-caps;font-weight: bold;font-size: 12px;' + . 'line-height: 1.6;font-family: serif;}', ], ]; } @@ -96,23 +101,28 @@ public function expandBackgroundShorthandProvider() ['body {border: 1px;}', 'body {border: 1px;}'], [ 'body {background: #f00;}', - 'body {background-color: #f00;background-image: none;background-repeat: repeat;background-attachment: scroll;background-position: 0% 0%;}', + 'body {background-color: #f00;background-image: none;background-repeat: repeat;' + . 'background-attachment: scroll;background-position: 0% 0%;}', ], [ 'body {background: #f00 url("foobar.png");}', - 'body {background-color: #f00;background-image: url("foobar.png");background-repeat: repeat;background-attachment: scroll;background-position: 0% 0%;}', + 'body {background-color: #f00;background-image: url("foobar.png");background-repeat: repeat;' + . 'background-attachment: scroll;background-position: 0% 0%;}', ], [ 'body {background: #f00 url("foobar.png") no-repeat;}', - 'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;background-attachment: scroll;background-position: 0% 0%;}', + 'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;' + . 'background-attachment: scroll;background-position: 0% 0%;}', ], [ 'body {background: #f00 url("foobar.png") no-repeat center;}', - 'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;background-attachment: scroll;background-position: center center;}', + 'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;' + . 'background-attachment: scroll;background-position: center center;}', ], [ 'body {background: #f00 url("foobar.png") no-repeat top left;}', - 'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;background-attachment: scroll;background-position: top left;}', + 'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;' + . 'background-attachment: scroll;background-position: top left;}', ], ]; } @@ -197,7 +207,8 @@ public function createFontShorthandProvider() 'body {font: italic bold 12px/1.6 serif;}', ], [ - 'body {font-size: 12px; font-family: serif; font-style: italic; font-weight: bold; line-height: 1.6; font-variant: small-caps;}', + 'body {font-size: 12px; font-family: serif; font-style: italic; font-weight: bold; ' + . 'line-height: 1.6; font-variant: small-caps;}', 'body {font: italic small-caps bold 12px/1.6 serif;}', ], ['body {margin: 1em;}', 'body {margin: 1em;}'], @@ -265,11 +276,13 @@ public function createBackgroundShorthandProvider() 'body {background: #f00 url("foobar.png") no-repeat;}', ], [ - 'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;background-position: center;}', + 'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;' + . 'background-position: center;}', 'body {background: #f00 url("foobar.png") no-repeat center;}', ], [ - 'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;background-position: top left;}', + 'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;' + . 'background-position: top left;}', 'body {background: #f00 url("foobar.png") no-repeat top left;}', ], ];