| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class PrettyPrint extends Base |
||
| 9 | { |
||
| 10 | public $path; |
||
| 11 | public $pretty = true; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param Definition $definition |
||
| 15 | * @param \stdClass|static $options |
||
| 16 | */ |
||
| 17 | 1 | static function setUpDefinition(Definition $definition, $options) |
|
| 18 | { |
||
| 19 | 1 | $options->path = Command\Option::create()->setIsUnnamed()->setIsRequired() |
|
| 20 | 1 | ->setDescription('Path to .json/.yaml/.yml/.serialized file'); |
|
| 21 | 1 | parent::setUpDefinition($definition, $options); |
|
| 22 | 1 | $definition->description = 'Pretty print/convert document'; |
|
| 23 | 1 | unset($options->pretty); |
|
| 24 | 1 | } |
|
| 25 | |||
| 26 | 1 | public function performAction() |
|
| 30 | 1 | } |
|
| 31 | |||
| 32 | } |