Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class SimplePopo |
||
12 | { |
||
13 | private $id; |
||
14 | |||
15 | private $createdAt; |
||
16 | |||
17 | public $arbitraryField; |
||
18 | |||
19 | public function __construct() |
||
20 | { |
||
21 | // the use of rand is deliberate so it's easier to test... |
||
22 | $this->id = ''; |
||
23 | for ($i = 0; $i < 16; $i++) { |
||
24 | $this->id .= chr(rand(ord('A'), ord('Z'))); |
||
25 | } |
||
26 | |||
27 | $this->createdAt = new DateTime(); |
||
28 | } |
||
29 | |||
30 | public function getId(): string |
||
33 | } |
||
34 | |||
35 | public function getCreatedAt(): DateTime |
||
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