| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | trait HasOptions |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Define the option elements and return as array |
||
| 9 | * Options are class specific and can be modified by the user |
||
| 10 | */ |
||
| 11 | public function elements() {} |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Define the server side form validation rules |
||
| 15 | */ |
||
| 16 | public function rules() { |
||
| 18 | } |
||
| 19 | |||
| 20 | public function defaultOptions() |
||
| 23 | } |
||
| 24 | } |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.