| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 17 | static function setUpDefinition(Definition $definition, $options) |
||
| 18 | 1 | { |
|
| 19 | 1 | $options->path = Command\Option::create()->setIsUnnamed()->setIsRequired() |
|
| 20 | 1 | ->setDescription('Path to JSON/YAML file'); |
|
| 21 | 1 | parent::setUpDefinition($definition, $options); |
|
| 22 | 1 | unset($options->pretty); |
|
| 23 | 1 | unset($options->toYaml); |
|
| 24 | 1 | $options->eol = Command\Option::create()->setDescription('Add line break to the output'); |
|
| 25 | $definition->description = 'Minify JSON document'; |
||
| 26 | 1 | } |
|
| 37 | } |