Skip to content

Commit 04cbeb5

Browse files
committed
fix php-cs-fxier
1 parent aafe82b commit 04cbeb5

1 file changed

Lines changed: 27 additions & 54 deletions

File tree

src/Symfony/Component/Yaml/Tests/ParserTest.php

Lines changed: 27 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,8 +1315,7 @@ public static function getCommentLikeStringInScalarBlockData()
13151315
</body>
13161316
13171317
footer # comment3
1318-
EOT
1319-
,
1318+
EOT,
13201319
],
13211320
],
13221321
];
@@ -1343,25 +1342,22 @@ public static function getCommentLikeStringInScalarBlockData()
13431342
# bar
13441343
baz
13451344

1346-
EOT
1347-
,
1345+
EOT,
13481346
'collection' => [
13491347
[
13501348
'one' => <<<'EOT'
13511349
foo
13521350
# bar
13531351
baz
13541352

1355-
EOT
1356-
,
1353+
EOT,
13571354
],
13581355
[
13591356
'two' => <<<'EOT'
13601357
foo
13611358
# bar
13621359
baz
1363-
EOT
1364-
,
1360+
EOT,
13651361
],
13661362
],
13671363
];
@@ -1425,8 +1421,7 @@ public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
14251421
'test' => <<<'EOT'
14261422
<h2>A heading</h2>
14271423
<ul> <li>a list</li> <li>may be a good example</li> </ul>
1428-
EOT
1429-
,
1424+
EOT,
14301425
],
14311426
$this->parser->parse($yaml)
14321427
);
@@ -1452,8 +1447,7 @@ public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks()
14521447
<li>a list</li>
14531448
<li>may be a good example</li>
14541449
</ul>
1455-
EOT
1456-
,
1450+
EOT,
14571451
],
14581452
$this->parser->parse($yaml)
14591453
);
@@ -1510,32 +1504,28 @@ public static function getInvalidBinaryData()
15101504
<<<'EOT'
15111505
data: !!binary |
15121506
SGVsbG8d29ybGQ=
1513-
EOT
1514-
,
1507+
EOT,
15151508
'/The normalized base64 encoded data \(data without whitespace characters\) length must be a multiple of four \(\d+ bytes given\)/',
15161509
],
15171510
'invalid characters in block scalar' => [
15181511
<<<'EOT'
15191512
data: !!binary |
15201513
SGVsbG8#d29ybGQ=
1521-
EOT
1522-
,
1514+
EOT,
15231515
'/The base64 encoded data \(.*\) contains invalid characters/',
15241516
],
15251517
'too many equals characters in block scalar' => [
15261518
<<<'EOT'
15271519
data: !!binary |
15281520
SGVsbG8gd29yb===
1529-
EOT
1530-
,
1521+
EOT,
15311522
'/The base64 encoded data \(.*\) contains invalid characters/',
15321523
],
15331524
'misplaced equals character in block scalar' => [
15341525
<<<'EOT'
15351526
data: !!binary |
15361527
SGVsbG8gd29ybG=Q
1537-
EOT
1538-
,
1528+
EOT,
15391529
'/The base64 encoded data \(.*\) contains invalid characters/',
15401530
],
15411531
];
@@ -1909,8 +1899,7 @@ public static function escapedQuotationCharactersInQuotedStrings()
19091899
- message: 'No emails received before timeout - Address: ''test@testemail.company.com''
19101900
Keyword: ''Your Order confirmation'' ttl: 50'
19111901
outcome: failed
1912-
YAML
1913-
,
1902+
YAML,
19141903
[
19151904
'entries' => [
19161905
[
@@ -1926,8 +1915,7 @@ public static function escapedQuotationCharactersInQuotedStrings()
19261915
- message: "No emails received before timeout - Address: \"test@testemail.company.com\"
19271916
Keyword: \"Your Order confirmation\" ttl: 50"
19281917
outcome: failed
1929-
YAML
1930-
,
1918+
YAML,
19311919
[
19321920
'entries' => [
19331921
[
@@ -2035,8 +2023,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
20352023
'foo': 'bar',
20362024
'bar': 'baz'
20372025
}
2038-
YAML
2039-
,
2026+
YAML,
20402027
],
20412028
'mapping with unquoted strings and values' => [
20422029
['foo' => 'bar', 'bar' => 'baz'],
@@ -2045,8 +2032,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
20452032
foo: bar,
20462033
bar: baz
20472034
}
2048-
YAML
2049-
,
2035+
YAML,
20502036
],
20512037
'sequence' => [
20522038
['foo', 'bar'],
@@ -2055,8 +2041,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
20552041
'foo',
20562042
'bar'
20572043
]
2058-
YAML
2059-
,
2044+
YAML,
20602045
],
20612046
'sequence with unquoted items' => [
20622047
['foo', 'bar'],
@@ -2065,8 +2050,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
20652050
foo,
20662051
bar
20672052
]
2068-
YAML
2069-
,
2053+
YAML,
20702054
],
20712055
'nested mapping terminating at end of line' => [
20722056
[
@@ -2077,8 +2061,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
20772061
<<<YAML
20782062
{ foo: { bar: foobar }
20792063
}
2080-
YAML
2081-
,
2064+
YAML,
20822065
],
20832066
'nested sequence terminating at end of line' => [
20842067
[
@@ -2112,8 +2095,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
21122095
'foo': ['bar', 'foobar'],
21132096
'bar': ['baz']
21142097
}
2115-
YAML
2116-
,
2098+
YAML,
21172099
],
21182100
'sequence spanning multiple lines nested in mapping' => [
21192101
[
@@ -2128,8 +2110,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
21282110
bar,
21292111
baz
21302112
]
2131-
YAML
2132-
,
2113+
YAML,
21332114
],
21342115
'sequence spanning multiple lines nested in mapping with a following mapping' => [
21352116
[
@@ -2162,8 +2143,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
21622143
bar,
21632144
baz
21642145
]]
2165-
YAML
2166-
,
2146+
YAML,
21672147
],
21682148
'nested sequence nested in mapping starting on the following line' => [
21692149
[
@@ -2181,8 +2161,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
21812161
bar,
21822162
baz
21832163
]]
2184-
YAML
2185-
,
2164+
YAML,
21862165
],
21872166
'mapping nested in sequence' => [
21882167
['foo', ['bar' => 'baz']],
@@ -2193,8 +2172,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
21932172
'bar': 'baz'
21942173
}
21952174
]
2196-
YAML
2197-
,
2175+
YAML,
21982176
],
21992177
'mapping spanning multiple lines nested in sequence' => [
22002178
[
@@ -2208,8 +2186,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
22082186
foo: bar,
22092187
bar: baz
22102188
}
2211-
YAML
2212-
,
2189+
YAML,
22132190
],
22142191
'nested mapping nested in sequence starting on the same line' => [
22152192
[
@@ -2226,8 +2203,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
22262203
},
22272204
bar: baz
22282205
}
2229-
YAML
2230-
,
2206+
YAML,
22312207
],
22322208
'nested mapping nested in sequence starting on the following line' => [
22332209
[
@@ -2245,26 +2221,23 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
22452221
},
22462222
bar: baz
22472223
}
2248-
YAML
2249-
,
2224+
YAML,
22502225
],
22512226
'single quoted multi-line string' => [
22522227
"foo\nbar",
22532228
<<<YAML
22542229
'foo
22552230
22562231
bar'
2257-
YAML
2258-
,
2232+
YAML,
22592233
],
22602234
'double quoted multi-line string' => [
22612235
"foo\nbar",
22622236
<<<YAML
22632237
'foo
22642238
22652239
bar'
2266-
YAML
2267-
,
2240+
YAML,
22682241
],
22692242
'single-quoted multi-line mapping value' => [
22702243
['foo' => "bar\nbaz"],

0 commit comments

Comments
 (0)