Skip to content

Commit 44ee06a

Browse files
authored
Merge pull request #263 from oliverklee/cleanup/long-lines-final
Split long lines in `DeclarationBlockTest`
2 parents 172ff41 + 717bc96 commit 44ee06a

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

tests/RuleSet/DeclarationBlockTest.php

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,28 @@ public function expandFontShorthandProvider()
5656
],
5757
[
5858
'body {font: 12px serif;}',
59-
'body {font-style: normal;font-variant: normal;font-weight: normal;font-size: 12px;line-height: normal;font-family: serif;}',
59+
'body {font-style: normal;font-variant: normal;font-weight: normal;font-size: 12px;'
60+
. 'line-height: normal;font-family: serif;}',
6061
],
6162
[
6263
'body {font: italic 12px serif;}',
63-
'body {font-style: italic;font-variant: normal;font-weight: normal;font-size: 12px;line-height: normal;font-family: serif;}',
64+
'body {font-style: italic;font-variant: normal;font-weight: normal;font-size: 12px;'
65+
. 'line-height: normal;font-family: serif;}',
6466
],
6567
[
6668
'body {font: italic bold 12px serif;}',
67-
'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;line-height: normal;font-family: serif;}',
69+
'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;'
70+
. 'line-height: normal;font-family: serif;}',
6871
],
6972
[
7073
'body {font: italic bold 12px/1.6 serif;}',
71-
'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;line-height: 1.6;font-family: serif;}',
74+
'body {font-style: italic;font-variant: normal;font-weight: bold;font-size: 12px;'
75+
. 'line-height: 1.6;font-family: serif;}',
7276
],
7377
[
7478
'body {font: italic small-caps bold 12px/1.6 serif;}',
75-
'body {font-style: italic;font-variant: small-caps;font-weight: bold;font-size: 12px;line-height: 1.6;font-family: serif;}',
79+
'body {font-style: italic;font-variant: small-caps;font-weight: bold;font-size: 12px;'
80+
. 'line-height: 1.6;font-family: serif;}',
7681
],
7782
];
7883
}
@@ -96,23 +101,28 @@ public function expandBackgroundShorthandProvider()
96101
['body {border: 1px;}', 'body {border: 1px;}'],
97102
[
98103
'body {background: #f00;}',
99-
'body {background-color: #f00;background-image: none;background-repeat: repeat;background-attachment: scroll;background-position: 0% 0%;}',
104+
'body {background-color: #f00;background-image: none;background-repeat: repeat;'
105+
. 'background-attachment: scroll;background-position: 0% 0%;}',
100106
],
101107
[
102108
'body {background: #f00 url("foobar.png");}',
103-
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: repeat;background-attachment: scroll;background-position: 0% 0%;}',
109+
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: repeat;'
110+
. 'background-attachment: scroll;background-position: 0% 0%;}',
104111
],
105112
[
106113
'body {background: #f00 url("foobar.png") no-repeat;}',
107-
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;background-attachment: scroll;background-position: 0% 0%;}',
114+
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;'
115+
. 'background-attachment: scroll;background-position: 0% 0%;}',
108116
],
109117
[
110118
'body {background: #f00 url("foobar.png") no-repeat center;}',
111-
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;background-attachment: scroll;background-position: center center;}',
119+
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;'
120+
. 'background-attachment: scroll;background-position: center center;}',
112121
],
113122
[
114123
'body {background: #f00 url("foobar.png") no-repeat top left;}',
115-
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;background-attachment: scroll;background-position: top left;}',
124+
'body {background-color: #f00;background-image: url("foobar.png");background-repeat: no-repeat;'
125+
. 'background-attachment: scroll;background-position: top left;}',
116126
],
117127
];
118128
}
@@ -197,7 +207,8 @@ public function createFontShorthandProvider()
197207
'body {font: italic bold 12px/1.6 serif;}',
198208
],
199209
[
200-
'body {font-size: 12px; font-family: serif; font-style: italic; font-weight: bold; line-height: 1.6; font-variant: small-caps;}',
210+
'body {font-size: 12px; font-family: serif; font-style: italic; font-weight: bold; '
211+
. 'line-height: 1.6; font-variant: small-caps;}',
201212
'body {font: italic small-caps bold 12px/1.6 serif;}',
202213
],
203214
['body {margin: 1em;}', 'body {margin: 1em;}'],
@@ -265,11 +276,13 @@ public function createBackgroundShorthandProvider()
265276
'body {background: #f00 url("foobar.png") no-repeat;}',
266277
],
267278
[
268-
'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;background-position: center;}',
279+
'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;'
280+
. 'background-position: center;}',
269281
'body {background: #f00 url("foobar.png") no-repeat center;}',
270282
],
271283
[
272-
'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;background-position: top left;}',
284+
'body {background-color: #f00;background-image: url(foobar.png);background-repeat: no-repeat;'
285+
. 'background-position: top left;}',
273286
'body {background: #f00 url("foobar.png") no-repeat top left;}',
274287
],
275288
];

0 commit comments

Comments
 (0)