@@ 46-69 (lines=24) @@ | ||
43 | /** |
|
44 | * configure. |
|
45 | */ |
|
46 | protected function configure() |
|
47 | { |
|
48 | $this |
|
49 | ->setName('formatter:header:fix') |
|
50 | ->setDescription('Ensures that all PHP files have the header defined in the config file') |
|
51 | ->addArgument( |
|
52 | 'path', |
|
53 | InputArgument::REQUIRED, |
|
54 | 'Path' |
|
55 | ) |
|
56 | ->addOption( |
|
57 | '--config', |
|
58 | '-c', |
|
59 | InputOption::VALUE_OPTIONAL, |
|
60 | 'Config file directory', |
|
61 | getcwd() |
|
62 | ) |
|
63 | ->addOption( |
|
64 | 'dry-run', |
|
65 | null, |
|
66 | InputOption::VALUE_NONE, |
|
67 | 'Just print the result, nothing is overwritten' |
|
68 | ); |
|
69 | } |
|
70 | ||
71 | /** |
|
72 | * Execute command. |
@@ 46-69 (lines=24) @@ | ||
43 | /** |
|
44 | * configure. |
|
45 | */ |
|
46 | protected function configure() |
|
47 | { |
|
48 | $this |
|
49 | ->setName('formatter:strict:fix') |
|
50 | ->setDescription('Ensures that all PHP files have strict mode defined in config file. Only valid for PHP7.0>') |
|
51 | ->addArgument( |
|
52 | 'path', |
|
53 | InputArgument::REQUIRED, |
|
54 | 'Path' |
|
55 | ) |
|
56 | ->addOption( |
|
57 | '--config', |
|
58 | '-c', |
|
59 | InputOption::VALUE_OPTIONAL, |
|
60 | 'Config file directory', |
|
61 | getcwd() |
|
62 | ) |
|
63 | ->addOption( |
|
64 | 'dry-run', |
|
65 | null, |
|
66 | InputOption::VALUE_NONE, |
|
67 | 'Just print the result, nothing is overwritten' |
|
68 | ); |
|
69 | } |
|
70 | ||
71 | /** |
|
72 | * Execute command. |