laravel-notification-channels /
interfax
| 1 | <?php |
||
| 2 | |||
| 3 | namespace NotificationChannels\Interfax; |
||
| 4 | |||
| 5 | use Illuminate\Support\ServiceProvider; |
||
| 6 | use Interfax\Client; |
||
| 7 | |||
| 8 | class InterfaxServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | 18 | public function boot() |
|
| 11 | { |
||
| 12 | 18 | $this->app->when(InterfaxChannel::class) |
|
|
0 ignored issues
–
show
|
|||
| 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 | }); |
||
| 26 | } |
||
| 27 | } |
||
| 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.