| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 6 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class ext extends \phpbb\extension\base |
||
|
|
|||
| 17 | { |
||
| 18 | /** @var string Require 3.2.0 due to updated INCLUDECSS and ordered services */ |
||
| 19 | const PHPBB_MIN_VERSION = '3.2.0'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Enable extension if phpBB minimum version requirement is met |
||
| 23 | * (check database and filesystem) |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | 3 | */ |
|
| 27 | public function is_enableable() |
||
| 28 | 3 | { |
|
| 29 | 3 | $config = $this->container->get('config'); |
|
| 30 | return $this->version_check($config['version']) && $this->version_check(PHPBB_VERSION); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Enable version check |
||
| 35 | * |
||
| 36 | * @param string|int $version The version to check |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | protected function version_check($version) |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
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