| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | 2 | protected function configure() |
|
| 14 | { |
||
| 15 | 2 | $this |
|
| 16 | 2 | ->setName('php-mongodb-migrations:release-lock') |
|
| 17 | 2 | ->setDescription('Release current migration lock') |
|
| 18 | 2 | ->addOption( |
|
| 19 | 2 | 'server', |
|
| 20 | 2 | 's', |
|
| 21 | 2 | Console\Input\InputOption::VALUE_REQUIRED, |
|
| 22 | 2 | 'The connection string (e.g. mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db)', |
|
| 23 | 'mongodb://localhost:27017' |
||
| 24 | 2 | ) |
|
| 25 | 2 | ->addArgument( |
|
| 26 | 2 | 'database', |
|
| 27 | 2 | Console\Input\InputArgument::REQUIRED, |
|
| 28 | 'The database to connect to' |
||
| 29 | 2 | ) |
|
| 30 | ; |
||
| 31 | 2 | } |
|
| 32 | |||
| 47 |