| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | View Code Duplication | public static function register(Cli $cli) |
|
| 56 | { |
||
| 57 | $cli = static::registerDatabaseOpts($cli); |
||
| 58 | $cli = static::registerMigrationOpts($cli); |
||
| 59 | |||
| 60 | return $cli |
||
| 61 | ->command(static::$name) |
||
| 62 | ->description('Rollback the last database migration.') |
||
| 63 | ->opt('pretend', 'Dump the SQL queries that would be run.'); |
||
| 64 | } |
||
| 65 | } |
||
| 66 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.