Skip to content

Commit 6d91404

Browse files
committed
Fixes codestyle
1 parent 9a8c91f commit 6d91404

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ public static function isEnd(string $haystack, string $needle, bool $caseSensiti
607607
*/
608608
public static function trim(string $value, bool $extendMode = false): string
609609
{
610-
$result = (string)trim($value);
610+
$result = trim($value);
611611

612612
if ($extendMode) {
613613
$result = trim($result, chr(0xE3) . chr(0x80) . chr(0x80));

src/Sys.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public static function getNameWithVersion(): string
257257
$name = self::getName();
258258
$version = self::getVersion();
259259

260-
return (string)trim("{$name} {$version}");
260+
return trim("{$name} {$version}");
261261
}
262262

263263
/**

src/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static function current(bool $addAuth = false): ?string
119119
$root = self::root($addAuth);
120120
$path = self::path();
121121

122-
return (string)trim("{$root}{$path}") ?: null;
122+
return trim("{$root}{$path}") ?: null;
123123
}
124124

125125
/**

0 commit comments

Comments
 (0)