phpbb-extensions /
mediaembed
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * |
||
| 4 | * phpBB Media Embed PlugIn extension for the phpBB Forum Software package. |
||
| 5 | * |
||
| 6 | * @copyright (c) 2019 phpBB Limited <https://www.phpbb.com> |
||
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
||
| 8 | * |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace phpbb\mediaembed\collection; |
||
| 12 | |||
| 13 | use phpbb\extension\manager; |
||
|
0 ignored issues
–
show
|
|||
| 14 | use phpbb\mediaembed\ext; |
||
| 15 | |||
| 16 | class customsitescollection |
||
| 17 | { |
||
| 18 | /** @var manager */ |
||
| 19 | protected $extension_manager; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor |
||
| 23 | * |
||
| 24 | * @param manager $extension_manager |
||
| 25 | */ |
||
| 26 | public function __construct(manager $extension_manager) |
||
| 27 | { |
||
| 28 | $this->extension_manager = $extension_manager; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get a collection of custom YAML site definition files |
||
| 33 | * |
||
| 34 | * @return array Collection of YAML site definition files |
||
| 35 | */ |
||
| 36 | public function get_collection() |
||
| 37 | { |
||
| 38 | $finder = $this->extension_manager->get_finder(); |
||
| 39 | |||
| 40 | return $finder |
||
| 41 | ->set_extensions(['phpbb/mediaembed']) |
||
| 42 | ->extension_suffix(ext::YML) |
||
| 43 | ->extension_directory('collection/sites') |
||
| 44 | ->get_files(); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
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