@@ -20,11 +20,11 @@ |
||
| 20 | 20 | |
| 21 | 21 | return [ |
| 22 | 22 | 'default' => [ |
| 23 | - 'host' => getenv('CLUSTERPOINT_HOST'), |
|
| 24 | - 'account_id' => getenv('CLUSTERPOINT_ACCOUNT_ID'), |
|
| 25 | - 'username' => getenv('CLUSTERPOINT_USERNAME'), |
|
| 26 | - 'password' => getenv('CLUSTERPOINT_PASSWORD'), |
|
| 27 | - 'debug' => getenv('CLUSTERPOINT_DEBUG_MODE'), |
|
| 23 | + 'host' => getenv('CLUSTERPOINT_HOST'), |
|
| 24 | + 'account_id' => getenv('CLUSTERPOINT_ACCOUNT_ID'), |
|
| 25 | + 'username' => getenv('CLUSTERPOINT_USERNAME'), |
|
| 26 | + 'password' => getenv('CLUSTERPOINT_PASSWORD'), |
|
| 27 | + 'debug' => getenv('CLUSTERPOINT_DEBUG_MODE'), |
|
| 28 | 28 | ], |
| 29 | 29 | 'development' => [ |
| 30 | 30 | 'host' => 'https://api-eu.clusterpoint.com/v4/', |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | $client = $this->getClient(); |
| 19 | 19 | } |
| 20 | 20 | return (new Finder($client)) |
| 21 | - ->database($this->getDatabaseName()) |
|
| 22 | - ->from($this->getResourceName()); |
|
| 21 | + ->database($this->getDatabaseName()) |
|
| 22 | + ->from($this->getResourceName()); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function validateUniqueFields() |
@@ -40,10 +40,10 @@ |
||
| 40 | 40 | |
| 41 | 41 | protected function addWhereGroup($collection, $conditions, $logical) |
| 42 | 42 | { |
| 43 | - /** |
|
| 44 | - * @codeCoverageIgnore |
|
| 45 | - * Passing anonymous function to Clusterpoint API |
|
| 46 | - */ |
|
| 43 | + /** |
|
| 44 | + * @codeCoverageIgnore |
|
| 45 | + * Passing anonymous function to Clusterpoint API |
|
| 46 | + */ |
|
| 47 | 47 | return function ($collection) use ($conditions, $logical) { |
| 48 | 48 | $this->parseWhere($collection, $conditions, $logical); |
| 49 | 49 | }; |
@@ -42,6 +42,9 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param \Clusterpoint\Instance\Service $collection |
|
| 47 | + */ |
|
| 45 | 48 | protected function configQuery($collection) |
| 46 | 49 | { |
| 47 | 50 | $this->setLimit($collection); |
@@ -90,6 +93,9 @@ discard block |
||
| 90 | 93 | }; |
| 91 | 94 | } |
| 92 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $nextLogical |
|
| 98 | + */ |
|
| 93 | 99 | protected function parseWhereGroup($logical, $collection, $condition, $nextLogical) |
| 94 | 100 | { |
| 95 | 101 | if ($logical === '||') { |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | $client = $this->getClient(); |
| 19 | 19 | } |
| 20 | 20 | return (new Finder($client)) |
| 21 | - ->database($this->getDatabaseName()) |
|
| 22 | - ->from($this->getResourceName()); |
|
| 21 | + ->database($this->getDatabaseName()) |
|
| 22 | + ->from($this->getResourceName()); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function validateUniqueFields() |