frontend/modules/user/models/AccountForm.php
Method rules
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function rules()
{
return [
['username', 'filter', 'filter' => 'trim'],
['username', 'required'],
The property $password_confirm is not named in camelCase. Open
Open
class AccountForm extends Model
{
public $username;
public $email;
public $password;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}