| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 25 | public function register() |
|
| 31 | { |
||
| 32 | $marshalerOptions = [ |
||
| 33 | 25 | 'nullify_invalid' => true, |
|
| 34 | ]; |
||
| 35 | |||
| 36 | $this->app->singleton(DynamoDbClientInterface::class, function () use ($marshalerOptions) { |
||
| 37 | 25 | $client = new DynamoDbClientService(new Marshaler($marshalerOptions), new EmptyAttributeFilter()); |
|
| 38 | |||
| 39 | 25 | return $client; |
|
| 40 | 25 | }); |
|
| 41 | |||
| 42 | $this->app->singleton('dynamodb', function () { |
||
| 43 | 16 | return new DynamoDbManager(app(DynamoDbClientInterface::class)); |
|
| 44 | 25 | }); |
|
| 47 |
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.