address Scrutinizer issues

This commit is contained in:
El RIDO 2021-06-13 11:02:53 +02:00
parent 1f2dddd9d8
commit f04043a399
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ class GoogleCloudStorage extends AbstractData
if (strlen($name) > strlen($path) && substr($name, strlen($path), 1) !== '/') { if (strlen($name) > strlen($path) && substr($name, strlen($path), 1) !== '/') {
continue; continue;
} }
$info = $object->info(); $info = $object->info();
if (key_exists('metadata', $info) && key_exists('value', $info['metadata'])) { if (key_exists('metadata', $info) && key_exists('value', $info['metadata'])) {
$value = $info['metadata']['value']; $value = $info['metadata']['value'];
if (is_numeric($value) && intval($value) < $time) { if (is_numeric($value) && intval($value) < $time) {
@ -293,7 +293,7 @@ class GoogleCloudStorage extends AbstractData
$data = $o->downloadAsString(); $data = $o->downloadAsString();
return Json::decode($data); return Json::decode($data);
} catch (NotFoundException $e) { } catch (NotFoundException $e) {
return false; return '';
} }
} }