Completed
Push — master ( 90050c...4b948a )
by
unknown
12:31
created
src/Objects/AbstractObject.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
         ]));
37 37
 
38 38
         if (config('laravel-salesforce.disable_on_local') && app()->environment('local')) {
39
-            $response = (object)['success' => true, 'totalSize' => 0, 'id' => 'localRequestId', 'OwnerId' => 'localRequestId'];
39
+            $response = (object) ['success' => true, 'totalSize' => 0, 'id' => 'localRequestId', 'OwnerId' => 'localRequestId'];
40 40
         } else {
41 41
             try {
42 42
                 $response = json_decode(
43
-                    $this->salesforce->client->request($method, $this->salesforce->baseUrl . $url, $options)
43
+                    $this->salesforce->client->request($method, $this->salesforce->baseUrl.$url, $options)
44 44
                         ->getBody());
45 45
             } catch (ClientException $e) {
46 46
                 throw new SalesforceException($e->getMessage());
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
             return $this->type;
64 64
         }
65 65
 
66
-        if($this->custom === true) {
67
-            return (new \ReflectionClass($this))->getShortName() . '__c';
66
+        if ($this->custom === true) {
67
+            return (new \ReflectionClass($this))->getShortName().'__c';
68 68
         }
69 69
 
70 70
         return (new \ReflectionClass($this))->getShortName();
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function getVersion()
79 79
     {
80
-        return $this->sendRequest('GET', $this->salesforce->instanceUrl . '/services/data');
80
+        return $this->sendRequest('GET', $this->salesforce->instanceUrl.'/services/data');
81 81
     }
82 82
 
83 83
     /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function listOrganisationLimits()
87 87
     {
88
-        return $this->sendRequest('GET', $this->salesforce->instanceUrl . $this->version['url'] . '/limits');
88
+        return $this->sendRequest('GET', $this->salesforce->instanceUrl.$this->version['url'].'/limits');
89 89
     }
90 90
 
91 91
     /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function describeObject($objectName)
119 119
     {
120
-        return $this->sendRequest('GET', '/sobjects/' . $objectName . '/describe');
120
+        return $this->sendRequest('GET', '/sobjects/'.$objectName.'/describe');
121 121
     }
122 122
 
123 123
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function describeBasicObject($objectName)
131 131
     {
132
-        return $this->sendRequest('GET', '/sobjects/' . $objectName);
132
+        return $this->sendRequest('GET', '/sobjects/'.$objectName);
133 133
     }
134 134
 
135 135
     /**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function get(string $id, array $fields = [])
159 159
     {
160
-        return $this->sendRequest('GET', "/sobjects/" . $this->getType() . "/$id", ['query' => $fields]);
160
+        return $this->sendRequest('GET', "/sobjects/".$this->getType()."/$id", ['query' => $fields]);
161 161
     }
162 162
 
163 163
     /**
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      */
170 170
     public function update(string $id, array $params)
171 171
     {
172
-        $this->sendRequest('PATCH', "/sobjects/" . $this->getType() . "/$id",
172
+        $this->sendRequest('PATCH', "/sobjects/".$this->getType()."/$id",
173 173
             [
174 174
                 'json' => $params,
175 175
             ]
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function create(array $params)
187 187
     {
188
-        $response = $this->sendRequest('POST', "/sobjects/" . $this->getType(), [
188
+        $response = $this->sendRequest('POST', "/sobjects/".$this->getType(), [
189 189
             'json' => $params,
190 190
         ]);
191 191
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function delete(string $id)
206 206
     {
207
-        $this->sendRequest('DELETE', "/sobjects/" . $this->getType() . "/$id");
207
+        $this->sendRequest('DELETE', "/sobjects/".$this->getType()."/$id");
208 208
     }
209 209
 
210 210
     /**
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     {
219 219
         return $this->sendRequest(
220 220
             'GET',
221
-            '/analytics/reports/' . $id,
221
+            '/analytics/reports/'.$id,
222 222
             ['query' => ['hasDetailRows' => $includeDetails]]
223 223
         );
224 224
     }
Please login to merge, or discard this patch.