Skip to content

Commit 63aef52

Browse files
authored
update links (#98)
1 parent 2f84cbf commit 63aef52

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Inflector.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ final class Inflector
2020
* `获取到 どちら Українська: ґ,є, Српска: ђ, њ, џ! ¿Español?` will be transliterated to
2121
* `huò qǔ dào dochira Ukraí̈nsʹka: g̀,ê, Srpska: đ, n̂, d̂! ¿Español?`.
2222
*
23-
* For detailed information see [unicode normalization forms](http://unicode.org/reports/tr15/#Normalization_Forms_Table)
23+
* For detailed information see [unicode normalization forms](https://unicode.org/reports/tr15/#Normalization_Forms_Table)
2424
*
25-
* @see http://unicode.org/reports/tr15/#Normalization_Forms_Table
25+
* @see https://unicode.org/reports/tr15/#Normalization_Forms_Table
2626
* @see toTransliterated()
2727
*/
2828
public const TRANSLITERATE_STRICT = 'Any-Latin; NFKD';
@@ -35,7 +35,7 @@ final class Inflector
3535
* `获取到 どちら Українська: ґ,є, Српска: ђ, њ, џ! ¿Español?` will be transliterated to
3636
* `huo qu dao dochira Ukrainsʹka: g,e, Srpska: d, n, d! ¿Espanol?`.
3737
*
38-
* @see http://unicode.org/reports/tr15/#Normalization_Forms_Table
38+
* @see https://unicode.org/reports/tr15/#Normalization_Forms_Table
3939
* @see toTransliterated()
4040
*/
4141
public const TRANSLITERATE_MEDIUM = 'Any-Latin; Latin-ASCII';
@@ -49,7 +49,7 @@ final class Inflector
4949
* `获取到 どちら Українська: ґ,є, Српска: ђ, њ, џ! ¿Español?` will be transliterated to
5050
* `huo qu dao dochira Ukrainska: g,e, Srpska: d, n, d! Espanol?`.
5151
*
52-
* @see http://unicode.org/reports/tr15/#Normalization_Forms_Table
52+
* @see https://unicode.org/reports/tr15/#Normalization_Forms_Table
5353
* @see toTransliterated()
5454
*/
5555
public const TRANSLITERATE_LOOSE = 'Any-Latin; Latin-ASCII; [\u0080-\uffff] remove';

src/StringHelper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function byteLength(?string $input): int
4747
*
4848
* @return string The extracted part of string, or FALSE on failure or an empty string.
4949
*
50-
* @see http://www.php.net/manual/en/function.substr.php
50+
* @see https://www.php.net/manual/en/function.substr.php
5151
*/
5252
public static function byteSubstring(string $input, int $start, int $length = null): string
5353
{
@@ -67,7 +67,7 @@ public static function byteSubstring(string $input, int $start, int $length = nu
6767
*
6868
* @return string The trailing name component of the given path.
6969
*
70-
* @see http://www.php.net/manual/en/function.basename.php
70+
* @see https://www.php.net/manual/en/function.basename.php
7171
*/
7272
public static function baseName(string $path, string $suffix = ''): string
7373
{
@@ -93,7 +93,7 @@ public static function baseName(string $path, string $suffix = ''): string
9393
*
9494
* @return string The parent directory's path.
9595
*
96-
* @see http://www.php.net/manual/en/function.basename.php
96+
* @see https://www.php.net/manual/en/function.basename.php
9797
*/
9898
public static function directoryName(string $path): string
9999
{
@@ -235,7 +235,7 @@ public static function endsWith(string $input, ?string $with): bool
235235
return true;
236236
}
237237

238-
// Warning check, see http://php.net/manual/en/function.substr-compare.php#refsect1-function.substr-compare-returnvalues
238+
// Warning check, see https://php.net/manual/en/function.substr-compare.php#refsect1-function.substr-compare-returnvalues
239239
if (self::byteLength($input) < $bytes) {
240240
return false;
241241
}

tests/StringHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function testBaseName(): void
8989
$this->assertEquals('file', StringHelper::baseName('/path/to/filete\st', 'te\st'));
9090
$this->assertEquals('st', StringHelper::baseName('/path/to/filete\st', 'te/st'));
9191

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

0 commit comments

Comments
 (0)