@@ -34,8 +34,8 @@ |
||
34 | 34 | protected function configure() |
35 | 35 | { |
36 | 36 | $this->setName('consolidate-used-files') |
37 | - ->setDescription('Consolidate the list of unused PHP files to improve performance of later commands.') |
|
38 | - ->addArgument(self::ARGUMENT_USED_FILES, InputArgument::REQUIRED, 'Path to the list of used files.'); |
|
37 | + ->setDescription('Consolidate the list of unused PHP files to improve performance of later commands.') |
|
38 | + ->addArgument(self::ARGUMENT_USED_FILES, InputArgument::REQUIRED, 'Path to the list of used files.'); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -17,7 +17,7 @@ |
||
17 | 17 | protected function configure() |
18 | 18 | { |
19 | 19 | $this->setName('show-unused-mysql-tables') |
20 | - ->setDescription('Show a list of potentially unused MySQL tables.'); |
|
20 | + ->setDescription('Show a list of potentially unused MySQL tables.'); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -38,11 +38,11 @@ |
||
38 | 38 | protected function configure() |
39 | 39 | { |
40 | 40 | $this->setName('show-unused-php-files') |
41 | - ->setDescription('Show a list of potentially unused PHP files.') |
|
42 | - ->addArgument(self::ARGUMENT_USED_FILES, InputArgument::REQUIRED, 'Path to the list of used files.') |
|
43 | - ->addOption(self::OPTION_PATH_TO_INSPECT, 'p', InputOption::VALUE_REQUIRED, 'Path to search for PHP files. If not set, it will be determined as the common parent path of the used files.') |
|
44 | - ->addOption(self::OPTION_PATH_TO_OUTPUT, 'o', InputOption::VALUE_REQUIRED, 'Path to the output file. If not set, it will be "potentially-unused-files.txt" next to the file named in the usedFiles argument.') |
|
45 | - ->addOption(self::OPTION_PATH_TO_BLACKLIST, 'b', InputOption::VALUE_REQUIRED, 'Path to a file containing a blacklist of regular expressions to exclude from the output.'); |
|
41 | + ->setDescription('Show a list of potentially unused PHP files.') |
|
42 | + ->addArgument(self::ARGUMENT_USED_FILES, InputArgument::REQUIRED, 'Path to the list of used files.') |
|
43 | + ->addOption(self::OPTION_PATH_TO_INSPECT, 'p', InputOption::VALUE_REQUIRED, 'Path to search for PHP files. If not set, it will be determined as the common parent path of the used files.') |
|
44 | + ->addOption(self::OPTION_PATH_TO_OUTPUT, 'o', InputOption::VALUE_REQUIRED, 'Path to the output file. If not set, it will be "potentially-unused-files.txt" next to the file named in the usedFiles argument.') |
|
45 | + ->addOption(self::OPTION_PATH_TO_BLACKLIST, 'b', InputOption::VALUE_REQUIRED, 'Path to a file containing a blacklist of regular expressions to exclude from the output.'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -85,7 +85,7 @@ |
||
85 | 85 | |
86 | 86 | if (isset($message)) { |
87 | 87 | $message .= ' Please specify a readable directory with the ' . Command::OPTION_VENDOR_DIRECTORY . ' ' |
88 | - . 'option.'; |
|
88 | + . 'option.'; |
|
89 | 89 | throw new \InvalidArgumentException($message); |
90 | 90 | } |
91 | 91 |
@@ -38,11 +38,11 @@ |
||
38 | 38 | protected function configure() |
39 | 39 | { |
40 | 40 | $this->setName('show-unused-composer-packages') |
41 | - ->setDescription('Show a list of potentially unused composer packages.') |
|
42 | - ->addArgument(self::ARGUMENT_COMPOSER_JSON, InputArgument::REQUIRED, 'Path to the project\'s composer.json.') |
|
43 | - ->addOption(self::OPTION_VENDOR_DIRECTORY, 'l', InputOption::VALUE_REQUIRED, 'Path to the project\'s vendor directory.', null) |
|
44 | - ->addArgument(self::ARGUMENT_USED_FILES, InputArgument::REQUIRED, 'Path to the list of used files.') |
|
45 | - ->addOption(self::OPTION_PATH_TO_BLACKLIST, 'b', InputOption::VALUE_REQUIRED, 'Path to a file containing a blacklist of regular expressions to exclude from the output.'); |
|
41 | + ->setDescription('Show a list of potentially unused composer packages.') |
|
42 | + ->addArgument(self::ARGUMENT_COMPOSER_JSON, InputArgument::REQUIRED, 'Path to the project\'s composer.json.') |
|
43 | + ->addOption(self::OPTION_VENDOR_DIRECTORY, 'l', InputOption::VALUE_REQUIRED, 'Path to the project\'s vendor directory.', null) |
|
44 | + ->addArgument(self::ARGUMENT_USED_FILES, InputArgument::REQUIRED, 'Path to the list of used files.') |
|
45 | + ->addOption(self::OPTION_PATH_TO_BLACKLIST, 'b', InputOption::VALUE_REQUIRED, 'Path to a file containing a blacklist of regular expressions to exclude from the output.'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -39,12 +39,12 @@ |
||
39 | 39 | protected function configure() |
40 | 40 | { |
41 | 41 | $this->setName('show-unused-public-assets') |
42 | - ->setDescription('Show a list of potentially unused public assets.') |
|
43 | - ->addArgument(self::ARGUMENT_PATH_TO_PUBLIC, InputArgument::REQUIRED, 'Path to the public web root of your project.') |
|
44 | - ->addArgument(self::ARGUMENT_PATH_TO_LOG_FILE, InputArgument::REQUIRED, 'Path to the web server\'s access log file.') |
|
45 | - ->addOption(self::OPTION_REG_EXP_TO_FIND_FILE, 'r', InputOption::VALUE_REQUIRED, 'Regular expression for the log file capturing the path of the accessed file as it\'s first capture group.', '#"(?:get|post) ([a-z0-9\_\-\.\/]*)#i') |
|
46 | - ->addOption(self::OPTION_PATH_TO_OUTPUT, 'o', InputOption::VALUE_REQUIRED, 'Path to the output file. If not set, it will be "potentially-unused-public-assets.txt" in the folder above the public web root.') |
|
47 | - ->addOption(self::OPTION_PATH_TO_BLACKLIST, 'b', InputOption::VALUE_REQUIRED, 'Path to a file containing a blacklist of regular expressions to exclude from the output.'); |
|
42 | + ->setDescription('Show a list of potentially unused public assets.') |
|
43 | + ->addArgument(self::ARGUMENT_PATH_TO_PUBLIC, InputArgument::REQUIRED, 'Path to the public web root of your project.') |
|
44 | + ->addArgument(self::ARGUMENT_PATH_TO_LOG_FILE, InputArgument::REQUIRED, 'Path to the web server\'s access log file.') |
|
45 | + ->addOption(self::OPTION_REG_EXP_TO_FIND_FILE, 'r', InputOption::VALUE_REQUIRED, 'Regular expression for the log file capturing the path of the accessed file as it\'s first capture group.', '#"(?:get|post) ([a-z0-9\_\-\.\/]*)#i') |
|
46 | + ->addOption(self::OPTION_PATH_TO_OUTPUT, 'o', InputOption::VALUE_REQUIRED, 'Path to the output file. If not set, it will be "potentially-unused-public-assets.txt" in the folder above the public web root.') |
|
47 | + ->addOption(self::OPTION_PATH_TO_BLACKLIST, 'b', InputOption::VALUE_REQUIRED, 'Path to a file containing a blacklist of regular expressions to exclude from the output.'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |