apply StyleCI recommendation

This commit is contained in:
El RIDO 2025-11-20 08:28:50 +01:00
parent b4db5f8e57
commit 3146d41609
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -342,8 +342,7 @@ class GoogleCloudStorage extends AbstractData
}
try {
foreach ($this->_bucket->objects(array('prefix' => $prefix)) as $object) {
$metadata = $object->info()['metadata'];
$expire_at = $metadata['expire_date'] ?? '';
$expire_at = $object->info()['metadata']['expire_date'] ?? '';
if (is_numeric($expire_at) && intval($expire_at) < $now) {
array_push($expired, basename($object->name()));
}