Conditions | 4 |
Paths | 4 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function reduce(RuleInterface $rule): int |
||
34 | { |
||
35 | $title = $rule->getChild(0)->getValue(1); |
||
|
|||
36 | |||
37 | switch ($title) { |
||
38 | case 'property': |
||
39 | return AttributeInterface::TYPE_PROPERTY; |
||
40 | |||
41 | case 'property-read': |
||
42 | return AttributeInterface::TYPE_READABLE; |
||
43 | |||
44 | case 'property-write': |
||
45 | return AttributeInterface::TYPE_WRITABLE; |
||
46 | |||
47 | default: |
||
48 | return AttributeInterface::TYPE_UNDEFINED; |
||
49 | } |
||
50 | } |
||
51 | } |
||
52 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.