Conditions | 7 |
Paths | 6 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 7.049 |
Changes | 0 |
1 | <?php |
||
15 | 44 | public function __set($name, $value) |
|
16 | { |
||
17 | 44 | if (is_object($value) && !($value instanceof Type) && property_exists($value, "Entry")) { |
|
18 | 7 | $value = $value->Entry; |
|
19 | } |
||
20 | |||
21 | 44 | if ($this->methodExists("set" . ucfirst($name))) { |
|
22 | 44 | $convertedValue = TypeConverter::convertValueToExpectedType($this, $value, $name); |
|
23 | 44 | $this->{"set" . ucfirst($name)}($convertedValue); |
|
24 | 44 | return; |
|
25 | } |
||
26 | |||
27 | 5 | if (!$this->exists($name) && $this->exists(lcfirst($name))) { |
|
28 | $name = lcfirst($name); |
||
29 | } |
||
30 | |||
31 | 5 | $this->$name = $value; |
|
32 | } |
||
44 |
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