Completed
Push — master ( 145ba7...a66280 )
by Panagiotis
03:41
created

anonymous()

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 11
nc 1
nop 1
1
<?php
2
3
return function ($phlint) {
4
5
  // Find code through Composer autoloader.
6
  $phlint[] = new \phlint\autoload\Composer(__dir__ . '/composer.json');
0 ignored issues
show
Bug introduced by
The type phlint\autoload\Composer 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...
7
8
  // Where to look for code to analyze.
9
  $phlint->addPath(__dir__ . '/src/');
10
  $phlint->addPath(__dir__ . '/tests/');
11
12
  // Not all rules are enabled by default.
13
  $phlint->enableRule('all');
14
15
};
16