| Total Lines | 53 | 
| Code Lines | 25 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php | ||
| 20 | 	function () { | ||
| 21 | |||
| 22 | /** | ||
| 23 | * Title: Make pot command. | ||
| 24 | * Description: | ||
| 25 | * Copyright: 2005-2020 Pronamic | ||
| 26 | * Company: Pronamic | ||
| 27 | * | ||
| 28 | * @author Remco Tolsma | ||
| 29 | * @version 5.5.5 | ||
| 30 | * @since 5.5.0 | ||
| 31 | */ | ||
| 32 | 		class MakePotCommand extends \WP_CLI\I18n\MakePotCommand { | ||
| 1 ignored issue–
                            show | |||
| 33 | /** | ||
| 34 | * Command constructor. | ||
| 35 | */ | ||
| 36 | 			public function __construct() { | ||
| 37 | parent::__construct(); | ||
| 38 | |||
| 39 | // @link https://github.com/wp-cli/i18n-command/blob/v2.0.1/src/MakePotCommand.php#L36-L44 | ||
| 40 | $this->exclude = array_diff( | ||
| 1 ignored issue–
                            show | |||
| 41 | $this->exclude, | ||
| 42 | array( | ||
| 43 | 'vendor', | ||
| 44 | ) | ||
| 45 | ); | ||
| 46 | |||
| 47 | $this->exclude = array_merge( | ||
| 48 | $this->exclude, | ||
| 49 | array( | ||
| 50 | 'build', | ||
| 51 | 'deploy', | ||
| 52 | 'documentation', | ||
| 53 | 'etc', | ||
| 54 | 'repositories', | ||
| 55 | 'wordpress', | ||
| 56 | 'wp-content', | ||
| 57 | ) | ||
| 58 | ); | ||
| 59 | |||
| 60 | $this->include = array( | ||
| 1 ignored issue–
                            show | |||
| 61 | 'admin', | ||
| 62 | 'includes', | ||
| 63 | 'templates', | ||
| 64 | 'vendor', | ||
| 65 | 'views', | ||
| 66 | '*.php', | ||
| 67 | ); | ||
| 68 | } | ||
| 69 | } | ||
| 70 | |||
| 71 | // @link https://github.com/wp-cli/i18n-command/blob/v2.0.1/i18n-command.php | ||
| 72 | \WP_CLI::add_command( 'pronamic i18n make-pot', '\Pronamic\WordPress\Pay\MakePotCommand' ); | ||
| 73 | |||
| 81 | 
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths