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) 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')
);
} }
/** /**

View File

@ -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;