@@ -22,7 +22,7 @@ |
||
| 22 | 22 | 'collection' => $collection, |
| 23 | 23 | 'bucket' => $bucket, |
| 24 | 24 | 'terms' => quote($terms), |
| 25 | - 'limit' => $limit ? "LIMIT($limit)": null, |
|
| 25 | + 'limit' => $limit ? "LIMIT($limit)" : null, |
|
| 26 | 26 | ]; |
| 27 | 27 | |
| 28 | 28 | parent::__construct($this->command, $this->parameters); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | $response = $this->send(new StartSearchChannelCommand()); |
| 33 | 33 | |
| 34 | - if($bufferSize = $response->get('bufferSize')){ |
|
| 34 | + if ($bufferSize = $response->get('bufferSize')) { |
|
| 35 | 35 | $this->bufferSize = (int) $bufferSize; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -50,13 +50,13 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $response = $this->send(new QueryCommand($collection, $bucket, $terms, $limit)); |
| 52 | 52 | |
| 53 | - if(! $response->getStatus() == 'PENDING') { |
|
| 53 | + if (!$response->getStatus() == 'PENDING') { |
|
| 54 | 54 | throw new CommandFailedException; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | $results = $this->read(); |
| 58 | 58 | |
| 59 | - if(! $results->getStatus() == 'EVENT') { |
|
| 59 | + if (!$results->getStatus() == 'EVENT') { |
|
| 60 | 60 | throw new CommandFailedException; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -71,17 +71,17 @@ discard block |
||
| 71 | 71 | * @return array |
| 72 | 72 | * @throws CommandFailedException |
| 73 | 73 | */ |
| 74 | - public function suggest($collection, $bucket, $terms, $limit=null): array |
|
| 74 | + public function suggest($collection, $bucket, $terms, $limit = null): array |
|
| 75 | 75 | { |
| 76 | 76 | $response = $this->send(new SuggestCommand($collection, $bucket, $terms, $limit)); |
| 77 | 77 | |
| 78 | - if(! $response->getStatus() == 'PENDING') { |
|
| 78 | + if (!$response->getStatus() == 'PENDING') { |
|
| 79 | 79 | throw new CommandFailedException; |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | $results = $this->read(); |
| 83 | 83 | |
| 84 | - if(! $results->getStatus() == 'EVENT') { |
|
| 84 | + if (!$results->getStatus() == 'EVENT') { |
|
| 85 | 85 | throw new CommandFailedException; |
| 86 | 86 | } |
| 87 | 87 | |