| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 26 | protected function configure() |
||
| 27 | { |
||
| 28 | parent::configure(); |
||
| 29 | |||
| 30 | if ($this->getName() === null) { |
||
| 31 | $this->setName('graviton:validate:definition:file'); |
||
| 32 | } |
||
| 33 | |||
| 34 | $this |
||
| 35 | ->setDescription('Validate a JSON definition') |
||
| 36 | ->addOption( |
||
| 37 | 'path', |
||
| 38 | '', |
||
| 39 | InputOption::VALUE_REQUIRED, |
||
| 40 | 'Path to the json definition.' |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 56 |