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