Skip to content

Commit bf3074e

Browse files
committed
formatting
1 parent 481539d commit bf3074e

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

tests/Migration/E2E/Sources/NHostTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ public function testRunTransfer($state)
109109
{
110110
$this->transfer->run(
111111
$this->source->getSupportedResources(),
112-
function () {}
112+
function () {
113+
}
113114
);
114115

115116
$this->assertCount(0, $this->transfer->getReport('error'));

tests/Migration/E2E/Sources/SupabaseTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public function testRunTransfer($state)
8989
{
9090
$this->transfer->run(
9191
$this->source->getSupportedResources(),
92-
function () {}
92+
function () {
93+
}
9394
);
9495

9596
$this->assertCount(0, $this->transfer->getReport('error'));

tests/Migration/Unit/General/CSVTest.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ public function testCSVExportWithSpecialCharacters()
169169
'mixed_field' => 'Text with "quotes", commas, and\nnewlines'
170170
]);
171171

172-
$csvDestination->testableImport([$row], function ($resources) {});
172+
$csvDestination->testableImport([$row], function ($resources) {
173+
});
173174
$csvDestination->shutdown();
174175

175176
$csvFile = $csvDestination->getLocalRoot() . '/test_db_test_table_id.csv';
@@ -215,7 +216,8 @@ public function testCSVExportWithArrays()
215216
'nested' => [['id' => 1], ['id' => 2]]
216217
]);
217218

218-
$csvDestination->testableImport([$row], function ($resources) {});
219+
$csvDestination->testableImport([$row], function ($resources) {
220+
});
219221
$csvDestination->shutdown();
220222

221223
$csvFile = $csvDestination->getLocalRoot() . '/test_db_test_table_id.csv';
@@ -262,7 +264,8 @@ public function testCSVExportWithNullValues()
262264
'false_bool' => false
263265
]);
264266

265-
$csvDestination->testableImport([$row], function ($resources) {});
267+
$csvDestination->testableImport([$row], function ($resources) {
268+
});
266269
$csvDestination->shutdown();
267270

268271
$csvFile = $csvDestination->getLocalRoot() . '/test_db_test_table_id.csv';
@@ -309,7 +312,8 @@ public function testCSVExportWithAllowedAttributes()
309312
'secret' => 'should_not_appear'
310313
]);
311314

312-
$csvDestination->testableImport([$row], function ($resources) {});
315+
$csvDestination->testableImport([$row], function ($resources) {
316+
});
313317
$csvDestination->shutdown();
314318

315319
$csvFile = $csvDestination->getLocalRoot() . '/test_db_test_table_id.csv';
@@ -365,7 +369,8 @@ public function testCSVExportImportCompatibility()
365369
$row = new Row('compat_row', $table, $originalData);
366370
$row->setPermissions(['read("user:123")']);
367371

368-
$csvDestination->testableImport([$row], function ($resources) {});
372+
$csvDestination->testableImport([$row], function ($resources) {
373+
});
369374
$csvDestination->shutdown();
370375

371376
// Verify the exported CSV can be parsed by PHP's built-in CSV functions

tests/Migration/Unit/General/TransferTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public function testRootResourceId(): void
3636
* Make sure we can't create a transfer with multiple root resources when supplying a rootResourceId
3737
*/
3838
try {
39-
$this->transfer->run([Resource::TYPE_USER, Resource::TYPE_DATABASE], function () {}, 'rootResourceId');
39+
$this->transfer->run([Resource::TYPE_USER, Resource::TYPE_DATABASE], function () {
40+
}, 'rootResourceId');
4041
$this->fail('Multiple root resources should not be allowed');
4142
} catch (\Exception $e) {
4243
$this->assertSame('Resource type must be set when resource ID is set.', $e->getMessage());
@@ -50,7 +51,8 @@ public function testRootResourceId(): void
5051
*/
5152
$this->transfer->run(
5253
[Resource::TYPE_DATABASE],
53-
function () {},
54+
function () {
55+
},
5456
'test',
5557
Resource::TYPE_DATABASE
5658
);

0 commit comments

Comments
 (0)