Completed
Push — master ( 314886...453f6e )
by
unknown
01:38
created
src/Objects/AbstractObject.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         ]));
34 34
 
35 35
         $response = json_decode(
36
-            $this->salesforce->client->request($method, $this->salesforce->baseUrl . $url, $options)
36
+            $this->salesforce->client->request($method, $this->salesforce->baseUrl.$url, $options)
37 37
                 ->getBody());
38 38
 
39 39
         event(new ResponseReceived([
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function getVersion()
64 64
     {
65
-        return $this->sendRequest('GET', $this->salesforce->instanceUrl . '/services/data');
65
+        return $this->sendRequest('GET', $this->salesforce->instanceUrl.'/services/data');
66 66
     }
67 67
 
68 68
     /**
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function listOrganisationLimits()
72 72
     {
73
-        return $this->sendRequest('GET', $this->salesforce->instanceUrl . $this->version['url'] . '/limits');
73
+        return $this->sendRequest('GET', $this->salesforce->instanceUrl.$this->version['url'].'/limits');
74 74
     }
75 75
 
76 76
     /**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function describeObject($objectName)
104 104
     {
105
-        return $this->sendRequest('GET', '/sobjects/' . $objectName . '/describe');
105
+        return $this->sendRequest('GET', '/sobjects/'.$objectName.'/describe');
106 106
     }
107 107
 
108 108
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function describeBasicObject($objectName)
116 116
     {
117
-        return $this->sendRequest('GET', '/sobjects/' . $objectName);
117
+        return $this->sendRequest('GET', '/sobjects/'.$objectName);
118 118
     }
119 119
 
120 120
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function getAllByOpportunityId($opportunityId)
124 124
     {
125
-        $query = 'Select Id, Name, Opportunity__c, Net_amount__c, Payment_Date__c, Gross_Amount__c From ' . $this->getType() . ' Where Opportunity__c = \'' . $opportunityId . '\' And IsDeleted = false';
125
+        $query = 'Select Id, Name, Opportunity__c, Net_amount__c, Payment_Date__c, Gross_Amount__c From '.$this->getType().' Where Opportunity__c = \''.$opportunityId.'\' And IsDeleted = false';
126 126
 
127 127
         $response = $this->query($query);
128 128
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function get(string $id, array $fields = [])
160 160
     {
161
-        return $this->sendRequest('GET', "/sobjects/" . $this->getType() . "/$id", ['query' => $fields]);
161
+        return $this->sendRequest('GET', "/sobjects/".$this->getType()."/$id", ['query' => $fields]);
162 162
     }
163 163
 
164 164
     /**
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function update(string $id, array $params)
172 172
     {
173
-        $response = $this->sendRequest('PATCH', "/sobjects/" . $this->getType() . "/$id",
173
+        $response = $this->sendRequest('PATCH', "/sobjects/".$this->getType()."/$id",
174 174
             [
175 175
                 'json' => $params,
176 176
             ]
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function create(array $params)
194 194
     {
195
-        $response = $this->sendRequest('POST', "/sobjects/" . $this->getType(), [
195
+        $response = $this->sendRequest('POST', "/sobjects/".$this->getType(), [
196 196
             'json' => $params,
197 197
         ]);
198 198
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      */
212 212
     public function delete(string $id)
213 213
     {
214
-        $response = $this->sendRequest('DELETE', "/sobjects/" . $this->getType() . "/$id");
214
+        $response = $this->sendRequest('DELETE', "/sobjects/".$this->getType()."/$id");
215 215
 
216 216
         if ($response->success !== true) {
217 217
             throw new SalesforceException($response->errors);
Please login to merge, or discard this patch.