Skip to content

Commit

Permalink
update links (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arhell authored Mar 15, 2023
1 parent 2f84cbf commit 63aef52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/Inflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ final class Inflector
* `获取到 どちら Українська: ґ,є, Српска: ђ, њ, џ! ¿Español?` will be transliterated to
* `huò qǔ dào dochira Ukraí̈nsʹka: g̀,ê, Srpska: đ, n̂, d̂! ¿Español?`.
*
* For detailed information see [unicode normalization forms](http://unicode.org/reports/tr15/#Normalization_Forms_Table)
* For detailed information see [unicode normalization forms](https://unicode.org/reports/tr15/#Normalization_Forms_Table)
*
* @see http://unicode.org/reports/tr15/#Normalization_Forms_Table
* @see https://unicode.org/reports/tr15/#Normalization_Forms_Table
* @see toTransliterated()
*/
public const TRANSLITERATE_STRICT = 'Any-Latin; NFKD';
Expand All @@ -35,7 +35,7 @@ final class Inflector
* `获取到 どちら Українська: ґ,є, Српска: ђ, њ, џ! ¿Español?` will be transliterated to
* `huo qu dao dochira Ukrainsʹka: g,e, Srpska: d, n, d! ¿Espanol?`.
*
* @see http://unicode.org/reports/tr15/#Normalization_Forms_Table
* @see https://unicode.org/reports/tr15/#Normalization_Forms_Table
* @see toTransliterated()
*/
public const TRANSLITERATE_MEDIUM = 'Any-Latin; Latin-ASCII';
Expand All @@ -49,7 +49,7 @@ final class Inflector
* `获取到 どちら Українська: ґ,є, Српска: ђ, њ, џ! ¿Español?` will be transliterated to
* `huo qu dao dochira Ukrainska: g,e, Srpska: d, n, d! Espanol?`.
*
* @see http://unicode.org/reports/tr15/#Normalization_Forms_Table
* @see https://unicode.org/reports/tr15/#Normalization_Forms_Table
* @see toTransliterated()
*/
public const TRANSLITERATE_LOOSE = 'Any-Latin; Latin-ASCII; [\u0080-\uffff] remove';
Expand Down
8 changes: 4 additions & 4 deletions src/StringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function byteLength(?string $input): int
*
* @return string The extracted part of string, or FALSE on failure or an empty string.
*
* @see http://www.php.net/manual/en/function.substr.php
* @see https://www.php.net/manual/en/function.substr.php
*/
public static function byteSubstring(string $input, int $start, int $length = null): string
{
Expand All @@ -67,7 +67,7 @@ public static function byteSubstring(string $input, int $start, int $length = nu
*
* @return string The trailing name component of the given path.
*
* @see http://www.php.net/manual/en/function.basename.php
* @see https://www.php.net/manual/en/function.basename.php
*/
public static function baseName(string $path, string $suffix = ''): string
{
Expand All @@ -93,7 +93,7 @@ public static function baseName(string $path, string $suffix = ''): string
*
* @return string The parent directory's path.
*
* @see http://www.php.net/manual/en/function.basename.php
* @see https://www.php.net/manual/en/function.basename.php
*/
public static function directoryName(string $path): string
{
Expand Down Expand Up @@ -235,7 +235,7 @@ public static function endsWith(string $input, ?string $with): bool
return true;
}

// Warning check, see http://php.net/manual/en/function.substr-compare.php#refsect1-function.substr-compare-returnvalues
// Warning check, see https://php.net/manual/en/function.substr-compare.php#refsect1-function.substr-compare-returnvalues
if (self::byteLength($input) < $bytes) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/StringHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function testBaseName(): void
$this->assertEquals('file', StringHelper::baseName('/path/to/filete\st', 'te\st'));
$this->assertEquals('st', StringHelper::baseName('/path/to/filete\st', 'te/st'));

// http://www.php.net/manual/en/function.basename.php#72254
// https://www.php.net/manual/en/function.basename.php#72254
$this->assertEquals('foo', StringHelper::baseName('/bar/foo/'));
$this->assertEquals('foo', StringHelper::baseName('\\bar\\foo\\'));
}
Expand Down

0 comments on commit 63aef52

Please sign in to comment.