Code Duplication    Length = 8-8 lines in 2 locations

src/Horizon/HorizonServiceProvider.php 1 location

@@ 156-163 (lines=8) @@
153
     *
154
     * @return void
155
     */
156
    protected function addHorizonSentinelQueueConnector()
157
    {
158
        $this->app->make('queue')->extend('redis-sentinel', function () {
159
            $redis = $this->app->make('redis-sentinel.manager');
160
161
            return new HorizonRedisConnector($redis);
162
        });
163
    }
164
}
165

src/RedisSentinelServiceProvider.php 1 location

@@ 242-249 (lines=8) @@
239
     *
240
     * @return void
241
     */
242
    protected function addRedisSentinelQueueConnector()
243
    {
244
        $this->app->make('queue')->extend('redis-sentinel', function () {
245
            $redis = $this->app->make('redis-sentinel.manager');
246
247
            return new RedisConnector($redis);
248
        });
249
    }
250
}
251