| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function register() |
||
| 17 | { |
||
| 18 | $this->app->singleton(InstallCommand::class, function ($app) { |
||
| 19 | return new InstallCommand(new DatabaseMigrationRepository($app['db'], 'content_migrations')); |
||
| 20 | }); |
||
| 21 | |||
| 22 | $this->app->singleton(MigrateCommand::class, function ($app) { |
||
| 23 | return new MigrateCommand( |
||
| 24 | new Migrator( |
||
| 25 | new DatabaseMigrationRepository($app['db'], 'content_migrations'), |
||
| 26 | $app['db'], |
||
| 27 | $app['files'], |
||
| 28 | $app['events'] |
||
| 29 | ), |
||
| 30 | $app[Dispatcher::class] |
||
|
|
|||
| 31 | ); |
||
| 32 | }); |
||
| 33 | |||
| 34 | $this->app->singleton(MigrateMakeCommand::class, function ($app) { |
||
| 35 | return new MigrateMakeCommand( |
||
| 36 | new MigrationCreator( |
||
| 37 | $app['files'], |
||
| 38 | __DIR__ . DIRECTORY_SEPARATOR . 'Console' . DIRECTORY_SEPARATOR . 'stubs' |
||
| 39 | ), |
||
| 40 | $app['composer'] |
||
| 41 | ); |
||
| 56 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.