Code Duplication    Length = 8-8 lines in 2 locations

src/Storage/FluentStorageServiceProvider.php 2 locations

@@ 76-83 (lines=8) @@
73
            return $storage;
74
        });
75
76
        $app->singleton(FluentClient::class, function ($app) use ($provider) {
77
            $limitClientsToGrants = $app['config']->get('oauth2.limit_clients_to_grants');
78
            $limitRedirectUri = $app['config']->get('oauth2.limit_clients_to_predefined_url');
79
            $storage = new FluentClient($provider->app['db'], $limitClientsToGrants, $limitRedirectUri);
80
            $storage->setConnectionName($provider->getConnectionName());
81
82
            return $storage;
83
        });
84
85
        $app->singleton(FluentRefreshToken::class, function () use ($provider) {
86
            $storage = new FluentRefreshToken($provider->app['db']);
@@ 92-99 (lines=8) @@
89
            return $storage;
90
        });
91
92
        $app->singleton(FluentScope::class, function ($app) use ($provider) {
93
            $limitClientsToScopes = $app['config']->get('oauth2.limit_clients_to_scopes');
94
            $limitScopesToGrants = $app['config']->get('oauth2.limit_scopes_to_grants');
95
            $storage = new FluentScope($provider->app['db'], $limitClientsToScopes, $limitScopesToGrants);
96
            $storage->setConnectionName($provider->getConnectionName());
97
98
            return $storage;
99
        });
100
101
        $app->singleton(FluentSession::class, function () use ($provider) {
102
            $storage = new FluentSession($provider->app['db']);