| Total Complexity | 7 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class base |
||
| 17 | { |
||
| 18 | /** @var config */ |
||
| 19 | protected $config; |
||
| 20 | |||
| 21 | /** @var user */ |
||
| 22 | protected $user; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Constructor |
||
| 26 | * |
||
| 27 | * @param config $config Config object |
||
| 28 | * @param user $user User object |
||
| 29 | */ |
||
| 30 | 12 | public function __construct(config $config, user $user) |
|
| 34 | 12 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Show topic previews, given current board and user configurations |
||
| 38 | * |
||
| 39 | * @return bool |
||
| 40 | */ |
||
| 41 | 12 | public function is_enabled() |
|
| 42 | { |
||
| 43 | 12 | return !empty($this->config['topic_preview_limit']) && !empty($this->user->data['user_topic_preview']); |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Show avatars, given current board and user configurations |
||
| 48 | * |
||
| 49 | * @return bool |
||
| 50 | */ |
||
| 51 | 7 | public function avatars_enabled() |
|
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Show last post text, given current board configuration |
||
| 58 | * |
||
| 59 | * @return bool |
||
| 60 | */ |
||
| 61 | 11 | public function last_post_enabled() |
|
| 66 |
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