Total Complexity | 2 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
15 | class DeletePostsCommand extends BaseCommand { |
||
16 | /** |
||
17 | * Get the command. |
||
18 | * |
||
19 | * @return string Command name. |
||
20 | */ |
||
21 | public static function get_command() { |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Delete post by status. |
||
27 | * |
||
28 | * ## OPTIONS |
||
29 | * |
||
30 | * [--post_status=<post_status>] |
||
31 | * : Comma seperated list of post status from which posts should be deleted. You can also use any custom post status. |
||
32 | * --- |
||
33 | * options: |
||
34 | * - publish (default) |
||
35 | * - draft,publish |
||
36 | * - draft,publish,private |
||
37 | * - private |
||
38 | * --- |
||
39 | * |
||
40 | * [--limit_to=<limit_to>] |
||
41 | * : Limits the number of posts to be deleted. |
||
42 | * |
||
43 | * [--restrict=<restrict>] |
||
44 | * : Restricts posts deletion with post date filter. |
||
45 | * --- |
||
46 | * default: false |
||
47 | * options: |
||
48 | * - true |
||
49 | * - false |
||
50 | * --- |
||
51 | * |
||
52 | * [--force_delete=<force_delete>] |
||
53 | * : True for permanent deletion and false for moving to trash. |
||
54 | * --- |
||
55 | * default: false |
||
56 | * options: |
||
57 | * - true |
||
58 | * - false |
||
59 | * --- |
||
60 | * |
||
61 | * @subcommand by-status |
||
62 | * |
||
63 | * @param array $args Arguments to be supplied. |
||
64 | * @param array $assoc_args Associative arguments to be supplied. |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | public function by_status( $args, $assoc_args ) { |
||
76 |
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