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 dd240f0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
}
],
"require": {
"php": "^8.0"
"php": "^8.0",
"aws/aws-sdk-php": "^3.158",
"google/apiclient": "^2.12",
"doctrine/dbal": "^3.4",
"league/flysystem": "^1.0",
"microsoft/azure-storage-blob": "^1.0",
"phpseclib/phpseclib": "^2.0",
"mongodb/mongodb": "^1.1",
"async-aws/simple-s3": "^0.1.1"
},
"conflict": {
"microsoft/windowsazure": "<0.4.3"
Expand Down
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 dd240f0

Please sign in to comment.