@@ -42,7 +42,7 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * SalesforceAuth constructor. |
| 44 | 44 | * |
| 45 | - * @param $client |
|
| 45 | + * @param \GuzzleHttp\Client $client |
|
| 46 | 46 | */ |
| 47 | 47 | public function __construct($client) |
| 48 | 48 | { |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | $this->id = $responseObject->id; |
| 84 | 84 | $this->accessToken = $responseObject->access_token; |
| 85 | 85 | $this->instanceUrl = $responseObject->instance_url; |
| 86 | - $this->url = $responseObject->instance_url . $this->version['url']; |
|
| 86 | + $this->url = $responseObject->instance_url.$this->version['url']; |
|
| 87 | 87 | |
| 88 | 88 | if ($this->accessToken !== null) { |
| 89 | 89 | $this->authenticated = true; |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | private function callCreateOnObject($method, $args) |
| 66 | 66 | { |
| 67 | 67 | $type = substr($method, 6); |
| 68 | - $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type; |
|
| 68 | + $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type; |
|
| 69 | 69 | |
| 70 | 70 | if (class_exists($class)) { |
| 71 | 71 | return (new $class())->create($args[0]); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | private function callUpdateOnObject($method, $args) |
| 78 | 78 | { |
| 79 | 79 | $type = substr($method, 6); |
| 80 | - $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type; |
|
| 80 | + $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type; |
|
| 81 | 81 | |
| 82 | 82 | if (class_exists($class)) { |
| 83 | 83 | return (new $class())->update($args[0]); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | private function callDeleteOnObject($method, $args) |
| 90 | 90 | { |
| 91 | 91 | $type = substr($method, 6); |
| 92 | - $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type; |
|
| 92 | + $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type; |
|
| 93 | 93 | |
| 94 | 94 | if (class_exists($class)) { |
| 95 | 95 | return (new $class())->delete($args[0]); |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | private function callGetOnObject($method, $args) |
| 102 | 102 | { |
| 103 | 103 | $type = substr($method, 3); |
| 104 | - $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type; |
|
| 104 | + $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type; |
|
| 105 | 105 | |
| 106 | 106 | if (class_exists($class)) { |
| 107 | 107 | return (new $class())->record($args[0]); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | { |
| 122 | 122 | return $this->sendRequest( |
| 123 | 123 | 'GET', |
| 124 | - '/analytics/reports/' . $params['id'], |
|
| 124 | + '/analytics/reports/'.$params['id'], |
|
| 125 | 125 | ['query' => ['includeDetails' => $params['includeDetails']]], |
| 126 | 126 | false |
| 127 | 127 | ); |