Skip to content

Commit

Permalink
refactor: fix php-cs-fixer error
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller committed Feb 26, 2024
1 parent ecb8a4c commit 9d8662a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Gaufrette/Util/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ public static function normalize(string $path): string
$path = str_replace('\\', '/', $path);
$prefix = static::getAbsolutePrefix($path);
$path = substr($path, strlen($prefix));
$parts = array_filter(explode('/', $path), 'strlen');
$parts = array_filter(
explode('/', $path),
function (string $part): bool {
return '' === $part;
},
);
$tokens = [];

foreach ($parts as $part) {
Expand Down

0 comments on commit 9d8662a

Please sign in to comment.