Code Duplication    Length = 6-6 lines in 2 locations

src/Traits/HasPermissions.php 2 locations

@@ 116-121 (lines=6) @@
113
            );
114
        }
115
116
        if (is_int($permission)) {
117
            $permission = app(Permission::class)->findById(
118
                $permission,
119
                $guardName ?? $this->getDefaultGuardName()
120
            );
121
        }
122
123
        if (! $permission instanceof Permission) {
124
            throw new PermissionDoesNotExist;
@@ 202-207 (lines=6) @@
199
            }
200
        }
201
202
        if (is_int($permission)) {
203
            $permission = app(Permission::class)->findById($permission, $this->getDefaultGuardName());
204
            if (! $permission) {
205
                return false;
206
            }
207
        }
208
209
        if (! $permission instanceof Permission) {
210
            return false;