Code Duplication    Length = 9-9 lines in 2 locations

src/Auth/HiamUserIdenity.php 1 location

@@ 22-30 (lines=9) @@
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function rules()
23
    {
24
        return [
25
            ['id',          'integer'],
26
            ['username',    'string'],
27
            ['state',       'string'],
28
            ['roles',       'trim'],
29
        ];
30
    }
31
32
    /** {@inheritdoc} */
33
    public static function findIdentity($id)

src/Auth/UserIdentity.php 1 location

@@ 22-30 (lines=9) @@
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function rules()
23
    {
24
        return [
25
            ['id',          'integer'],
26
            ['username',    'string'],
27
            ['state',       'string'],
28
            ['roles',       'trim'],
29
        ];
30
    }
31
32
    /** {@inheritdoc} */
33
    public static function findIdentity($id)