Rafalsky/HomeFinance

View on GitHub
frontend/modules/user/models/AccountForm.php

Summary

Maintainability
A
1 hr
Test Coverage

Method rules has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function rules()
    {
        return [
            ['username', 'filter', 'filter' => 'trim'],
            ['username', 'required'],
Severity: Minor
Found in frontend/modules/user/models/AccountForm.php - About 1 hr to fix

    The property $password_confirm is not named in camelCase.
    Open

    class AccountForm extends Model
    {
        public $username;
        public $email;
        public $password;

    CamelCasePropertyName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name attributes.

    Example

    class ClassName {
        protected $property_name;
    }

    Source

    There are no issues that match your filters.

    Category
    Status