| Conditions | 1 |
| Total Lines | 31 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function __construct() { |
||
| 41 | parent::__construct(); |
||
| 42 | |||
| 43 | // @link https://github.com/wp-cli/i18n-command/blob/v2.0.1/src/MakePotCommand.php#L36-L44 |
||
| 44 | $this->exclude = array_diff( |
||
|
1 ignored issue
–
show
|
|||
| 45 | $this->exclude, |
||
| 46 | array( |
||
| 47 | 'vendor', |
||
| 48 | ) |
||
| 49 | ); |
||
| 50 | |||
| 51 | $this->exclude = array_merge( |
||
| 52 | $this->exclude, |
||
| 53 | array( |
||
| 54 | 'build', |
||
| 55 | 'deploy', |
||
| 56 | 'documentation', |
||
| 57 | 'etc', |
||
| 58 | 'repositories', |
||
| 59 | 'wordpress', |
||
| 60 | 'wp-content', |
||
| 61 | ) |
||
| 62 | ); |
||
| 63 | |||
| 64 | $this->include = array( |
||
|
1 ignored issue
–
show
|
|||
| 65 | 'admin', |
||
| 66 | 'includes', |
||
| 67 | 'templates', |
||
| 68 | 'vendor', |
||
| 69 | 'views', |
||
| 70 | '*.php', |
||
| 71 | ); |
||
| 85 |
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