| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 1 | protected function configure() |
|
| 18 | { |
||
| 19 | 1 | $this |
|
| 20 | 1 | ->setName('mediamonks:crawler:crawl-url') |
|
| 21 | 1 | ->setDescription('Crawl an url') |
|
| 22 | 1 | ->addArgument( |
|
| 23 | 1 | self::ARGUMENT_URL, |
|
| 24 | 1 | InputArgument::REQUIRED, |
|
| 25 | 'Url of the site you want to crawl' |
||
| 26 | 1 | ) |
|
| 27 | 1 | ->addOption( |
|
| 28 | 1 | self::OPTION_LIMIT, |
|
| 29 | 1 | null, |
|
| 30 | 1 | InputOption::VALUE_OPTIONAL, |
|
| 31 | 'Limit number of pages to crawl' |
||
| 32 | 1 | ) |
|
| 33 | ; |
||
| 34 | 1 | } |
|
| 35 | |||
| 58 |