| Total Complexity | 3 |
| Total Lines | 48 |
| 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 | $this->package('sarahman/laravel-http-request-api-log', null, __DIR__ . '/../../../../laravel-http-request-api-log/src'); |
||
| 27 | |||
| 28 | include __DIR__ . '/config/config.php'; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Register the service provider. |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function register() |
||
| 37 | { |
||
| 38 | $this->app['oauth-tokens-client.service'] = $this->app->share(function ($app) { |
||
| 39 | return new OAuthClient( |
||
| 40 | new Client, |
||
| 41 | $app['cache.store'], |
||
| 42 | Config::get('oauth-tokens-client::OAUTH_CREDENTIAL'), |
||
| 43 | Config::get('oauth-tokens-client::TOKEN_PREFIXES'), |
||
| 44 | Config::get('oauth-tokens-client::LOCK_KEY') |
||
| 45 | ); |
||
| 46 | }); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get the services provided by the provider. |
||
| 51 | * |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function provides() |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
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.