Skip to content

Commit 533c800

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: Fix CS Fix CS
2 parents 64ecbef + 1d2a560 commit 533c800

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

Tests/Encoder/CsvEncoderTest.php

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testTrueFalseValues()
4747
foo,2,0,1,1,1
4848

4949
CSV
50-
, $this->encoder->encode($data, 'csv'));
50+
, $this->encoder->encode($data, 'csv'));
5151

5252
$this->assertSame([
5353
'string' => 'foo',
@@ -66,7 +66,7 @@ public function testDoubleQuotesAndSlashes()
6666
,"""","foo""","\""",\,foo\
6767

6868
CSV
69-
, $this->encoder->encode($data = ['', '"', 'foo"', '\\"', '\\', 'foo\\'], 'csv'));
69+
, $this->encoder->encode($data = ['', '"', 'foo"', '\\"', '\\', 'foo\\'], 'csv'));
7070

7171
$this->assertSame($data, $this->encoder->decode($csv, 'csv', [CsvEncoder::AS_COLLECTION_KEY => false]));
7272
}
@@ -93,7 +93,7 @@ public function testEncode()
9393
hello,"hey ho"
9494

9595
CSV
96-
, $this->encoder->encode($value, 'csv'));
96+
, $this->encoder->encode($value, 'csv'));
9797
}
9898

9999
public function testEncodeCollection()
@@ -109,7 +109,7 @@ public function testEncodeCollection()
109109
hi,"let's go"
110110

111111
CSV
112-
, $this->encoder->encode($value, 'csv'));
112+
, $this->encoder->encode($value, 'csv'));
113113
}
114114

115115
public function testEncodePlainIndexedArray()
@@ -144,7 +144,7 @@ public function testEncodeNestedArrays()
144144
hello,yo,wesh,Halo,olá
145145

146146
CSV
147-
, $this->encoder->encode($value, 'csv'));
147+
, $this->encoder->encode($value, 'csv'));
148148
}
149149

150150
public function testEncodeCustomSettings()
@@ -163,7 +163,7 @@ public function testEncodeCustomSettings()
163163
'he''llo';foo
164164

165165
CSV
166-
, $this->encoder->encode($value, 'csv'));
166+
, $this->encoder->encode($value, 'csv'));
167167
}
168168

169169
public function testEncodeCustomSettingsPassedInContext()
@@ -175,12 +175,12 @@ public function testEncodeCustomSettingsPassedInContext()
175175
'he''llo';foo
176176

177177
CSV
178-
, $this->encoder->encode($value, 'csv', [
179-
CsvEncoder::DELIMITER_KEY => ';',
180-
CsvEncoder::ENCLOSURE_KEY => "'",
181-
CsvEncoder::ESCAPE_CHAR_KEY => '|',
182-
CsvEncoder::KEY_SEPARATOR_KEY => '-',
183-
]));
178+
, $this->encoder->encode($value, 'csv', [
179+
CsvEncoder::DELIMITER_KEY => ';',
180+
CsvEncoder::ENCLOSURE_KEY => "'",
181+
CsvEncoder::ESCAPE_CHAR_KEY => '|',
182+
CsvEncoder::KEY_SEPARATOR_KEY => '-',
183+
]));
184184
}
185185

186186
public function testEncodeCustomSettingsPassedInConstructor()
@@ -198,7 +198,7 @@ public function testEncodeCustomSettingsPassedInConstructor()
198198
'he''llo';foo
199199

200200
CSV
201-
, $encoder->encode($value, 'csv'));
201+
, $encoder->encode($value, 'csv'));
202202
}
203203

204204
public function testEncodeEmptyArray()
@@ -489,7 +489,7 @@ public function testDecodeAsSingle()
489489
foo,bar
490490
a,b
491491
CSV
492-
, 'csv', [CsvEncoder::AS_COLLECTION_KEY => false]));
492+
, 'csv', [CsvEncoder::AS_COLLECTION_KEY => false]));
493493
}
494494

495495
public function testDecodeCollection()
@@ -507,7 +507,7 @@ public function testDecodeCollection()
507507
f
508508

509509
CSV
510-
, 'csv'));
510+
, 'csv'));
511511
}
512512

513513
public function testDecode()
@@ -521,7 +521,7 @@ public function testDecode()
521521
a
522522

523523
CSV
524-
, 'csv'));
524+
, 'csv'));
525525
}
526526

527527
public function testDecodeToManyRelation()
@@ -555,7 +555,7 @@ public function testDecodeNestedArrays()
555555
a,b
556556
c,d
557557
CSV
558-
, 'csv'));
558+
, 'csv'));
559559
}
560560

561561
public function testDecodeCustomSettings()
@@ -572,7 +572,7 @@ public function testDecodeCustomSettings()
572572
a;bar-baz
573573
'hell''o';b;c
574574
CSV
575-
, 'csv'));
575+
, 'csv'));
576576
}
577577

578578
public function testDecodeCustomSettingsPassedInContext()
@@ -582,12 +582,12 @@ public function testDecodeCustomSettingsPassedInContext()
582582
a;bar-baz
583583
'hell''o';b;c
584584
CSV
585-
, 'csv', [
586-
CsvEncoder::DELIMITER_KEY => ';',
587-
CsvEncoder::ENCLOSURE_KEY => "'",
588-
CsvEncoder::ESCAPE_CHAR_KEY => '|',
589-
CsvEncoder::KEY_SEPARATOR_KEY => '-',
590-
]));
585+
, 'csv', [
586+
CsvEncoder::DELIMITER_KEY => ';',
587+
CsvEncoder::ENCLOSURE_KEY => "'",
588+
CsvEncoder::ESCAPE_CHAR_KEY => '|',
589+
CsvEncoder::KEY_SEPARATOR_KEY => '-',
590+
]));
591591
}
592592

593593
public function testDecodeCustomSettingsPassedInConstructor()
@@ -604,7 +604,7 @@ public function testDecodeCustomSettingsPassedInConstructor()
604604
a;bar-baz
605605
'hell''o';b;c
606606
CSV
607-
, 'csv'));
607+
, 'csv'));
608608
}
609609

610610
public function testDecodeMalformedCollection()
@@ -637,18 +637,18 @@ public function testDecodeWithoutHeader()
637637
c,d
638638

639639
CSV
640-
, 'csv', [
641-
CsvEncoder::NO_HEADERS_KEY => true,
642-
]));
640+
, 'csv', [
641+
CsvEncoder::NO_HEADERS_KEY => true,
642+
]));
643643
$encoder = new CsvEncoder([CsvEncoder::NO_HEADERS_KEY => true]);
644644
$this->assertEquals([['a', 'b'], ['c', 'd']], $encoder->decode(<<<'CSV'
645645
a,b
646646
c,d
647647

648648
CSV
649-
, 'csv', [
650-
CsvEncoder::NO_HEADERS_KEY => true,
651-
]));
649+
, 'csv', [
650+
CsvEncoder::NO_HEADERS_KEY => true,
651+
]));
652652
}
653653

654654
public function testBOMIsAddedOnDemand()

Tests/Normalizer/FormErrorNormalizerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function setUp(): void
4242
new FormError('a', 'b', ['c', 'd'], 5, 'f'),
4343
new FormError(1, 2, [3, 4], 5, 6),
4444
])
45-
);
45+
);
4646
}
4747

4848
public function testSupportsNormalizationWithWrongClass()
@@ -130,21 +130,21 @@ public function testNormalizeWithChildren()
130130
->willReturn(new FormErrorIterator($form1, [
131131
new FormError('b'),
132132
])
133-
);
133+
);
134134
$form1->method('getName')->willReturn('form1');
135135

136136
$form2->method('getErrors')
137137
->willReturn(new FormErrorIterator($form1, [
138138
new FormError('c'),
139139
])
140-
);
140+
);
141141
$form2->method('getName')->willReturn('form2');
142142

143143
$form3->method('getErrors')
144144
->willReturn(new FormErrorIterator($form1, [
145145
new FormError('d'),
146146
])
147-
);
147+
);
148148
$form3->method('getName')->willReturn('form3');
149149

150150
$form2->method('all')->willReturn([$form3]);
@@ -156,7 +156,7 @@ public function testNormalizeWithChildren()
156156
->willReturn(new FormErrorIterator($form, [
157157
new FormError('a'),
158158
])
159-
);
159+
);
160160

161161
$this->assertEquals($exptected, $this->normalizer->normalize($form));
162162
}

0 commit comments

Comments
 (0)