1 | <?php |
||
2 | |||
3 | require __DIR__ . '/vendor/autoload.php'; |
||
4 | |||
5 | use Doctum\Doctum; |
||
0 ignored issues
–
show
|
|||
6 | use Doctum\RemoteRepository\GitHubRemoteRepository; |
||
0 ignored issues
–
show
The type
Doctum\RemoteRepository\GitHubRemoteRepository was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
7 | use Doctum\Version\GitVersionCollection; |
||
0 ignored issues
–
show
The type
Doctum\Version\GitVersionCollection was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
8 | use Symfony\Component\Finder\Finder; |
||
9 | |||
10 | $dir = __DIR__ . '/src'; |
||
11 | |||
12 | $iterator = Finder::create() |
||
13 | ->files() |
||
14 | ->name('*.php') |
||
15 | ->exclude('bin') |
||
16 | ->exclude('tests') |
||
17 | ->exclude('vendor') |
||
18 | ->in($dir); |
||
19 | |||
20 | $versions = GitVersionCollection::create($dir) |
||
21 | ->add('master', 'Master branch'); |
||
22 | |||
23 | $repo = new GitHubRemoteRepository( |
||
24 | 'mtvbrianking/laravel-ussd', |
||
25 | dirname($dir), |
||
26 | 'https://github.com/' |
||
27 | ); |
||
28 | |||
29 | $options = [ |
||
30 | 'theme' => 'default', |
||
31 | 'versions' => $versions, |
||
32 | 'title' => 'Laravel USSD', |
||
33 | 'build_dir' => __DIR__ . '/docs', |
||
34 | 'cache_dir' => __DIR__ . '/docs/cache', |
||
35 | 'remote_repository' => $repo, |
||
36 | 'default_opened_level' => 3, |
||
37 | ]; |
||
38 | |||
39 | return new Doctum($iterator, $options); |
||
40 |
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