| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.864 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | 18 | public function boot() |
|
| 11 | { |
||
| 12 | 18 | $this->app->when(InterfaxChannel::class) |
|
|
|
|||
| 13 | 18 | ->needs(Client::class) |
|
| 14 | 18 | ->give(function () { |
|
| 15 | $options = [ |
||
| 16 | 'username' => config('services.interfax.username'), |
||
| 17 | 'password' => config('services.interfax.password'), |
||
| 18 | ]; |
||
| 19 | |||
| 20 | if (config('services.interfax.pci')) { |
||
| 21 | $options['base_uri'] = 'https://rest-sl.interfax.net'; |
||
| 22 | } |
||
| 23 | |||
| 24 | return new Client($options); |
||
| 25 | }); |
||
| 28 |
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.