| Conditions | 2 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | public function register() |
||
| 36 | { |
||
| 37 | $this->mergeConfigFrom(__DIR__.'/config/transmission.php', 'transmission'); |
||
| 38 | |||
| 39 | $this->app->singleton('transmission', function () { |
||
| 40 | $client = new Client( |
||
| 41 | config('transmission.host'), |
||
| 42 | config('transmission.port'), |
||
| 43 | config('transmission.username'), |
||
| 44 | config('transmission.password') |
||
| 45 | ); |
||
| 46 | |||
| 47 | if (config('transmission.enableTLS')) { |
||
| 48 | $client = $client->enableTLS(); |
||
| 49 | } |
||
| 50 | |||
| 51 | return $client; |
||
| 52 | }); |
||
| 53 | |||
| 54 | $this->app->alias('transmission', Client::class); |
||
| 55 | } |
||
| 57 |
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.