Skip to content

Commit ac6d16b

Browse files
committed
Reconfigure PHP CS Fixer and run again
1 parent a6fc1f7 commit ac6d16b

29 files changed

Lines changed: 39 additions & 37 deletions

.php-cs-fixer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@
3737
'import_functions' => true,
3838
],
3939
'heredoc_indentation' => ['indentation' => 'same_as_start'],
40-
'mb_str_functions' => true,
40+
//'mb_str_functions' => true,
4141
'native_constant_invocation' => true,
4242
'nullable_type_declaration_for_default_null_value' => true,
4343
'static_lambda' => true,
4444
'ternary_to_null_coalescing' => true,
4545
'use_arrow_functions' => true,
46+
'php_unit_data_provider_name' => false,
47+
'php_unit_data_provider_method_order' => false,
4648
])
4749
->setFinder(
4850
PhpCsFixer\Finder::create()

tests/bundle/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function testInvalidNamedObjectsConfiguration(array $configuration): void
158158
$this->assertConfigurationIsInvalid($configuration);
159159
}
160160

161-
public static function invalidNamedObjectsProvider(): array
161+
public static function invalidNamedObjectsProvider(): iterable
162162
{
163163
return [
164164
[

tests/lib/API/Search/QueryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function testSettingNextCursor(): void
199199
);
200200
}
201201

202-
public static function constructorPropsProvider(): array
202+
public static function constructorPropsProvider(): iterable
203203
{
204204
return [
205205
[
@@ -264,7 +264,7 @@ public static function constructorPropsProvider(): array
264264
];
265265
}
266266

267-
public static function remoteIdsProvider(): array
267+
public static function remoteIdsProvider(): iterable
268268
{
269269
return [
270270
[

tests/lib/API/Search/ResultTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testConstructor(
3737
);
3838
}
3939

40-
public static function dataProvider(): array
40+
public static function dataProvider(): iterable
4141
{
4242
return [
4343
[0, null, []],

tests/lib/API/Upload/ResourceStructTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function testCreate(
142142
);
143143
}
144144

145-
public static function dataProvider(): array
145+
public static function dataProvider(): iterable
146146
{
147147
return [
148148
[

tests/lib/API/Values/FolderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testCreateFromPath(string $name, ?Folder $parent, bool $isRoot,
9191
);
9292
}
9393

94-
public static function dataProvider(): array
94+
public static function dataProvider(): iterable
9595
{
9696
return [
9797
[

tests/lib/Core/Provider/Cloudinary/Converter/ResourceTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testGetDocumentFormats(): void
5454
);
5555
}
5656

57-
public static function fromCloudinaryDataProvider(): array
57+
public static function fromCloudinaryDataProvider(): iterable
5858
{
5959
return [
6060
['image', null, RemoteResource::TYPE_IMAGE],
@@ -76,7 +76,7 @@ public static function fromCloudinaryDataProvider(): array
7676
];
7777
}
7878

79-
public static function toCloudinaryTypeProvider(): array
79+
public static function toCloudinaryTypeProvider(): iterable
8080
{
8181
return [
8282
[RemoteResource::TYPE_IMAGE, 'image'],

tests/lib/Core/Provider/Cloudinary/Converter/VisibilityTypeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,31 @@ public function testToCloudinaryAccessControl(string $visibility, array $expecte
5656
);
5757
}
5858

59-
public static function fromCloudinaryTypeProvider(): array
59+
public static function fromCloudinaryTypeProvider(): iterable
6060
{
6161
return [
6262
['upload', RemoteResource::VISIBILITY_PUBLIC],
6363
['authenticated', RemoteResource::VISIBILITY_PROTECTED],
6464
];
6565
}
6666

67-
public static function toCloudinaryTypeProvider(): array
67+
public static function toCloudinaryTypeProvider(): iterable
6868
{
6969
return [
7070
[RemoteResource::VISIBILITY_PUBLIC, 'upload'],
7171
[RemoteResource::VISIBILITY_PROTECTED, 'authenticated'],
7272
];
7373
}
7474

75-
public static function toCloudinaryAccessModeProvider(): array
75+
public static function toCloudinaryAccessModeProvider(): iterable
7676
{
7777
return [
7878
[RemoteResource::VISIBILITY_PUBLIC, 'public'],
7979
[RemoteResource::VISIBILITY_PROTECTED, 'authenticated'],
8080
];
8181
}
8282

83-
public static function toCloudinaryAccessControlProvider(): array
83+
public static function toCloudinaryAccessControlProvider(): iterable
8484
{
8585
return [
8686
[RemoteResource::VISIBILITY_PUBLIC, [['access_type' => 'anonymous']]],

tests/lib/Core/Provider/Cloudinary/Factory/RemoteResourceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function testCreateMissingUrls(): void
9393
$this->dynamicFolderModeRemoteResourceFactory->create(['public_id' => 'test']);
9494
}
9595

96-
public static function createDataProvider(): array
96+
public static function createDataProvider(): iterable
9797
{
9898
return [
9999
[

tests/lib/Core/Provider/Cloudinary/Factory/SearchResultTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testCreate(array $data, SearchResult $expectedResult): void
4747
);
4848
}
4949

50-
public static function createDataProvider(): array
50+
public static function createDataProvider(): iterable
5151
{
5252
return [
5353
[

0 commit comments

Comments
 (0)