| Conditions | 5 |
| Paths | 5 |
| Total Lines | 21 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function __construct($object, $children) |
||
| 48 | { |
||
| 49 | parent::__construct($object, $children); |
||
| 50 | |||
| 51 | $instanceOfSiteTree = ($object instanceof SiteTree); |
||
| 52 | $instanceOfFile = ($object instanceof File); |
||
| 53 | |||
| 54 | if (!$instanceOfSiteTree && !$instanceOfFile) { |
||
| 55 | user_error("Incorrect type passed to class constructor."); |
||
| 56 | exit; |
||
| 57 | } |
||
| 58 | |||
| 59 | if ($instanceOfSiteTree) { |
||
| 60 | $this->page = $object; |
||
| 61 | } |
||
| 62 | |||
| 63 | if ($instanceOfFile) { |
||
| 64 | $this->file = $object; |
||
| 65 | } |
||
| 66 | |||
| 67 | $this->children = $children; |
||
| 68 | } |
||
| 70 |
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