composer run cs:fix

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2020-04-30 17:37:20 +02:00
parent cba7219b25
commit 1ef77ef948
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View file

@ -78,12 +78,12 @@ class SwiftFactory {
* @throws StorageAuthException
*/
public function getCachedTokenId() {
if ( !isset($this->params['cachedToken']) ) {
if (!isset($this->params['cachedToken'])) {
throw new StorageAuthException('Unauthenticated ObjectStore connection');
}
// Is it V2 token?
if ( isset($this->params['cachedToken']['token']) ) {
if (isset($this->params['cachedToken']['token'])) {
return $this->params['cachedToken']['token']['id'];
}