Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
19 | class purge_cache extends \phpbb\cron\task\base |
||
20 | { |
||
21 | /** @var config $config */ |
||
22 | protected $config; |
||
23 | |||
24 | /** @var cache $cache */ |
||
25 | protected $cache; |
||
26 | |||
27 | /** |
||
28 | * Constructor |
||
29 | * |
||
30 | * @param config $config Config object |
||
31 | * @param cache $cache MediaEmbed cache object |
||
32 | */ |
||
33 | public function __construct(config $config, cache $cache) |
||
34 | { |
||
35 | $this->config = $config; |
||
36 | $this->cache = $cache; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | public function run() |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * {@inheritDoc} |
||
50 | */ |
||
51 | public function is_runnable() |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * {@inheritDoc} |
||
58 | */ |
||
59 | public function should_run() |
||
64 |
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