Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function replace(): void |
||
28 | { |
||
29 | $postTypes = get_post_types_by_support('excerpt'); |
||
30 | |||
31 | /** |
||
32 | * Control the supported post types. |
||
33 | * |
||
34 | * @param array $postTypes |
||
35 | */ |
||
36 | $postTypes = apply_filters('helick_better_excerpt_supported_post_types', $postTypes); |
||
37 | |||
38 | // Remove the default post excerpt meta box |
||
39 | remove_meta_box('postexcerpt', (array)$postTypes, 'normal'); |
||
40 | |||
41 | // Register the new meta box |
||
42 | add_meta_box( |
||
43 | 'postexcerpt', |
||
44 | _x('Excerpt', 'meta box heading', DOMAIN), |
||
45 | [$this, 'render'], |
||
46 | (array)$postTypes, |
||
47 | 'normal', |
||
48 | 'high', |
||
49 | ['__back_compat_meta_box' => false] |
||
50 | ); |
||
78 |
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