Total Complexity | 8 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 57.69% |
Changes | 0 |
1 | <?php |
||
10 | class ProductDocCollectionDataExtension extends DataExtension |
||
11 | { |
||
12 | /** |
||
13 | * @param $object |
||
14 | */ |
||
15 | 2 | public function updateCollectionObject(&$object) |
|
16 | { |
||
17 | 2 | if ($class = $this->owner->data()->ManagedClass) { |
|
18 | 2 | $object = singleton((string) $class); |
|
19 | } |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param $form |
||
24 | */ |
||
25 | 1 | public function updateCollectionForm(&$form) |
|
44 | ]); |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param $collection |
||
49 | * @param $searchCriteria |
||
50 | */ |
||
51 | public function updateCollectionItems(&$collection, &$searchCriteria) |
||
68 | } |
||
69 | } |
||
71 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.