Code Duplication    Length = 3-3 lines in 2 locations

src/Repositories/Auth/AuthRepository.php 2 locations

@@ 124-126 (lines=3) @@
121
            $data['role'] = config('laraflock.dashboard.defaultRole');
122
        }
123
124
        if (!$role = $this->sentinel->findRoleBySlug($data['role'])) {
125
            throw new RolesException(trans('dashboard::dashboard.errors.role.found'));
126
        }
127
128
        $role->users()
129
             ->attach($user);
@@ 163-165 (lines=3) @@
160
            $data['role'] = config('laraflock.dashboard.defaultRole');
161
        }
162
163
        if (!$role = $this->sentinel->findRoleBySlug($data['role'])) {
164
            throw new RolesException(trans('dashboard::dashboard.errors.role.found'));
165
        }
166
167
        $role->users()
168
             ->attach($user);