pronamic /
wp-pronamic-ideal
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Pronamic\WordPress\Pay; |
||
| 4 | |||
| 5 | class MakePotCommand extends \WP_CLI\I18n\MakePotCommand { |
||
|
1 ignored issue
–
show
|
|||
| 6 | public function __construct() { |
||
| 7 | parent::__construct(); |
||
| 8 | |||
| 9 | // https://github.com/wp-cli/i18n-command/blob/v2.0.1/src/MakePotCommand.php#L36-L44 |
||
| 10 | $this->exclude = array_diff( |
||
|
1 ignored issue
–
show
|
|||
| 11 | $this->exclude, |
||
| 12 | array( |
||
| 13 | 'vendor', |
||
| 14 | ) |
||
| 15 | ); |
||
| 16 | |||
| 17 | $this->exclude = array_merge( |
||
| 18 | $this->exclude, |
||
| 19 | array( |
||
| 20 | 'build', |
||
| 21 | 'deploy', |
||
| 22 | 'documentation', |
||
| 23 | 'etc', |
||
| 24 | 'repositories', |
||
| 25 | 'wordpress', |
||
| 26 | 'wp-content', |
||
| 27 | ) |
||
| 28 | ); |
||
| 29 | |||
| 30 | $this->include = array( |
||
|
1 ignored issue
–
show
|
|||
| 31 | 'admin', |
||
| 32 | 'includes', |
||
| 33 | 'templates', |
||
| 34 | 'vendor', |
||
| 35 | 'views', |
||
| 36 | '*.php', |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | // https://github.com/wp-cli/i18n-command/blob/v2.0.1/i18n-command.php |
||
| 42 | \WP_CLI::add_command( 'pronamic i18n make-pot', '\Pronamic\WordPress\Pay\MakePotCommand' ); |
||
|
0 ignored issues
–
show
The type
WP_CLI was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 43 | // wp pronamic i18n make-pot . languages/pronamic_ideal.pot --slug="pronamic-ideal" |
||
| 44 |
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