| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 1 | public function updateCollectionForm(&$form) |
|
| 26 | { |
||
| 27 | 1 | $fields = $form->Fields(); |
|
| 28 | |||
| 29 | 1 | $fields->insertAfter( |
|
| 30 | 1 | DropdownField::create('CategoryID', 'Category', CatalogCategory::get()->map()) |
|
| 31 | 1 | ->setEmptyString('All categories'), |
|
| 32 | 1 | 'Title' |
|
| 33 | ); |
||
| 34 | |||
| 35 | 1 | $fields->insertAfter( |
|
| 36 | 1 | DropdownField::create('Products__ID', 'Product', CatalogProduct::get()->map()) |
|
| 37 | 1 | ->setEmptyString('All products'), |
|
| 38 | 1 | 'CategoryID' |
|
| 39 | ); |
||
| 40 | |||
| 41 | 1 | $fields->removeByName([ |
|
| 42 | 1 | 'Name', |
|
| 43 | 'Title', |
||
| 44 | ]); |
||
| 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.