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

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