| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class GitHubServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Indicates if loading of the provider is deferred. |
||
| 11 | * |
||
| 12 | * @var bool |
||
| 13 | */ |
||
| 14 | protected $defer = true; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Register bindings in the container. |
||
| 18 | * |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | public function register() |
||
| 22 | { |
||
| 23 | $this->app->singleton('App\Hacktoberfest\GitHub\PullRequestChecker', function ($app) { |
||
| 24 | return new PullRequestChecker($app->make('cache')); |
||
| 25 | }); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get the services provided by the provider. |
||
| 30 | * |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | public function provides() |
||
| 36 | } |
||
| 37 | } |
||
| 38 |