Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | public function bootstrap(Application $app) |
||
17 | { |
||
18 | $app->singleton('files', function (Application $app) { |
||
|
|||
19 | return new Filesystem(); |
||
20 | }); |
||
21 | |||
22 | $app->singleton('migration.repository', function (Application $app) { |
||
23 | $table = env('TG_DB_MIGRATIONS_TABLE', 'migrations'); |
||
24 | |||
25 | return new DatabaseMigrationRepository($app['db.resolver'], $table); |
||
26 | }); |
||
27 | |||
28 | $app->singleton('migrator', function (Application $app) { |
||
29 | $repository = $app['migration.repository']; |
||
30 | |||
31 | return new Migrator($repository, $app['db.resolver'], $app['files']); |
||
32 | }); |
||
33 | |||
34 | $app->singleton('migration.creator', function (Application $app) { |
||
35 | return new MigrationCreator($app['files']); |
||
36 | }); |
||
37 | } |
||
38 | } |
||
39 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.