Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0ba1acc

Browse filesBrowse files
committed
fixed CS on YAML fixtures
1 parent ac9d6cf commit 0ba1acc
Copy full SHA for 0ba1acc
Expand file treeCollapse file tree

24 files changed

+318
-318
lines changed

‎src/Symfony/Component/Yaml/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ CHANGELOG
113113
* Added support for customizing the dumped YAML string through an optional bit field:
114114

115115
```php
116-
Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE | Yaml::DUMP_OBJECT);
116+
Yaml::dump(['foo' => new A(), 'bar' => 1], 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE | Yaml::DUMP_OBJECT);
117117
```
118118

119119
3.0.0

‎src/Symfony/Component/Yaml/Tests/Fixtures/YtsAnchorAlias.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/Fixtures/YtsAnchorAlias.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ yaml: |
1414
- Oren
1515
- *showell
1616
php: |
17-
array('Steve', 'Clark', 'Brian', 'Oren', 'Steve')
17+
['Steve', 'Clark', 'Brian', 'Oren', 'Steve']
1818
1919
---
2020
test: Alias of a Mapping
@@ -28,4 +28,4 @@ yaml: |
2828
- banana
2929
- *hello
3030
php: |
31-
array(array('Meat'=>'pork', 'Starch'=>'potato'), 'banana', array('Meat'=>'pork', 'Starch'=>'potato'))
31+
[['Meat'=>'pork', 'Starch'=>'potato'], 'banana', ['Meat'=>'pork', 'Starch'=>'potato']]

‎src/Symfony/Component/Yaml/Tests/Fixtures/YtsBasicTests.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/Fixtures/YtsBasicTests.yml
+26-26Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ yaml: |
99
- banana
1010
- carrot
1111
php: |
12-
array('apple', 'banana', 'carrot')
12+
['apple', 'banana', 'carrot']
1313
---
1414
test: Sequence With Item Being Null In The Middle
1515
brief: |
@@ -21,7 +21,7 @@ yaml: |
2121
-
2222
- carrot
2323
php: |
24-
array('apple', null, 'carrot')
24+
['apple', null, 'carrot']
2525
---
2626
test: Sequence With Last Item Being Null
2727
brief: |
@@ -33,7 +33,7 @@ yaml: |
3333
- banana
3434
-
3535
php: |
36-
array('apple', 'banana', null)
36+
['apple', 'banana', null]
3737
---
3838
test: Nested Sequences
3939
brief: |
@@ -46,7 +46,7 @@ yaml: |
4646
- bar
4747
- baz
4848
php: |
49-
array(array('foo', 'bar', 'baz'))
49+
[['foo', 'bar', 'baz']]
5050
---
5151
test: Mixed Sequences
5252
brief: |
@@ -61,7 +61,7 @@ yaml: |
6161
- banana
6262
- carrot
6363
php: |
64-
array('apple', array('foo', 'bar', 'x123'), 'banana', 'carrot')
64+
['apple', ['foo', 'bar', 'x123'], 'banana', 'carrot']
6565
---
6666
test: Deeply Nested Sequences
6767
brief: |
@@ -74,7 +74,7 @@ yaml: |
7474
- uno
7575
- dos
7676
php: |
77-
array(array(array('uno', 'dos')))
77+
[[['uno', 'dos']]]
7878
---
7979
test: Simple Mapping
8080
brief: |
@@ -87,7 +87,7 @@ yaml: |
8787
foo: whatever
8888
bar: stuff
8989
php: |
90-
array('foo' => 'whatever', 'bar' => 'stuff')
90+
['foo' => 'whatever', 'bar' => 'stuff']
9191
---
9292
test: Sequence in a Mapping
9393
brief: |
@@ -98,7 +98,7 @@ yaml: |
9898
- uno
9999
- dos
100100
php: |
101-
array('foo' => 'whatever', 'bar' => array('uno', 'dos'))
101+
['foo' => 'whatever', 'bar' => ['uno', 'dos']]
102102
---
103103
test: Nested Mappings
104104
brief: |
@@ -110,14 +110,14 @@ yaml: |
110110
name: steve
111111
sport: baseball
112112
php: |
113-
array(
113+
[
114114
'foo' => 'whatever',
115-
'bar' => array(
115+
'bar' => [
116116
'fruit' => 'apple',
117117
'name' => 'steve',
118118
'sport' => 'baseball'
119-
)
120-
)
119+
]
120+
]
121121
---
122122
test: Mixed Mapping
123123
brief: |
@@ -136,22 +136,22 @@ yaml: |
136136
perl: papers
137137
ruby: scissorses
138138
php: |
139-
array(
139+
[
140140
'foo' => 'whatever',
141-
'bar' => array(
142-
array(
141+
'bar' => [
142+
[
143143
'fruit' => 'apple',
144144
'name' => 'steve',
145145
'sport' => 'baseball'
146-
),
146+
],
147147
'more',
148-
array(
148+
[
149149
'python' => 'rocks',
150150
'perl' => 'papers',
151151
'ruby' => 'scissorses'
152-
)
153-
)
154-
)
152+
]
153+
]
154+
]
155155
---
156156
test: Mapping-in-Sequence Shortcut
157157
todo: true
@@ -163,7 +163,7 @@ yaml: |
163163
- work on YAML.py:
164164
- work on Store
165165
php: |
166-
array(array('work on YAML.py' => array('work on Store')))
166+
[['work on YAML.py' => ['work on Store']]]
167167
---
168168
test: Sequence-in-Mapping Shortcut
169169
todo: true
@@ -177,7 +177,7 @@ yaml: |
177177
- '%.sourceforge.net'
178178
- '%.freepan.org'
179179
php: |
180-
array('allow' => array('localhost', '%.sourceforge.net', '%.freepan.org'))
180+
['allow' => ['localhost', '%.sourceforge.net', '%.freepan.org']]
181181
---
182182
todo: true
183183
test: Merge key
@@ -192,11 +192,11 @@ yaml: |
192192
<<:
193193
age: 38
194194
php: |
195-
array(
195+
[
196196
'mapping' =>
197-
array(
197+
[
198198
'name' => 'Joe',
199199
'job' => 'Accountant',
200200
'age' => 38
201-
)
202-
)
201+
]
202+
]

‎src/Symfony/Component/Yaml/Tests/Fixtures/YtsBlockMapping.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/Fixtures/YtsBlockMapping.yml
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ brief: |
55
yaml: |
66
foo: bar
77
php: |
8-
array('foo' => 'bar')
8+
['foo' => 'bar']
99
---
1010
test: Multi Element Mapping
1111
brief: |
@@ -15,11 +15,11 @@ yaml: |
1515
white: walls
1616
blue: berries
1717
php: |
18-
array(
18+
[
1919
'red' => 'baron',
2020
'white' => 'walls',
2121
'blue' => 'berries',
22-
)
22+
]
2323
---
2424
test: Values aligned
2525
brief: |
@@ -30,11 +30,11 @@ yaml: |
3030
white: walls
3131
blue: berries
3232
php: |
33-
array(
33+
[
3434
'red' => 'baron',
3535
'white' => 'walls',
3636
'blue' => 'berries',
37-
)
37+
]
3838
---
3939
test: Colons aligned
4040
brief: |
@@ -44,8 +44,8 @@ yaml: |
4444
white : walls
4545
blue : berries
4646
php: |
47-
array(
47+
[
4848
'red' => 'baron',
4949
'white' => 'walls',
5050
'blue' => 'berries',
51-
)
51+
]

‎src/Symfony/Component/Yaml/Tests/Fixtures/YtsDocumentSeparator.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/Fixtures/YtsDocumentSeparator.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ yaml: |
4949
foo: 1
5050
bar: 2
5151
php: |
52-
array('foo' => 1, 'bar' => 2)
52+
['foo' => 1, 'bar' => 2]
5353
documents: 1
5454

5555
---
@@ -63,7 +63,7 @@ yaml: |
6363
foo: |
6464
---
6565
php: |
66-
array('foo' => "---\n")
66+
['foo' => "---\n"]
6767
6868
---
6969
test: Multiple Document Separators in Block
@@ -79,7 +79,7 @@ yaml: |
7979
bar: |
8080
fooness
8181
php: |
82-
array(
82+
[
8383
'foo' => "---\nfoo: bar\n---\nyo: baz\n",
8484
'bar' => "fooness\n"
85-
)
85+
]

‎src/Symfony/Component/Yaml/Tests/Fixtures/YtsErrorTests.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/Fixtures/YtsErrorTests.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ yaml: |
2222
firstline: 1
2323
secondline: 2
2424
php: |
25-
array('foo' => null, 'firstline' => 1, 'secondline' => 2)
25+
['foo' => null, 'firstline' => 1, 'secondline' => 2]

‎src/Symfony/Component/Yaml/Tests/Fixtures/YtsFlowCollections.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/Fixtures/YtsFlowCollections.yml
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ brief: >
88
yaml: |
99
seq: [ a, b, c ]
1010
php: |
11-
array('seq' => array('a', 'b', 'c'))
11+
['seq' => ['a', 'b', 'c']]
1212
---
1313
test: Simple Inline Hash
1414
brief: >
@@ -21,7 +21,7 @@ brief: >
2121
yaml: |
2222
hash: { name: Steve, foo: bar }
2323
php: |
24-
array('hash' => array('name' => 'Steve', 'foo' => 'bar'))
24+
['hash' => ['name' => 'Steve', 'foo' => 'bar']]
2525
---
2626
test: Multi-line Inline Collections
2727
todo: true
@@ -38,15 +38,15 @@ yaml: |
3838
Python: python.org,
3939
Perl: use.perl.org }
4040
php: |
41-
array(
42-
'languages' => array('Ruby', 'Perl', 'Python'),
43-
'websites' => array(
41+
[
42+
'languages' => ['Ruby', 'Perl', 'Python'],
43+
'websites' => [
4444
'YAML' => 'yaml.org',
4545
'Ruby' => 'ruby-lang.org',
4646
'Python' => 'python.org',
4747
'Perl' => 'use.perl.org'
48-
)
49-
)
48+
]
49+
]
5050
---
5151
test: Commas in Values (not in the spec!)
5252
todo: true
@@ -57,4 +57,4 @@ brief: >
5757
yaml: |
5858
attendances: [ 45,123, 70,000, 17,222 ]
5959
php: |
60-
array('attendances' => array(45123, 70000, 17222))
60+
['attendances' => [45123, 70000, 17222]]

‎src/Symfony/Component/Yaml/Tests/Fixtures/YtsFoldedScalars.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/Fixtures/YtsFoldedScalars.yml
+13-13Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ yaml: |
1212
Foo
1313
Bar
1414
php: |
15-
array('this' => "Foo\nBar\n")
15+
['this' => "Foo\nBar\n"]
1616
---
1717
test: The '+' indicator
1818
brief: >
@@ -28,11 +28,11 @@ yaml: |
2828
2929
dummy: value
3030
php: |
31-
array(
31+
[
3232
'normal' => "extra new lines not kept\n",
3333
'preserving' => "extra new lines are kept\n\n\n",
3434
'dummy' => 'value'
35-
)
35+
]
3636
---
3737
test: Three trailing newlines in literals
3838
brief: >
@@ -64,14 +64,14 @@ yaml: |
6464
6565
same as "kept" above: "This has four newlines.\n\n\n\n"
6666
php: |
67-
array(
67+
[
6868
'clipped' => "This has one newline.\n",
6969
'same as "clipped" above' => "This has one newline.\n",
7070
'stripped' => 'This has no newline.',
7171
'same as "stripped" above' => 'This has no newline.',
7272
'kept' => "This has four newlines.\n\n\n\n",
7373
'same as "kept" above' => "This has four newlines.\n\n\n\n"
74-
)
74+
]
7575
---
7676
test: Extra trailing newlines with spaces
7777
todo: true
@@ -95,8 +95,8 @@ yaml: |
9595
9696
9797
php: |
98-
array('this' => "Foo\n\n \n",
99-
'kept' => "Foo\n\n \n" )
98+
['this' => "Foo\n\n \n",
99+
'kept' => "Foo\n\n \n"]
100100
101101
---
102102
test: Folded Block in a Sequence
@@ -115,12 +115,12 @@ yaml: |
115115
hmm
116116
- dog
117117
php: |
118-
array(
118+
[
119119
'apple',
120120
'banana',
121121
"can't you see the beauty of yaml? hmm\n",
122122
'dog'
123-
)
123+
]
124124
---
125125
test: Folded Block as a Mapping Value
126126
brief: >
@@ -135,10 +135,10 @@ yaml: |
135135
by a knee injury.
136136
source: espn
137137
php: |
138-
array(
138+
[
139139
'quote' => "Mark McGwire's year was crippled by a knee injury.\n",
140140
'source' => 'espn'
141-
)
141+
]
142142
---
143143
test: Three trailing newlines in folded blocks
144144
brief: >
@@ -166,11 +166,11 @@ yaml: |
166166
167167
same as "kept" above: "This has four newlines.\n\n\n\n"
168168
php: |
169-
array(
169+
[
170170
'clipped' => "This has one newline.\n",
171171
'same as "clipped" above' => "This has one newline.\n",
172172
'stripped' => 'This has no newline.',
173173
'same as "stripped" above' => 'This has no newline.',
174174
'kept' => "This has four newlines.\n\n\n\n",
175175
'same as "kept" above' => "This has four newlines.\n\n\n\n"
176-
)
176+
]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.