Code Duplication    Length = 7-7 lines in 2 locations

src/Drivers/UuidDriver.php 2 locations

@@ 46-52 (lines=7) @@
43
     * @return string
44
     * @throws \Throwable
45
     */
46
    protected function createVersion3Uuid(): string
47
    {
48
        throw_unless(config('doorman.uuid.namespace'), InvalidArgumentException::class, 'Namespace must be set for uuid version 3');
49
        throw_unless(config('doorman.uuid.name'), InvalidArgumentException::class, 'Name must be set for uuid version 3');
50
51
        return Uuid::uuid3(config('doorman.uuid.namespace'), config('doorman.uuid.namespace'))->toString();
52
    }
53
54
    /**
55
     * @return string
@@ 67-73 (lines=7) @@
64
     * @return string
65
     * @throws \Throwable
66
     */
67
    protected function createVersion5Uuid(): string
68
    {
69
        throw_unless(config('doorman.uuid.namespace'), InvalidArgumentException::class, 'Namespace must be set for uuid version 5');
70
        throw_unless(config('doorman.uuid.name'), InvalidArgumentException::class, 'Name must be set for uuid version 5');
71
72
        return Uuid::uuid5(config('doorman.uuid.namespace'), config('doorman.uuid.namespace'))->toString();
73
    }
74
}
75