Skip to content

Commit ea48cdd

Browse files
composer(deps): bump friendsofphp/php-cs-fixer from 3.22.0 to 3.25.0 in /vendor-bin/php-cs-fixer (#686)
* composer(deps): bump friendsofphp/php-cs-fixer Bumps [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) from 3.22.0 to 3.25.0. - [Release notes](https://github.com/PHP-CS-Fixer/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.22.0...v3.25.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' * Fix: Run 'make baseline' --------- 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 849ff23 commit ea48cdd

File tree

18 files changed

+94
-346
lines changed

18 files changed

+94
-346
lines changed

psalm.baseline.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
// remove backslashes (that are not followed by another backslash) because they are escape characters
147147
$match = preg_replace('/\\\(?!\\\)/', '', $matches[1]);
148148
$randomElement = Base::randomElement(str_split($match));
149+
149150
//[.] should not be a random character, but a literal .
150151
return str_replace('.', '\.', $randomElement);
151152
}</code>

src/Faker/Factory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ protected static function getProviderClassname($provider, $locale = '')
3838
if ($providerClass = self::findProviderClassname($provider, $locale)) {
3939
return $providerClass;
4040
}
41+
4142
// fallback to default locale
4243
if ($providerClass = self::findProviderClassname($provider, static::DEFAULT_LOCALE)) {
4344
return $providerClass;
4445
}
46+
4547
// fallback to no locale
4648
if ($providerClass = self::findProviderClassname($provider)) {
4749
return $providerClass;

src/Faker/Provider/Base.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ public static function regexify($regex = '')
576576
// remove backslashes (that are not followed by another backslash) because they are escape characters
577577
$match = preg_replace('/\\\(?!\\\)/', '', $matches[1]);
578578
$randomElement = Base::randomElement(str_split($match));
579+
579580
//[.] should not be a random character, but a literal .
580581
return str_replace('.', '\.', $randomElement);
581582
}, $regex);

src/Faker/Provider/Image.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public static function image(
123123
);
124124

125125
$dir = null === $dir ? sys_get_temp_dir() : $dir; // GNU/Linux / OS X / Windows compatible
126+
126127
// Validate directory path
127128
if (!is_dir($dir) || !is_writable($dir)) {
128129
throw new \InvalidArgumentException(sprintf('Cannot write to directory "%s"', $dir));

src/Faker/Provider/cs_CZ/Person.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ public function birthNumber($gender = null, $minAge = 0, $maxAge = 100, $slashPr
451451
if ($gender == static::GENDER_FEMALE) {
452452
$month += 50;
453453
}
454+
454455
// from year 2004 everyone has +20 to month when birth numbers in one day are exhausted
455456
if ($year >= 2004 && $this->generator->boolean(10)) {
456457
$month += 20;

src/Faker/Provider/en_ZA/Person.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ class Person extends \Faker\Provider\Person
135135
/**
136136
* @see https://en.wikipedia.org/wiki/National_identification_number#South_Africa
137137
*
138-
* @param \DateTime $birthdate
139-
* @param bool $citizen
140-
* @param string $gender
138+
* @param bool $citizen
139+
* @param string $gender
141140
*
142141
* @return string
143142
*/

src/Faker/Provider/fi_FI/Person.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ class Person extends \Faker\Provider\Person
9191
*
9292
* @see http://www.finlex.fi/fi/laki/ajantasa/2010/20100128
9393
*
94-
* @param \DateTime $birthdate
95-
* @param string $gender Person::GENDER_MALE || Person::GENDER_FEMALE
94+
* @param string $gender Person::GENDER_MALE || Person::GENDER_FEMALE
9695
*
9796
* @return string on format DDMMYYCZZZQ, where DDMMYY is the date of birth, C the century sign, ZZZ the individual number and Q the control character (checksum)
9897
*/

src/Faker/Provider/ja_JP/Text.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,12 @@ protected static function appendEnd($text)
628628
$chars = static::split($text);
629629
$last = end($chars);
630630
}
631+
631632
// if the last char is a not-valid-end punctuation, remove it
632633
if (in_array($last, static::$notEndPunct, false)) {
633634
$text = preg_replace('/.$/u', '', $text);
634635
}
636+
635637
// if the last char is not a valid punctuation, append a default one.
636638
return in_array($last, static::$endPunct, false) ? $text : $text . '';
637639
}

src/Faker/Provider/kk_KZ/Company.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public static function companyNameSuffix()
5454
*
5555
* @see http://egov.kz/wps/portal/Content?contentPath=%2Fegovcontent%2Fbus_business%2Ffor_businessmen%2Farticle%2Fbusiness_identification_number&lang=en
5656
*
57-
* @param \DateTime $registrationDate
58-
*
5957
* @return string 12 digits, like 150140000019
6058
*/
6159
public static function businessIdentificationNumber(\DateTime $registrationDate = null)

src/Faker/Provider/kk_KZ/Person.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ private static function getCenturyByYear($year)
207207
* @see http://egov.kz/wps/portal/Content?contentPath=%2Fegovcontent%2Fcitizen_migration%2Fpassport_id_card%2Farticle%2Fiin_info&lang=en
208208
* @see https://ru.wikipedia.org/wiki/%D0%98%D0%BD%D0%B4%D0%B8%D0%B2%D0%B8%D0%B4%D1%83%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9_%D0%B8%D0%B4%D0%B5%D0%BD%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80
209209
*
210-
* @param \DateTime $birthDate
211-
* @param int $gender
210+
* @param int $gender
212211
*
213212
* @return string 12 digits, like 780322300455
214213
*/

0 commit comments

Comments
 (0)