Issues (29)

reference/sami-config.php (1 issue)

Labels
Severity
1
<?php
2
3
/*
4
 * Sami Documentation config
5
 *
6
*/
7
8
use Sami\Sami;
0 ignored issues
show
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...
9
use Symfony\Component\Finder\Finder;
10
11
$iterator = Finder::create()
12
    ->files()
13
    ->name('*.php')
14
    ->notName('sami.phar')
15
    ->exclude('resources')
16
    ->exclude('tests')
17
    ->exclude('build')
18
    ->exclude('cache')
19
    ->exclude('migrations')
20
    ->exclude('vendor')
21
    ->exclude('templates')
22
    ->in(__DIR__.'/../src');
23
24
$options = array(
25
    'title'                => 'Facebook for Craft CMS',
26
    'build_dir'            => __DIR__.'/build',
27
    'cache_dir'            => __DIR__.'/cache',
28
    'default_opened_level' => 2
29
);
30
31
return new Sami($iterator, $options);