mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
apply StyleCI recommendation
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user