Code Duplication    Length = 8-8 lines in 2 locations

Apps/Model/Admin/Comments/FormCommentUpdate.php 1 location

@@ 49-56 (lines=8) @@
46
    /**
47
    * Validation rules for comment body
48
    */
49
    public function rules()
50
    {
51
        return [
52
            ['message', 'required'],
53
            ['guestName', 'used'],
54
            ['guestName', 'length_max', 100]
55
        ];
56
    }
57
    
58
    /**
59
     * Save updated data to database

Apps/Model/Front/Profile/FormWallPost.php 1 location

@@ 23-30 (lines=8) @@
20
     * Validate rules for message field
21
     * @return array
22
     */
23
    public function rules()
24
    {
25
        return [
26
            ['message', 'required'],
27
            ['message', 'length_min', 5],
28
            ['message', 'length_max', self::MAX_MESSAGE_LENGTH]
29
        ];
30
    }
31
32
    /**
33
     * Make post to user wall from $viewer to $target instance of iUser interface objects