Code Duplication    Length = 11-11 lines in 2 locations

src/Commands/CreateClientCommand.php 2 locations

@@ 64-74 (lines=11) @@
61
    /**
62
     * @return UuidInterface
63
     */
64
    protected function getClientId()
65
    {
66
        if (!($clientId = $this->option('id'))) {
67
            $this->info('Generating a random UUID for client id...');
68
            $clientId = Uuid::uuid1();
69
        } else {
70
            $clientId = Uuid::fromString($clientId);
71
        }
72
73
        return $clientId;
74
    }
75
76
    /**
77
     * @return UuidInterface
@@ 79-89 (lines=11) @@
76
    /**
77
     * @return UuidInterface
78
     */
79
    protected function getClientSecret()
80
    {
81
        if (!($clientSecret = $this->option('secret'))) {
82
            $this->info('Generating a random UUID for client secret...');
83
            $clientSecret = Uuid::uuid1();
84
        } else {
85
            $clientSecret = Uuid::fromString($clientSecret);
86
        }
87
88
        return $clientSecret;
89
    }
90
91
}
92