Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
secrethash committed Dec 11, 2024
1 parent 8092386 commit 7a44981
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/Bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,4 @@ protected function formatBucketName(string $name): string
{
return str(preg_replace('/[^a-zA-Z0-9]/', '', $name))->lower()->toString();
}

}
1 change: 0 additions & 1 deletion src/Exceptions/BaseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

abstract class BaseException extends Exception
{

protected array $data;

protected AwsException $awsException;
Expand Down
8 changes: 3 additions & 5 deletions src/Exceptions/CreateBucketException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@

class CreateBucketException extends BaseException
{

public function __construct(
protected Tenant $tenant,
protected string $bucketName,
protected AwsException $awsException
)
{
) {
$message = "[tenant-buckets] Error: (Tenant ID: {$tenant->id}) {$awsException->getAwsErrorMessage()}";
parent::__construct($message,$awsException->getCode(), $awsException);
parent::__construct($message, $awsException->getCode(), $awsException);

$this->setData();
}
Expand All @@ -30,7 +28,7 @@ private function setData(): static
'error_message' => $this->awsException->getAwsErrorMessage(),
'response' => $this->awsException->getResponse(),
];

return $this;
}

}
8 changes: 3 additions & 5 deletions src/Exceptions/DeleteBucketException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@

class DeleteBucketException extends BaseException
{

public function __construct(
protected Tenant $tenant,
protected string $bucketName,
protected AwsException $awsException
)
{
) {
$message = "[tenant-buckets] Error: (Tenant ID: {$tenant->id}) {$awsException->getAwsErrorMessage()}";
parent::__construct($message,$awsException->getCode(), $awsException);
parent::__construct($message, $awsException->getCode(), $awsException);

$this->setData();
}
Expand All @@ -30,7 +28,7 @@ private function setData(): static
'error_message' => $this->awsException->getAwsErrorMessage(),
'response' => $this->awsException->getResponse(),
];

return $this;
}

}

0 comments on commit 7a44981

Please sign in to comment.