@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function hasLookupd() : bool |
34 | 34 | { |
35 | - return ! is_null($this->lookupd); |
|
35 | + return !is_null($this->lookupd); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -39,6 +39,6 @@ |
||
39 | 39 | */ |
40 | 40 | private function queued() : bool |
41 | 41 | { |
42 | - return !! $this->chan; |
|
42 | + return !!$this->chan; |
|
43 | 43 | } |
44 | 44 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function valid() : bool |
42 | 42 | { |
43 | - return ! $this->eof(); |
|
43 | + return !$this->eof(); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function __construct(Promised $connected, Nsqd $nsqd, Consuming $consuming) |
25 | 25 | { |
26 | - go(static function () use ($connected, $nsqd, $consuming) { |
|
26 | + go(static function() use ($connected, $nsqd, $consuming) { |
|
27 | 27 | if (yield $connected) { |
28 | 28 | if (yield $nsqd->sub($consuming->topic(), $consuming->channel())) { |
29 | 29 | $nsqd->rdy($consuming->concurrency()); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | { |
68 | 68 | $this->observers[] = $observer; |
69 | 69 | |
70 | - $querying = function () use ($topic) { |
|
70 | + $querying = function() use ($topic) { |
|
71 | 71 | /** |
72 | 72 | * @var Response $response |
73 | 73 | */ |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $response = yield $this->http->perform($request); |
77 | 77 | switch ($response->getStatusCode()) { |
78 | 78 | case 200: |
79 | - $endpoints = $this->parsing((string)$response->getBody()); |
|
79 | + $endpoints = $this->parsing((string) $response->getBody()); |
|
80 | 80 | if ($this->observers) { |
81 | 81 | foreach ($this->observers as $observer) { |
82 | 82 | yield $observer($endpoints); |