Code Duplication    Length = 8-8 lines in 2 locations

src/Horizon/HorizonServiceProvider.php 1 location

@@ 162-169 (lines=8) @@
159
     *
160
     * @return void
161
     */
162
    protected function addHorizonSentinelQueueConnector()
163
    {
164
        $this->app->make('queue')->extend('redis-sentinel', function () {
165
            $redis = $this->app->make('redis-sentinel.manager');
166
167
            return new HorizonRedisConnector($redis);
168
        });
169
    }
170
}
171

src/RedisSentinelServiceProvider.php 1 location

@@ 223-230 (lines=8) @@
220
     *
221
     * @return void
222
     */
223
    protected function addRedisSentinelQueueConnector()
224
    {
225
        $this->app->make('queue')->extend('redis-sentinel', function () {
226
            $redis = $this->app->make('redis-sentinel.manager');
227
228
            return new RedisConnector($redis);
229
        });
230
    }
231
}
232