Skip to content

Commit 2f84cbf

Browse files
committed
Apply fixes from StyleCI
1 parent a1df50a commit 2f84cbf

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

src/Inflector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ final class Inflector
5656

5757
/**
5858
* @var string[] The rules for converting a word into its plural form.
59+
*
5960
* @psalm-var array<string,string>
6061
* The keys are the regular expressions and the values are the corresponding replacements.
6162
*/
@@ -95,6 +96,7 @@ final class Inflector
9596

9697
/**
9798
* @var string[] The rules for converting a word into its singular form.
99+
*
98100
* @psalm-var array<string, string>
99101
* The keys are the regular expressions and the values are the corresponding replacements.
100102
*/
@@ -293,6 +295,7 @@ final class Inflector
293295

294296
/**
295297
* @param string[] $rules The rules for converting a word into its plural form.
298+
*
296299
* @psalm-param array<string, string> $rules
297300
* The keys are the regular expressions and the values are the corresponding replacements.
298301
*
@@ -317,6 +320,7 @@ public function getPluralizeRules(): array
317320
/**
318321
* @param string[] $rules The rules for converting a word into its singular form.
319322
* The keys are the regular expressions and the values are the corresponding replacements.
323+
*
320324
* @psalm-param array<string, string> $rules
321325
*
322326
* @return self
@@ -339,6 +343,7 @@ public function getSingularizeRules(): array
339343

340344
/**
341345
* @param string[] $rules The special rules for converting a word between its plural form and singular form.
346+
*
342347
* @psalm-param array<string, string> $rules
343348
* The keys are the special words in singular form, and the values are the corresponding plural form.
344349
*

src/NumericHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Yiisoft\Strings;
66

77
use InvalidArgumentException;
8+
89
use function in_array;
910
use function is_bool;
1011

src/StringHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ public static function split(string $string, string $separator = '\R'): array
511511
* becomes "\.". Defaults to `false`.
512512
*
513513
* @return string[]
514+
*
514515
* @psalm-return list<string>
515516
*/
516517
public static function parsePath(

tests/StringHelperTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ public function uppercaseFirstCharacterProvider(): array
274274
/**
275275
* @param string $string
276276
* @param string $expectedResult
277+
*
277278
* @dataProvider uppercaseFirstCharacterProvider
278279
*/
279280
public function testUppercaseFirstCharacter(string $string, string $expectedResult): void
@@ -295,6 +296,7 @@ public function uppercaseFirstCharacterInEachWordProvider(): array
295296
/**
296297
* @param string $string
297298
* @param string $expectedResult
299+
*
298300
* @dataProvider uppercaseFirstCharacterInEachWordProvider
299301
*/
300302
public function testUppercaseFirstCharacterInEachWord(string $string, string $expectedResult): void

0 commit comments

Comments
 (0)