Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
18 | 1 | static function setUpDefinition(Command\Definition $definition, $options) |
|
19 | { |
||
20 | 1 | $options->data = Command\Option::create()->setIsUnnamed()->setIsRequired() |
|
21 | 1 | ->setDescription('Path to data (JSON/YAML)'); |
|
22 | 1 | $options->schema = Command\Option::create()->setIsUnnamed() |
|
23 | 1 | ->setDescription('Path to schema, default JSON Schema'); |
|
24 | 1 | } |
|
56 | } |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.