Skip to content

Commit 76c2de0

Browse files
Fix CS
1 parent 5d30df7 commit 76c2de0

File tree

6 files changed

+119
-119
lines changed

6 files changed

+119
-119
lines changed

src/Symfony/Component/Debug/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ public function provideUndefinedMethodData()
6464
),
6565
array(
6666
array(
67-
'type' => 1,
68-
'message' => 'Call to undefined method class@anonymous::test()',
69-
'file' => '/home/possum/work/symfony/test.php',
70-
'line' => 11,
67+
'type' => 1,
68+
'message' => 'Call to undefined method class@anonymous::test()',
69+
'file' => '/home/possum/work/symfony/test.php',
70+
'line' => 11,
7171
),
7272
'Attempted to call an undefined method named "test" of class "class@anonymous".',
7373
),

src/Symfony/Component/DomCrawler/Tests/FormTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -936,12 +936,12 @@ public function testgetPhpValuesWithEmptyTextarea()
936936
{
937937
$dom = new \DOMDocument();
938938
$dom->loadHTML('
939-
<html>
940-
<form>
941-
<textarea name="example"></textarea>
942-
</form>
943-
</html>
944-
');
939+
<html>
940+
<form>
941+
<textarea name="example"></textarea>
942+
</form>
943+
</html>'
944+
);
945945

946946
$nodes = $dom->getElementsByTagName('form');
947947
$form = new Form($nodes->item(0), 'http://example.com');

src/Symfony/Component/Finder/Tests/Iterator/MockSplFileInfo.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ public function __construct($param)
2929
parent::__construct($param);
3030
} elseif (\is_array($param)) {
3131
$defaults = array(
32-
'name' => 'file.txt',
33-
'contents' => null,
34-
'mode' => null,
35-
'type' => null,
36-
'relativePath' => null,
37-
'relativePathname' => null,
32+
'name' => 'file.txt',
33+
'contents' => null,
34+
'mode' => null,
35+
'type' => null,
36+
'relativePath' => null,
37+
'relativePathname' => null,
3838
);
3939
$defaults = array_merge($defaults, $param);
4040
parent::__construct($defaults['name']);

src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ public function testContext()
167167
public function testEncodeScalarRootAttributes()
168168
{
169169
$array = array(
170-
'#' => 'Paul',
171-
'@gender' => 'm',
170+
'#' => 'Paul',
171+
'@gender' => 'm',
172172
);
173173

174174
$expected = '<?xml version="1.0"?>'."\n".
@@ -180,8 +180,8 @@ public function testEncodeScalarRootAttributes()
180180
public function testEncodeRootAttributes()
181181
{
182182
$array = array(
183-
'firstname' => 'Paul',
184-
'@gender' => 'm',
183+
'firstname' => 'Paul',
184+
'@gender' => 'm',
185185
);
186186

187187
$expected = '<?xml version="1.0"?>'."\n".
@@ -193,7 +193,7 @@ public function testEncodeRootAttributes()
193193
public function testEncodeCdataWrapping()
194194
{
195195
$array = array(
196-
'firstname' => 'Paul <or Me>',
196+
'firstname' => 'Paul <or Me>',
197197
);
198198

199199
$expected = '<?xml version="1.0"?>'."\n".

src/Symfony/Component/Translation/Tests/DataCollector/TranslationDataCollectorTest.php

+63-63
Original file line numberDiff line numberDiff line change
@@ -42,85 +42,85 @@ public function testCollect()
4242
{
4343
$collectedMessages = array(
4444
array(
45-
'id' => 'foo',
46-
'translation' => 'foo (en)',
47-
'locale' => 'en',
48-
'domain' => 'messages',
49-
'state' => DataCollectorTranslator::MESSAGE_DEFINED,
50-
'parameters' => array(),
51-
'transChoiceNumber' => null,
45+
'id' => 'foo',
46+
'translation' => 'foo (en)',
47+
'locale' => 'en',
48+
'domain' => 'messages',
49+
'state' => DataCollectorTranslator::MESSAGE_DEFINED,
50+
'parameters' => array(),
51+
'transChoiceNumber' => null,
5252
),
5353
array(
54-
'id' => 'bar',
55-
'translation' => 'bar (fr)',
56-
'locale' => 'fr',
57-
'domain' => 'messages',
58-
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
59-
'parameters' => array(),
60-
'transChoiceNumber' => null,
54+
'id' => 'bar',
55+
'translation' => 'bar (fr)',
56+
'locale' => 'fr',
57+
'domain' => 'messages',
58+
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
59+
'parameters' => array(),
60+
'transChoiceNumber' => null,
6161
),
6262
array(
63-
'id' => 'choice',
64-
'translation' => 'choice',
65-
'locale' => 'en',
66-
'domain' => 'messages',
67-
'state' => DataCollectorTranslator::MESSAGE_MISSING,
68-
'parameters' => array('%count%' => 3),
69-
'transChoiceNumber' => 3,
63+
'id' => 'choice',
64+
'translation' => 'choice',
65+
'locale' => 'en',
66+
'domain' => 'messages',
67+
'state' => DataCollectorTranslator::MESSAGE_MISSING,
68+
'parameters' => array('%count%' => 3),
69+
'transChoiceNumber' => 3,
7070
),
7171
array(
72-
'id' => 'choice',
73-
'translation' => 'choice',
74-
'locale' => 'en',
75-
'domain' => 'messages',
76-
'state' => DataCollectorTranslator::MESSAGE_MISSING,
77-
'parameters' => array('%count%' => 3),
78-
'transChoiceNumber' => 3,
72+
'id' => 'choice',
73+
'translation' => 'choice',
74+
'locale' => 'en',
75+
'domain' => 'messages',
76+
'state' => DataCollectorTranslator::MESSAGE_MISSING,
77+
'parameters' => array('%count%' => 3),
78+
'transChoiceNumber' => 3,
7979
),
8080
array(
81-
'id' => 'choice',
82-
'translation' => 'choice',
83-
'locale' => 'en',
84-
'domain' => 'messages',
85-
'state' => DataCollectorTranslator::MESSAGE_MISSING,
86-
'parameters' => array('%count%' => 4, '%foo%' => 'bar'),
87-
'transChoiceNumber' => 4,
81+
'id' => 'choice',
82+
'translation' => 'choice',
83+
'locale' => 'en',
84+
'domain' => 'messages',
85+
'state' => DataCollectorTranslator::MESSAGE_MISSING,
86+
'parameters' => array('%count%' => 4, '%foo%' => 'bar'),
87+
'transChoiceNumber' => 4,
8888
),
8989
);
9090
$expectedMessages = array(
9191
array(
92-
'id' => 'foo',
93-
'translation' => 'foo (en)',
94-
'locale' => 'en',
95-
'domain' => 'messages',
96-
'state' => DataCollectorTranslator::MESSAGE_DEFINED,
97-
'count' => 1,
98-
'parameters' => array(),
99-
'transChoiceNumber' => null,
92+
'id' => 'foo',
93+
'translation' => 'foo (en)',
94+
'locale' => 'en',
95+
'domain' => 'messages',
96+
'state' => DataCollectorTranslator::MESSAGE_DEFINED,
97+
'count' => 1,
98+
'parameters' => array(),
99+
'transChoiceNumber' => null,
100100
),
101101
array(
102-
'id' => 'bar',
103-
'translation' => 'bar (fr)',
104-
'locale' => 'fr',
105-
'domain' => 'messages',
106-
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
107-
'count' => 1,
108-
'parameters' => array(),
109-
'transChoiceNumber' => null,
102+
'id' => 'bar',
103+
'translation' => 'bar (fr)',
104+
'locale' => 'fr',
105+
'domain' => 'messages',
106+
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
107+
'count' => 1,
108+
'parameters' => array(),
109+
'transChoiceNumber' => null,
110110
),
111111
array(
112-
'id' => 'choice',
113-
'translation' => 'choice',
114-
'locale' => 'en',
115-
'domain' => 'messages',
116-
'state' => DataCollectorTranslator::MESSAGE_MISSING,
117-
'count' => 3,
118-
'parameters' => array(
119-
array('%count%' => 3),
120-
array('%count%' => 3),
121-
array('%count%' => 4, '%foo%' => 'bar'),
122-
),
123-
'transChoiceNumber' => 3,
112+
'id' => 'choice',
113+
'translation' => 'choice',
114+
'locale' => 'en',
115+
'domain' => 'messages',
116+
'state' => DataCollectorTranslator::MESSAGE_MISSING,
117+
'count' => 3,
118+
'parameters' => array(
119+
array('%count%' => 3),
120+
array('%count%' => 3),
121+
array('%count%' => 4, '%foo%' => 'bar'),
122+
),
123+
'transChoiceNumber' => 3,
124124
),
125125
);
126126

src/Symfony/Component/Translation/Tests/DataCollectorTranslatorTest.php

+35-35
Original file line numberDiff line numberDiff line change
@@ -31,49 +31,49 @@ public function testCollectMessages()
3131

3232
$expectedMessages = array();
3333
$expectedMessages[] = array(
34-
'id' => 'foo',
35-
'translation' => 'foo (en)',
36-
'locale' => 'en',
37-
'domain' => 'messages',
38-
'state' => DataCollectorTranslator::MESSAGE_DEFINED,
39-
'parameters' => array(),
40-
'transChoiceNumber' => null,
34+
'id' => 'foo',
35+
'translation' => 'foo (en)',
36+
'locale' => 'en',
37+
'domain' => 'messages',
38+
'state' => DataCollectorTranslator::MESSAGE_DEFINED,
39+
'parameters' => array(),
40+
'transChoiceNumber' => null,
4141
);
4242
$expectedMessages[] = array(
43-
'id' => 'bar',
44-
'translation' => 'bar (fr)',
45-
'locale' => 'fr',
46-
'domain' => 'messages',
47-
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
48-
'parameters' => array(),
49-
'transChoiceNumber' => null,
43+
'id' => 'bar',
44+
'translation' => 'bar (fr)',
45+
'locale' => 'fr',
46+
'domain' => 'messages',
47+
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
48+
'parameters' => array(),
49+
'transChoiceNumber' => null,
5050
);
5151
$expectedMessages[] = array(
52-
'id' => 'choice',
53-
'translation' => 'choice',
54-
'locale' => 'en',
55-
'domain' => 'messages',
56-
'state' => DataCollectorTranslator::MESSAGE_MISSING,
57-
'parameters' => array(),
58-
'transChoiceNumber' => 0,
52+
'id' => 'choice',
53+
'translation' => 'choice',
54+
'locale' => 'en',
55+
'domain' => 'messages',
56+
'state' => DataCollectorTranslator::MESSAGE_MISSING,
57+
'parameters' => array(),
58+
'transChoiceNumber' => 0,
5959
);
6060
$expectedMessages[] = array(
61-
'id' => 'bar_ru',
62-
'translation' => 'bar (ru)',
63-
'locale' => 'ru',
64-
'domain' => 'messages',
65-
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
66-
'parameters' => array(),
67-
'transChoiceNumber' => null,
61+
'id' => 'bar_ru',
62+
'translation' => 'bar (ru)',
63+
'locale' => 'ru',
64+
'domain' => 'messages',
65+
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
66+
'parameters' => array(),
67+
'transChoiceNumber' => null,
6868
);
6969
$expectedMessages[] = array(
70-
'id' => 'bar_ru',
71-
'translation' => 'bar (ru)',
72-
'locale' => 'ru',
73-
'domain' => 'messages',
74-
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
75-
'parameters' => array('foo' => 'bar'),
76-
'transChoiceNumber' => null,
70+
'id' => 'bar_ru',
71+
'translation' => 'bar (ru)',
72+
'locale' => 'ru',
73+
'domain' => 'messages',
74+
'state' => DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK,
75+
'parameters' => array('foo' => 'bar'),
76+
'transChoiceNumber' => null,
7777
);
7878

7979
$this->assertEquals($expectedMessages, $collector->getCollectedMessages());

0 commit comments

Comments
 (0)