| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ElementalCMSMainExtension extends Extension |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Remove the empty default string on the class filter, which adds "All pages" again. This is already |
||
| 13 | * added by ElementSiteTreeFilterSearch. |
||
| 14 | * |
||
| 15 | * @param Form $form |
||
| 16 | */ |
||
| 17 | public function updateSearchForm(Form $form) |
||
| 26 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.