mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-22 18:28:26 +00:00
apply StyleCI recommendation
This commit is contained in:
parent
b4db5f8e57
commit
3146d41609
1 changed files with 1 additions and 2 deletions
|
|
@ -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()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue