| Conditions | 1 |
| Paths | 1 |
| Total Lines | 31 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | ); |
||
| 44 |