Conditions | 6 |
Paths | 6 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
17 | 31 | if (is_object($value) && !($value instanceof Type) && property_exists($value, "Entry")) { |
|
18 | 4 | $value = $value->Entry; |
|
19 | } |
||
20 | |||
21 | 31 | if ($this->methodExists("set" . ucfirst($name))) { |
|
22 | 31 | $this->{"set" . ucfirst($name)}($value); |
|
23 | 31 | return; |
|
24 | } |
||
25 | |||
26 | 5 | if (!$this->exists($name) && $this->exists(lcfirst($name))) { |
|
27 | $name = lcfirst($name); |
||
28 | } |
||
29 | |||
30 | 5 | $this->$name = $value; |
|
31 | } |
||
32 | |||
33 | 30 | public function exists($name) |
|
34 | { |
||
35 | 30 | return property_exists($this, $name); |
|
36 | } |
||
43 |
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