@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | */ |
319 | 319 | protected function createConfig($config = []) |
320 | 320 | { |
321 | - return array_merge([ 'endpoint' => 'redis://127.0.0.1:6379' ], $config); |
|
321 | + return array_merge(['endpoint' => 'redis://127.0.0.1:6379'], $config); |
|
322 | 322 | } |
323 | 323 | |
324 | 324 | /** |
@@ -352,13 +352,13 @@ discard block |
||
352 | 352 | private function attachEvents() |
353 | 353 | { |
354 | 354 | $this->redis->on('start', function($redis) { |
355 | - $this->emit('start', [ $this ]); |
|
355 | + $this->emit('start', [$this]); |
|
356 | 356 | }); |
357 | 357 | $this->redis->on('stop', function($redis) { |
358 | - $this->emit('stop', [ $this ]); |
|
358 | + $this->emit('stop', [$this]); |
|
359 | 359 | }); |
360 | 360 | $this->redis->on('error', function($redis, $ex) { |
361 | - $this->emit('error', [ $this, $ex ]); |
|
361 | + $this->emit('error', [$this, $ex]); |
|
362 | 362 | }); |
363 | 363 | } |
364 | 364 | } |