| Conditions | 1 |
| Paths | 1 |
| Total Lines | 34 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 84 | public function rules() |
||
| 85 | { |
||
| 86 | |||
| 87 | return [ |
||
| 88 | [ |
||
| 89 | [ |
||
| 90 | 'handle' |
||
| 91 | ], |
||
| 92 | HandleValidator::class |
||
| 93 | ], |
||
| 94 | [ |
||
| 95 | [ |
||
| 96 | 'handle' |
||
| 97 | ], |
||
| 98 | 'required' |
||
| 99 | ], |
||
| 100 | [ |
||
| 101 | [ |
||
| 102 | 'handle' |
||
| 103 | ], |
||
| 104 | 'string', |
||
| 105 | 'max' => 255 |
||
| 106 | ], |
||
| 107 | [ |
||
| 108 | [ |
||
| 109 | 'handle' |
||
| 110 | ], |
||
| 111 | 'safe', |
||
| 112 | 'on' => [ |
||
| 113 | ElementHelper::SCENARIO_DEFAULT |
||
| 114 | ] |
||
| 115 | ] |
||
| 116 | ]; |
||
| 117 | } |
||
| 118 | |||
| 120 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.