Skip to content

Commit 9280b09

Browse files
committed
fix: phpstan 3
1 parent 1a7d771 commit 9280b09

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Helpers.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static function isReallyWritable(string $file): bool
134134
*/
135135
public static function isAbsoluteUrl(string $path): bool
136136
{
137-
return preg_match('#^(?:[a-z+]+:)?//#i', $path);
137+
return preg_match('#^(?:[a-z+]+:)?//#i', $path) !== false;
138138
}
139139

140140
/**
@@ -156,7 +156,7 @@ public static function isAbsolutePath(string $path, bool $verbose = false): bool
156156
// Chemin réel.
157157
$regExp .= '(?<path>(?:[[:print:]]*))$%';
158158
$parts = [];
159-
159+
160160
if (!preg_match($regExp, $path, $parts)) {
161161
if ($verbose) {
162162
throw new \DomainException(sprintf('Le chemin n\'est PAS valide, a été donné %s', $path));
@@ -174,8 +174,8 @@ public static function isBase64Encoded(string $input)
174174
{
175175
if (false === $str = base64_decode($input, false)) {
176176
return false;
177-
}
178-
177+
}
178+
179179
return $input === base64_encode($str);
180180
}
181181

0 commit comments

Comments
 (0)