address Scrutinizer issues
This commit is contained in:
parent
1f2dddd9d8
commit
f04043a399
@ -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 '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user