| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ServiceProviderForLaravel4 extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Indicates if loading of the provider is deferred. |
||
| 13 | * |
||
| 14 | * @var bool |
||
| 15 | */ |
||
| 16 | protected $defer = true; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Bootstrap the application events. |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function boot() |
||
| 24 | { |
||
| 25 | $this->package('sarahman/oauth-tokens-client', null, __DIR__); |
||
|
|
|||
| 26 | |||
| 27 | include __DIR__ . '/config/config.php'; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Register the service provider. |
||
| 32 | * |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | public function register() |
||
| 36 | { |
||
| 37 | $this->app['oauth-tokens-client.service'] = $this->app->share(function ($app) { |
||
| 38 | return new OAuthClient( |
||
| 39 | new Client, |
||
| 40 | $app['cache.store'], |
||
| 41 | Config::get('oauth-tokens-client::OAUTH_CREDENTIAL'), |
||
| 42 | Config::get('oauth-tokens-client::TOKEN_PREFIXES'), |
||
| 43 | Config::get('oauth-tokens-client::LOCK_KEY') |
||
| 44 | ); |
||
| 45 | }); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the services provided by the provider. |
||
| 50 | * |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | public function provides() |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
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.