@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * Get latest version. |
44 | 44 | * |
45 | - * @return mixed |
|
45 | + * @return string |
|
46 | 46 | */ |
47 | 47 | protected function getVersion() |
48 | 48 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | /** |
61 | 61 | * List all available resources. |
62 | 62 | * |
63 | - * @return mixed |
|
63 | + * @return string |
|
64 | 64 | */ |
65 | 65 | protected function listAvailableResources() |
66 | 66 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * List all objects. |
72 | 72 | * |
73 | - * @return mixed |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | protected function listObjects() |
76 | 76 | { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @param $objectName |
84 | 84 | * |
85 | - * @return mixed |
|
85 | + * @return string |
|
86 | 86 | */ |
87 | 87 | protected function describeObject($objectName) |
88 | 88 | { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * |
95 | 95 | * @param $objectName |
96 | 96 | * |
97 | - * @return mixed |
|
97 | + * @return string |
|
98 | 98 | */ |
99 | 99 | protected function describeBasicObject($objectName) |
100 | 100 | { |
@@ -104,9 +104,9 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * Run Salesforce query. |
106 | 106 | * |
107 | - * @param $query |
|
107 | + * @param string $query |
|
108 | 108 | * |
109 | - * @return mixed |
|
109 | + * @return string |
|
110 | 110 | */ |
111 | 111 | protected function query($query) |
112 | 112 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @param string $id |
122 | 122 | * |
123 | 123 | * @param array $fields |
124 | - * @return bool|mixed |
|
124 | + * @return false|string |
|
125 | 125 | */ |
126 | 126 | public function get(string $id, array $fields = []) |
127 | 127 | { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @param string $id |
145 | 145 | * @param $params |
146 | - * @return bool|mixed |
|
146 | + * @return false|string |
|
147 | 147 | * @throws SalesforceException |
148 | 148 | */ |
149 | 149 | public function update(string $id, array $params) |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * |
177 | 177 | * @param $params |
178 | 178 | * |
179 | - * @return bool |
|
179 | + * @return false|string |
|
180 | 180 | * @throws SalesforceException |
181 | 181 | */ |
182 | 182 | public function create(array $params) |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * Delete a given record |
201 | 201 | * |
202 | 202 | * @param string $id |
203 | - * @return bool |
|
203 | + * @return false|string |
|
204 | 204 | * @throws SalesforceException |
205 | 205 | */ |
206 | 206 | public function delete(string $id) |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | return false; |
130 | 130 | } |
131 | 131 | |
132 | - $response = $this->sendRequest('GET', "/sobjects/" . $this->getType() . "/$id", ['query' => $fields]); |
|
132 | + $response = $this->sendRequest('GET', "/sobjects/".$this->getType()."/$id", ['query' => $fields]); |
|
133 | 133 | |
134 | 134 | if (!$response) { |
135 | 135 | return false; |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | */ |
182 | 182 | public function create(array $params) |
183 | 183 | { |
184 | - $response = $this->sendRequest('POST', "/sobject/" . $this->getType(), [ |
|
184 | + $response = $this->sendRequest('POST', "/sobject/".$this->getType(), [ |
|
185 | 185 | 'json' => $params, |
186 | 186 | ]); |
187 | 187 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | */ |
206 | 206 | public function delete(string $id) |
207 | 207 | { |
208 | - $response = $this->sendRequest('DELETE', "/sobjects/" . $this->getType() ."/$id"); |
|
208 | + $response = $this->sendRequest('DELETE', "/sobjects/".$this->getType()."/$id"); |
|
209 | 209 | |
210 | 210 | if (!$response) { |
211 | 211 | return false; |
@@ -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())->get($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 | ); |