Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 3 | protected function configure() |
|
26 | { |
||
27 | 3 | $this->setName('find:dir') |
|
28 | 3 | ->setDescription('Find files that contains a pattern') |
|
29 | 3 | ->addArgument( |
|
30 | 3 | 'pattern', |
|
31 | 3 | InputArgument::REQUIRED, |
|
32 | 'Pattern is, by default, a basic regular expression.' |
||
33 | 3 | )->addArgument( |
|
34 | 3 | 'directory', |
|
35 | 3 | InputArgument::REQUIRED, |
|
36 | 'Directory path.' |
||
37 | 3 | )->addOption( |
|
38 | 3 | 'extension', |
|
39 | 3 | 'e', |
|
40 | 3 | InputOption::VALUE_NONE, |
|
41 | 'File extension.' |
||
42 | 3 | ); |
|
43 | 3 | } |
|
44 | |||
66 | } |