| @@ -34,11 +34,11 @@ discard block | ||
| 34 | 34 | ])); | 
| 35 | 35 | |
| 36 | 36 |          if (config('laravel-salesforce.disable_on_local') && app()->environment('local')) { | 
| 37 | - $response = (object)['success' => true, 'totalSize' => 0, 'id' => 'localRequestId', 'OwnerId' => 'localRequestId']; | |
| 37 | + $response = (object) ['success' => true, 'totalSize' => 0, 'id' => 'localRequestId', 'OwnerId' => 'localRequestId']; | |
| 38 | 38 |          } else { | 
| 39 | 39 |              try { | 
| 40 | 40 | $response = json_decode( | 
| 41 | - $this->salesforce->client->request($method, $this->salesforce->baseUrl . $url, $options) | |
| 41 | + $this->salesforce->client->request($method, $this->salesforce->baseUrl.$url, $options) | |
| 42 | 42 | ->getBody()); | 
| 43 | 43 |              } catch (ClientException $e) { | 
| 44 | 44 | throw new SalesforceException($e->getMessage()); | 
| @@ -71,7 +71,7 @@ discard block | ||
| 71 | 71 | */ | 
| 72 | 72 | public function getVersion() | 
| 73 | 73 |      { | 
| 74 | -        return $this->sendRequest('GET', $this->salesforce->instanceUrl . '/services/data'); | |
| 74 | +        return $this->sendRequest('GET', $this->salesforce->instanceUrl.'/services/data'); | |
| 75 | 75 | } | 
| 76 | 76 | |
| 77 | 77 | /** | 
| @@ -79,7 +79,7 @@ discard block | ||
| 79 | 79 | */ | 
| 80 | 80 | public function listOrganisationLimits() | 
| 81 | 81 |      { | 
| 82 | -        return $this->sendRequest('GET', $this->salesforce->instanceUrl . $this->version['url'] . '/limits'); | |
| 82 | +        return $this->sendRequest('GET', $this->salesforce->instanceUrl.$this->version['url'].'/limits'); | |
| 83 | 83 | } | 
| 84 | 84 | |
| 85 | 85 | /** | 
| @@ -111,7 +111,7 @@ discard block | ||
| 111 | 111 | */ | 
| 112 | 112 | public function describeObject($objectName) | 
| 113 | 113 |      { | 
| 114 | -        return $this->sendRequest('GET', '/sobjects/' . $objectName . '/describe'); | |
| 114 | +        return $this->sendRequest('GET', '/sobjects/'.$objectName.'/describe'); | |
| 115 | 115 | } | 
| 116 | 116 | |
| 117 | 117 | /** | 
| @@ -123,7 +123,7 @@ discard block | ||
| 123 | 123 | */ | 
| 124 | 124 | public function describeBasicObject($objectName) | 
| 125 | 125 |      { | 
| 126 | -        return $this->sendRequest('GET', '/sobjects/' . $objectName); | |
| 126 | +        return $this->sendRequest('GET', '/sobjects/'.$objectName); | |
| 127 | 127 | } | 
| 128 | 128 | |
| 129 | 129 | /** | 
| @@ -151,7 +151,7 @@ discard block | ||
| 151 | 151 | */ | 
| 152 | 152 | public function get(string $id, array $fields = []) | 
| 153 | 153 |      { | 
| 154 | -        return $this->sendRequest('GET', "/sobjects/" . $this->getType() . "/$id", ['query' => $fields]); | |
| 154 | +        return $this->sendRequest('GET', "/sobjects/".$this->getType()."/$id", ['query' => $fields]); | |
| 155 | 155 | } | 
| 156 | 156 | |
| 157 | 157 | /** | 
| @@ -163,7 +163,7 @@ discard block | ||
| 163 | 163 | */ | 
| 164 | 164 | public function update(string $id, array $params) | 
| 165 | 165 |      { | 
| 166 | -        $this->sendRequest('PATCH', "/sobjects/" . $this->getType() . "/$id", | |
| 166 | +        $this->sendRequest('PATCH', "/sobjects/".$this->getType()."/$id", | |
| 167 | 167 | [ | 
| 168 | 168 | 'json' => $params, | 
| 169 | 169 | ] | 
| @@ -179,7 +179,7 @@ discard block | ||
| 179 | 179 | */ | 
| 180 | 180 | public function create(array $params) | 
| 181 | 181 |      { | 
| 182 | -        $response = $this->sendRequest('POST', "/sobjects/" . $this->getType(), [ | |
| 182 | +        $response = $this->sendRequest('POST', "/sobjects/".$this->getType(), [ | |
| 183 | 183 | 'json' => $params, | 
| 184 | 184 | ]); | 
| 185 | 185 | |
| @@ -198,7 +198,7 @@ discard block | ||
| 198 | 198 | */ | 
| 199 | 199 | public function delete(string $id) | 
| 200 | 200 |      { | 
| 201 | -        $this->sendRequest('DELETE', "/sobjects/" . $this->getType() . "/$id"); | |
| 201 | +        $this->sendRequest('DELETE', "/sobjects/".$this->getType()."/$id"); | |
| 202 | 202 | } | 
| 203 | 203 | |
| 204 | 204 | /** | 
| @@ -212,7 +212,7 @@ discard block | ||
| 212 | 212 |      { | 
| 213 | 213 | return $this->sendRequest( | 
| 214 | 214 | 'GET', | 
| 215 | - '/analytics/reports/' . $id, | |
| 215 | + '/analytics/reports/'.$id, | |
| 216 | 216 | ['query' => ['hasDetailRows' => $includeDetails]] | 
| 217 | 217 | ); | 
| 218 | 218 | } |