| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 1 | public function handle(array $params = []): mixed |
|
| 28 | { |
||
| 29 | 1 | $bucketName = $params[ 'bucket' ]; |
|
| 30 | |||
| 31 | 1 | $result = $this->client->getConn()->getBucketPolicy([ |
|
| 32 | 1 | 'Bucket' => $bucketName, |
|
| 33 | 1 | ]); |
|
| 34 | |||
| 35 | 1 | $this->commandHandlerLogger?->log($this, sprintf('Size of \'%s\' bucket was successfully obtained', $bucketName)); |
|
| 36 | |||
| 37 | 1 | return (isset($result[ 'Policy' ])) ? json_decode($result[ 'Policy' ]->getContents(), true) : ''; |
|
|
|
|||
| 38 | } |
||
| 50 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.