Completed
Push — master ( b781ab...19d1ea )
by Brian
26:25 queued 14:44
created

doctum.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
require __DIR__.'/vendor/autoload.php';
4
5
use Doctum\Doctum;
6
use Doctum\RemoteRepository\GitHubRemoteRepository;
7
use Doctum\Version\GitVersionCollection;
8
use Symfony\Component\Finder\Finder;
9
10
$dir = __DIR__ . '/src';
11
12
$iterator = Finder::create()
13
    ->files()
14
    ->name('*.php')
15
    ->exclude('tests')
16
    ->exclude('vendor')
17
    ->in($dir);
18
19
$versions = GitVersionCollection::create($dir)
20
    ->add('master', 'Master branch');
21
22
$repo = new GitHubRemoteRepository(
23
    'mtvbrianking/laravel-package-boilerplate',
24
    dirname($dir),
25
    'https://github.com/'
0 ignored issues
show
The call to GitHubRemoteRepository::__construct() has too many arguments starting with 'https://github.com/'.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
26
);
27
28
$options = [
29
    'theme' => 'default',
30
    'versions' => $versions,
31
    'title' => 'Laravel Package Boilerplate',
32
    'build_dir' => __DIR__ . '/docs',
33
    'cache_dir' => __DIR__ . '/docs/cache',
34
    'remote_repository' => $repo,
35
    'default_opened_level' => 3,
36
];
37
38
return new Doctum($iterator, $options);
39