From 1bf0465674ceae0082c62e757ecb2505add72700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 12 May 2024 04:48:21 +0000 Subject: [PATCH] Fix typos --- CHANGELOG.md | 2 +- README.md | 12 ++++++------ build/docs/base.md | 10 +++++----- phpstan.neon | 2 +- src/Stringy.php | 2 +- tests/StringyStrictTest.php | 18 +++++++++--------- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6af2c6f..485fcea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ - update vendor (UTF-8) ### 6.4.1 (2021-04-07) -- use Github Actions +- use GitHub Actions - use optimized phpdocs for phpstan - use phpdocs (generics) for collections diff --git a/README.md b/README.md index ae5fe7e..fed7921 100644 --- a/README.md +++ b/README.md @@ -625,7 +625,7 @@ EXAMPLE: **Parameters:** -- `array $options [optional]

An array of bcrypt hasing options.

` +- `array $options [optional]

An array of bcrypt hashing options.

` **Return:** - `static` @@ -3995,7 +3995,7 @@ From the project directory, tests can be ran using `phpunit` ## Support -For support and donations please visit [Github](https://github.com/voku/Stringy/) | [Issues](https://github.com/voku/Stringy/issues) | [PayPal](https://paypal.me/moelleken) | [Patreon](https://www.patreon.com/voku). +For support and donations please visit [GitHub](https://github.com/voku/Stringy/) | [Issues](https://github.com/voku/Stringy/issues) | [PayPal](https://paypal.me/moelleken) | [Patreon](https://www.patreon.com/voku). For status updates and release announcements please visit [Releases](https://github.com/voku/Stringy/releases) | [Twitter](https://twitter.com/suckup_de) | [Patreon](https://www.patreon.com/voku/posts). @@ -4003,11 +4003,11 @@ For professional support please contact [me](https://about.me/voku). ## Thanks -- Thanks to [GitHub](https://github.com) (Microsoft) for hosting the code and a good infrastructure including Issues-Managment, etc. +- Thanks to [GitHub](https://github.com) (Microsoft) for hosting the code and a good infrastructure including Issues-Management, etc. - Thanks to [IntelliJ](https://www.jetbrains.com) as they make the best IDEs for PHP and they gave me an open source license for PhpStorm! -- Thanks to [Travis CI](https://travis-ci.com/) for being the most awesome, easiest continous integration tool out there! -- Thanks to [StyleCI](https://styleci.io/) for the simple but powerfull code style check. -- Thanks to [PHPStan](https://github.com/phpstan/phpstan) && [Psalm](https://github.com/vimeo/psalm) for relly great Static analysis tools and for discover bugs in the code! +- Thanks to [Travis CI](https://travis-ci.com/) for being the most awesome, easiest continuous integration tool out there! +- Thanks to [StyleCI](https://styleci.io/) for the simple but powerful code style check. +- Thanks to [PHPStan](https://github.com/phpstan/phpstan) && [Psalm](https://github.com/vimeo/psalm) for really great Static analysis tools and for discover bugs in the code! ## License diff --git a/build/docs/base.md b/build/docs/base.md index f255a4d..cfd4636 100644 --- a/build/docs/base.md +++ b/build/docs/base.md @@ -205,7 +205,7 @@ From the project directory, tests can be ran using `phpunit` ## Support -For support and donations please visit [Github](https://github.com/voku/Stringy/) | [Issues](https://github.com/voku/Stringy/issues) | [PayPal](https://paypal.me/moelleken) | [Patreon](https://www.patreon.com/voku). +For support and donations please visit [GitHub](https://github.com/voku/Stringy/) | [Issues](https://github.com/voku/Stringy/issues) | [PayPal](https://paypal.me/moelleken) | [Patreon](https://www.patreon.com/voku). For status updates and release announcements please visit [Releases](https://github.com/voku/Stringy/releases) | [Twitter](https://twitter.com/suckup_de) | [Patreon](https://www.patreon.com/voku/posts). @@ -213,11 +213,11 @@ For professional support please contact [me](https://about.me/voku). ## Thanks -- Thanks to [GitHub](https://github.com) (Microsoft) for hosting the code and a good infrastructure including Issues-Managment, etc. +- Thanks to [GitHub](https://github.com) (Microsoft) for hosting the code and a good infrastructure including Issues-Management, etc. - Thanks to [IntelliJ](https://www.jetbrains.com) as they make the best IDEs for PHP and they gave me an open source license for PhpStorm! -- Thanks to [Travis CI](https://travis-ci.com/) for being the most awesome, easiest continous integration tool out there! -- Thanks to [StyleCI](https://styleci.io/) for the simple but powerfull code style check. -- Thanks to [PHPStan](https://github.com/phpstan/phpstan) && [Psalm](https://github.com/vimeo/psalm) for relly great Static analysis tools and for discover bugs in the code! +- Thanks to [Travis CI](https://travis-ci.com/) for being the most awesome, easiest continuous integration tool out there! +- Thanks to [StyleCI](https://styleci.io/) for the simple but powerful code style check. +- Thanks to [PHPStan](https://github.com/phpstan/phpstan) && [Psalm](https://github.com/vimeo/psalm) for really great Static analysis tools and for discover bugs in the code! ## License diff --git a/phpstan.neon b/phpstan.neon index 453010b..a7a1e36 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,7 +4,7 @@ parameters: - %currentWorkingDirectory%/src/ reportUnmatchedIgnoredErrors: false ignoreErrors: - # false-postive? + # false-positive? - '#Arrayy\\Collection\\AbstractCollection#' # not supported - '#bound type \(int\|string\) is not supported#' diff --git a/src/Stringy.php b/src/Stringy.php index df8eb5a..a8abb19 100644 --- a/src/Stringy.php +++ b/src/Stringy.php @@ -436,7 +436,7 @@ public function base64Encode(): self * EXAMPLE: * * - * @param array $options [optional]

An array of bcrypt hasing options.

+ * @param array $options [optional]

An array of bcrypt hashing options.

* * @psalm-mutation-free * diff --git a/tests/StringyStrictTest.php b/tests/StringyStrictTest.php index 1294f29..9308e2e 100644 --- a/tests/StringyStrictTest.php +++ b/tests/StringyStrictTest.php @@ -1876,20 +1876,20 @@ public function testAddRandomString() public function testAddUniqueIdentifier() { - $uniquIDs = []; + $uniqueIDs = []; for ($i = 0; $i <= 100; ++$i) { $stringy = S::create(''); - $uniquIDs[] = (string) $stringy->appendUniqueIdentifier(); + $uniqueIDs[] = (string) $stringy->appendUniqueIdentifier(); } // detect duplicate values in the array - foreach (\array_count_values($uniquIDs) as $uniquID => $count) { + foreach (\array_count_values($uniqueIDs) as $uniqueID => $count) { static::assertSame(1, $count); } // check the string length - foreach ($uniquIDs as $uniquID) { - static::assertSame(32, \strlen($uniquID)); + foreach ($uniqueIDs as $uniqueID) { + static::assertSame(32, \strlen($uniqueID)); } } @@ -4063,8 +4063,8 @@ public function titleizeForHumansProvider() 'Notes and Observations Regarding Apple’s Announcements From ‘The Beat Goes On’ Special Event', ], [ - 'Read markdown_rules.txt to find out how _underscores around words_ will be interpretted', - 'Read markdown_rules.txt to Find Out How _Underscores Around Words_ Will Be Interpretted', + 'Read markdown_rules.txt to find out how _underscores around words_ will be interpreted', + 'Read markdown_rules.txt to Find Out How _Underscores Around Words_ Will Be Interpreted', ], [ "Q&A with Steve Jobs: 'That's what happens in technology'", @@ -4432,13 +4432,13 @@ public function testUtf8ify() 'κόσμε' => ['κόσμε' => 'κόσμε'], '中' => ['中' => '中'], '«foobar»' => ['«foobar»' => '«foobar»'], - // Valid UTF-8 + Invalied Chars + // Valid UTF-8 + Invalid Chars "κόσμε\xa0\xa1-öäü" => ['κόσμε-öäü' => 'κόσμε-öäü'], // Valid ASCII 'a' => ['a' => 'a'], // Valid emoji (non-UTF-8) '😃' => ['😃' => '😃'], - // Valid ASCII + Invalied Chars + // Valid ASCII + Invalid Chars "a\xa0\xa1-öäü" => ['a-öäü' => 'a-öäü'], // Valid 2 Octet Sequence "\xc3\xb1" => ['ñ' => 'ñ'],