GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 385070...07c613 )
by .
04:20 queued 02:18
created

RethinkdbServiceProvider::provides()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace duxet\Rethinkdb;
4
5
use duxet\Rethinkdb\Console\Migrations\MigrateMakeCommand;
6
use duxet\Rethinkdb\Eloquent\Model;
7
use duxet\Rethinkdb\Migrations\MigrationCreator;
8
use Illuminate\Support\ServiceProvider;
9
10
class RethinkdbServiceProvider extends ServiceProvider
11
{
12
    /**
13
     * Bootstrap the application events.
14
     *
15
     * @return void
16
     */
17
    public function boot()
18
    {
19
        Model::setConnectionResolver($this->app['db']);
20
        Model::setEventDispatcher($this->app['events']);
21
    }
22
23
    /**
24
     * Register the service provider.
25
     *
26
     * @return void
27
     */
28
    public function register()
29
    {
30
        $this->app->resolving('db', function ($db) {
31
            $db->extend('rethinkdb', function ($config) {
32
                return new Connection($config);
33
            });
34
        });
35
36
        $this->app->singleton('command.rethink-migrate.make', function ($app) {
37
38
            $creator = new MigrationCreator($app['files']);
39
            $composer = $app['composer'];
40
41
            return new MigrateMakeCommand($creator, $composer);
42
        });
43
44
        $this->commands('command.rethink-migrate.make');
45
    }
46
47
    public function provides()
48
    {
49
        return ['command.rethink-migrate.make'];
50
    }
51
}
52