Conditions | 1 |
Total Lines | 31 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 3 | ||
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( |
||
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( |
||
65 | 'admin', |
||
66 | 'includes', |
||
67 | 'templates', |
||
68 | 'vendor', |
||
69 | 'views', |
||
70 | '*.php', |
||
71 | ); |
||
85 |