Skip to content

Commit 02572a0

Browse files
composer(deps): bump friendsofphp/php-cs-fixer from 3.3.0 to 3.13.0 in /vendor-bin/php-cs-fixer (#551)
* composer(deps): bump friendsofphp/php-cs-fixer Bumps [friendsofphp/php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) from 3.3.0 to 3.13.0. - [Release notes](https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases) - [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md) - [Commits](PHP-CS-Fixer/PHP-CS-Fixer@v3.3.0...v3.13.0) --- updated-dependencies: - dependency-name: friendsofphp/php-cs-fixer dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fix: Run 'make cs' Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andreas Möller <[email protected]>
1 parent 9b8d695 commit 02572a0

File tree

12 files changed

+722
-311
lines changed

12 files changed

+722
-311
lines changed

src/Faker/Extension/Helper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ public static function numerify(string $string): string
5757
}
5858
}
5959

60-
$string = self::replaceWildcard($string, '%', static function () {
60+
return self::replaceWildcard($string, '%', static function () {
6161
return mt_rand(1, 9);
6262
});
63-
64-
return $string;
6563
}
6664

6765
/**

src/Faker/ORM/Propel/ColumnTypeGuesser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public function guessFormat(\ColumnMap $column)
6969
case \PropelColumnTypes::FLOAT:
7070
case \PropelColumnTypes::DOUBLE:
7171
case \PropelColumnTypes::REAL:
72-
return static function () use ($generator) {
73-
return $generator->randomFloat();
74-
};
72+
return static function () use ($generator) {
73+
return $generator->randomFloat();
74+
};
7575

7676
case \PropelColumnTypes::CHAR:
7777
case \PropelColumnTypes::VARCHAR:
@@ -102,7 +102,7 @@ public function guessFormat(\ColumnMap $column)
102102
case \PropelColumnTypes::OBJECT:
103103
case \PropelColumnTypes::PHP_ARRAY:
104104
default:
105-
// no smart way to guess what the user expects here
105+
// no smart way to guess what the user expects here
106106
return null;
107107
}
108108
}

src/Faker/ORM/Propel2/ColumnTypeGuesser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function guessFormat(ColumnMap $column)
105105
case PropelTypes::OBJECT:
106106
case PropelTypes::PHP_ARRAY:
107107
default:
108-
// no smart way to guess what the user expects here
108+
// no smart way to guess what the user expects here
109109
return null;
110110
}
111111
}

src/Faker/Provider/en_GB/Company.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class Company extends \Faker\Provider\Company
2121
public static function vat(string $type = null): string
2222
{
2323
switch ($type) {
24-
2524
case static::VAT_TYPE_BRANCH:
2625
return static::generateBranchTraderVatNumber();
2726

@@ -33,7 +32,6 @@ public static function vat(string $type = null): string
3332

3433
default:
3534
return static::generateStandardVatNumber();
36-
3735
}
3836
}
3937

src/Faker/Provider/fr_FR/Company.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ protected static function isCatchPhraseValid($catchPhrase)
173173

174174
/**
175175
* @see http://www.pole-emploi.fr/candidat/le-code-rome-et-les-fiches-metiers-@/article.jspz?id=60702
176+
*
176177
* @note Randomly took 300 from this list
177178
*/
178179
protected static $jobTitleFormat = [

src/Faker/Provider/ro_RO/Person.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ protected function getDateOfBirth($dateOfBirth)
163163
switch (count($dateOfBirthParts)) {
164164
case 1:
165165
$dateOfBirthParts[] = $baseDate->format('m');
166-
//don't break, we need the day also
167-
// no break
166+
//don't break, we need the day also
167+
// no break
168168
case 2:
169169
$dateOfBirthParts[] = $baseDate->format('d');
170-
//don't break, next line will
171-
// no break
170+
//don't break, next line will
171+
// no break
172172
case 3:
173173
break;
174174

src/Faker/Provider/ru_RU/Company.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class Company extends \Faker\Provider\Company
4444

4545
/**
4646
* @see https://ru.wikipedia.org/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:%D0%9F%D1%80%D0%BE%D1%84%D0%B5%D1%81%D1%81%D0%B8%D0%B8
47+
*
4748
* @note Randomly took from this list - some jobs titles for each letter
4849
*/
4950
protected static $jobTitleFormat = [

src/Faker/Provider/tr_TR/Company.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Company extends \Faker\Provider\Company
3131

3232
/**
3333
* @see https://tr.wikipedia.org/wiki/Meslekler_listesi
34+
*
3435
* @note Randomly took 300 from this list
3536
*/
3637
protected static $jobTitleFormat = [

test/Faker/Extension/ContainerBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testAddRejectsInvalidValue($value): void
3434
}
3535

3636
/**
37-
* @return \Generator<string, array{0: array|bool|float|int|null|resource}>
37+
* @return \Generator<string, array{0: array|bool|float|int|resource|null}>
3838
*/
3939
public function provideInvalidValue(): \Generator
4040
{

test/Faker/Provider/ro_RO/PersonTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public function testInvalidYearThrowsException($value)
138138

139139
/**
140140
* @param string $value
141+
*
141142
* @dataProvider validCountyCodeProvider
142143
*/
143144
public function testValidCountyCodeReturnsValidCnp($value)
@@ -151,6 +152,7 @@ public function testValidCountyCodeReturnsValidCnp($value)
151152

152153
/**
153154
* @param string $value
155+
*
154156
* @dataProvider invalidCountyCodeProvider
155157
*/
156158
public function testInvalidCountyCodeThrowsException($value)

0 commit comments

Comments
 (0)