syntax fix, changelog

This commit is contained in:
Felix J. Ogris 2022-11-01 16:38:06 +01:00
parent 9a61e8fd48
commit bde5802a3a
7 changed files with 17 additions and 16 deletions

View file

@ -353,7 +353,7 @@ class GoogleCloudStorage extends AbstractData
public function getAllPastes()
{
$pastes = array();
$prefix = $this->_prefix;
$prefix = $this->_prefix;
if ($prefix != '') {
$prefix .= '/';
}
@ -361,7 +361,7 @@ class GoogleCloudStorage extends AbstractData
try {
foreach ($this->_bucket->objects(array('prefix' => $prefix)) as $object) {
$candidate = substr($object->name(), strlen($prefix));
if (strpos($candidate, "/") === false) {
if (strpos($candidate, '/') === false) {
$pastes[] = $candidate;
}
}