address Scrutinizer issues

This commit is contained in:
El RIDO 2021-06-16 05:50:41 +02:00
parent be164bb6a9
commit 9c09018e6e
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
2 changed files with 6 additions and 5 deletions

View File

@ -99,12 +99,13 @@ class Filesystem extends AbstractData
*/
public function read($pasteid)
{
if (!$this->exists($pasteid)) {
if (
!$this->exists($pasteid) ||
!$paste = self::_get(self::_dataid2path($pasteid) . $pasteid . '.php')
) {
return false;
}
return self::upgradePreV1Format(
self::_get(self::_dataid2path($pasteid) . $pasteid . '.php')
);
return self::upgradePreV1Format($paste);
}
/**

View File

@ -23,7 +23,7 @@ class GoogleCloudStorage extends AbstractData
*
* @access private
* @static
* @var Bucket
* @var \Google\Cloud\Storage\Bucket
*/
private static $_bucket = null;