Passed
Push — develop ( f0e694...db2621 )
by Adrien
27:12
created

anonymous()

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
nc 1
nop 1
dl 0
loc 2
c 0
b 0
f 0
1
<?php
2
3
use Sami\RemoteRepository\GitHubRemoteRepository;
0 ignored issues
show
Bug introduced by
The type Sami\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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
use Sami\Sami;
0 ignored issues
show
Bug introduced by
The type Sami\Sami 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
5
use Sami\Version\GitVersionCollection;
0 ignored issues
show
Bug introduced by
The type Sami\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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Symfony\Component\Finder\Finder;
7
8
$iterator = Finder::create()
9
    ->files()
10
    ->name('*.php')
11
    ->in($dir = __DIR__ . '/src');
12
$versions = GitVersionCollection::create($dir)
13
    ->addFromTags(function ($version) {
14
        return preg_match('~^\d+\.\d+\.\d+$~', $version);
15
    })
16
    ->add('master');
17
18
return new Sami($iterator, [
19
    'title' => 'PhpSpreadsheet',
20
    'versions' => $versions,
21
    'build_dir' => __DIR__ . '/build/%version%',
22
    'cache_dir' => __DIR__ . '/cache/%version%',
23
    'remote_repository' => new GitHubRemoteRepository('PHPOffice/PhpSpreadsheet', dirname($dir)),
24
]);
25