Skip to content

Commit

Permalink
Fix psalm finding by empty instead of isset test
Browse files Browse the repository at this point in the history
Signed-off-by: tsdicloud <[email protected]>
  • Loading branch information
tsdicloud authored and tsdicloud committed May 6, 2021
1 parent a369d07 commit 30f8aef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/private/Files/ObjectStore/S3ConnectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ public function getBucket() {
* @return array with encryption parameters
*/
public function getSseKmsPutParameters(): array {
if (isset($this->sseKmsBucketKeyId)) {
if (empty($this->sseKmsBucketKeyId)) {
return [
'ServerSideEncryption' => 'aws:kms',
];
} elseif (isset($this->sseKmsKeyId)) {
} elseif (empty($this->sseKmsKeyId)) {
return [
'ServerSideEncryption' => 'aws:kms',
'SSEKMSKeyId' => $this->sseKmsKeyId,
Expand All @@ -127,12 +127,12 @@ public function getSseKmsPutParameters(): array {
* @return array with encryption parameters
*/
public function getSseKmsGetParameters(): array {
if (isset($this->sseKmsBucketKeyId)) {
if (empty($this->sseKmsBucketKeyId)) {
return [
'ServerSideEncryption' => 'aws:kms',
'SSEKMSKeyId' => $this->sseKmsBucketKeyId,
];
} elseif (isset($this->sseKmsKeyId)) {
} elseif (empty($this->sseKmsKeyId)) {
return [
'ServerSideEncryption' => 'aws:kms',
'SSEKMSKeyId' => $this->sseKmsKeyId,
Expand Down

0 comments on commit 30f8aef

Please sign in to comment.