| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function handle($params = []) |
||
| 27 | { |
||
| 28 | $bucketName = $params['bucket']; |
||
| 29 | |||
| 30 | $result = $this->client->getConn()->getBucketPolicy([ |
||
| 31 | 'Bucket' => $bucketName, |
||
| 32 | ]); |
||
| 33 | |||
| 34 | if (null !== $this->commandHandlerLogger) { |
||
| 35 | $this->commandHandlerLogger->log($this, sprintf('Size of \'%s\' bucket was successfully obtained', $bucketName)); |
||
| 36 | } |
||
| 37 | |||
| 38 | return (isset($result['Policy'])) ? json_decode($result['Policy']->getContents(), true) : ''; |
||
|
|
|||
| 39 | } |
||
| 51 |
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.