diff --git a/src/Storage/Device.php b/src/Storage/Device.php index 2ba7b7c0..ea7915ad 100644 --- a/src/Storage/Device.php +++ b/src/Storage/Device.php @@ -275,9 +275,9 @@ abstract public function getPartitionTotalSpace(): float; /** * Get all files and directories inside a directory. * - * @param string $dir Directory to scan - * @param int $keys - * @param string $continuationToken + * @param string $dir Directory to scan + * @param int $keys + * @param string $continuationToken * @return array */ abstract public function getFiles(string $dir, int $keys = self::MAX_KEYS, string $continuationToken = ''): array; diff --git a/src/Storage/Device/S3.php b/src/Storage/Device/S3.php index 79bc2835..d46bdbd5 100644 --- a/src/Storage/Device/S3.php +++ b/src/Storage/Device/S3.php @@ -483,8 +483,8 @@ public function delete(string $path, bool $recursive = false): bool */ private function listObjects(string $prefix = '', int $maxKeys = self::MAX_KEYS, string $continuationToken = ''): array { - if($maxKeys > self::MAX_KEYS){ - throw new Exception('max-keys limit is ' . self::MAX_KEYS); + if ($maxKeys > self::MAX_KEYS) { + throw new Exception('max-keys limit is '.self::MAX_KEYS); } $uri = '/'; @@ -498,7 +498,7 @@ private function listObjects(string $prefix = '', int $maxKeys = self::MAX_KEYS, 'max-keys' => $maxKeys, ]; - if (!empty($continuationToken)) { + if (! empty($continuationToken)) { $parameters['continuation-token'] = $continuationToken; } @@ -664,9 +664,9 @@ public function getPartitionTotalSpace(): float /** * Get all files and directories inside a directory. * - * @param string $dir Directory to scan - * @param int $keys - * @param string $continuationToken + * @param string $dir Directory to scan + * @param int $keys + * @param string $continuationToken * @return array * * @throws Exception @@ -690,8 +690,9 @@ public function getFiles(string $dir, int $keys = self::MAX_KEYS, string $contin /** * Get file info * - * @param string $path + * @param string $path * @return array + * * @throws Exception */ private function getInfo(string $path): array