@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | if ($this->filters) { |
| 131 | 131 | foreach ($this->filters as $resource => $columns) { |
| 132 | - if(is_array($columns)){ |
|
| 132 | + if (is_array($columns)) { |
|
| 133 | 133 | foreach ($columns as $column => $operands) { |
| 134 | 134 | foreach ($operands as $operand => $value) { |
| 135 | 135 | $query['filter'][$resource][$column][$operand] = is_array($value) ? implode(',', |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | - else{ |
|
| 140 | + else { |
|
| 141 | 141 | $query['filter'][$resource] = $columns; |
| 142 | 142 | } |
| 143 | 143 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | $this->options = $options; |
| 27 | 27 | |
| 28 | - $this->client = (!empty($http_client))? $http_client: new \GuzzleHttp\Client($this->getOptions()); |
|
| 28 | + $this->client = (!empty($http_client)) ? $http_client : new \GuzzleHttp\Client($this->getOptions()); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | $endpoint = Psr7\uri_for($endpoint); |
| 39 | 39 | |
| 40 | - if ($endpoint->isAbsolute($endpoint)){ |
|
| 40 | + if ($endpoint->isAbsolute($endpoint)) { |
|
| 41 | 41 | throw new \Exception("Endpoint must be a relative path"); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | 'base_uri' => $this->base_uri, |
| 55 | 55 | 'http_errors' => true, |
| 56 | 56 | 'headers' => ['Accept' => 'application/json'] |
| 57 | - ],$this->options); |
|
| 57 | + ], $this->options); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | */ |
| 107 | 107 | private function getObjectFromMap($type, $id, array $resourceMap) |
| 108 | 108 | { |
| 109 | - return !empty($resourceMap[$type . "-" . $id])?$resourceMap[$type . "-" . $id]:null; |
|
| 109 | + return !empty($resourceMap[$type . "-" . $id]) ? $resourceMap[$type . "-" . $id] : null; |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |