Code Duplication    Length = 8-8 lines in 2 locations

models/UserLogin.php 1 location

@@ 23-30 (lines=8) @@
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function rules()
24
    {
25
        return [
26
            [['username', 'password'], 'required'],
27
            [['username', 'password'], 'string', 'max' => 64],
28
            [['remember_me'], 'boolean'],
29
        ];
30
    }
31
32
    /**
33
     * {@inheritdoc}

models/ContentType.php 1 location

@@ 54-61 (lines=8) @@
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function rules()
55
    {
56
        return [
57
            [['id', 'enabled'], 'required'],
58
            [['id'], 'string', 'max' => 45],
59
            [['enabled'], 'boolean'],
60
        ];
61
    }
62
63
    public function contentRules()
64
    {