mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
address Scrutinizer warning
> The variable $bucket does not seem to be defined for all execution paths leading up to this point.
This commit is contained in:
parent
62bb68344c
commit
833cf93209
|
@ -67,8 +67,10 @@ class GoogleCloudStorage extends AbstractData
|
|||
$this->_client = class_exists('StorageClientStub', false) ?
|
||||
new \StorageClientStub(array()) :
|
||||
new StorageClient(array('suppressKeyFileNotice' => true));
|
||||
if (isset($bucket)) {
|
||||
$this->_bucket = $this->_client->bucket($bucket);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the google storage object key for $pasteid in $this->_bucket.
|
||||
|
|
Loading…
Reference in New Issue
Block a user