address Scrutinizer issues
This commit is contained in:
parent
be164bb6a9
commit
9c09018e6e
@ -99,12 +99,13 @@ class Filesystem extends AbstractData
|
|||||||
*/
|
*/
|
||||||
public function read($pasteid)
|
public function read($pasteid)
|
||||||
{
|
{
|
||||||
if (!$this->exists($pasteid)) {
|
if (
|
||||||
|
!$this->exists($pasteid) ||
|
||||||
|
!$paste = self::_get(self::_dataid2path($pasteid) . $pasteid . '.php')
|
||||||
|
) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return self::upgradePreV1Format(
|
return self::upgradePreV1Format($paste);
|
||||||
self::_get(self::_dataid2path($pasteid) . $pasteid . '.php')
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +23,7 @@ class GoogleCloudStorage extends AbstractData
|
|||||||
*
|
*
|
||||||
* @access private
|
* @access private
|
||||||
* @static
|
* @static
|
||||||
* @var Bucket
|
* @var \Google\Cloud\Storage\Bucket
|
||||||
*/
|
*/
|
||||||
private static $_bucket = null;
|
private static $_bucket = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user