| Conditions | 2 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 18 | public function handle(array $params = []): mixed |
|
| 30 | { |
||
| 31 | try { |
||
| 32 | 18 | $ver = $this->client->getConn()->getBucketVersioning([ |
|
| 33 | 18 | 'Bucket' => $params[ 'bucket' ] |
|
| 34 | 18 | ]); |
|
| 35 | |||
| 36 | 17 | return $ver[ 'Status' ] === 'Enabled'; |
|
| 37 | 1 | } catch (Exception $e) { |
|
| 38 | 1 | return $this->commandHandlerLogger?->logExceptionAndReturnFalse($e) ?? false; |
|
| 39 | } |
||
| 52 |