Completed
Push — master ( 381725...d23a27 )
by Ashleigh
02:15 queued 38s
created
src/Salesforce.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.
src/Objects/AbstractObject.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     {
113 113
         return $this->sendRequest(
114 114
             'GET',
115
-            '/analytics/reports/' . $params['id'],
115
+            '/analytics/reports/'.$params['id'],
116 116
             ['query' => ['includeDetails' => $params['includeDetails']]]
117 117
         );
118 118
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             return false;
146 146
         }
147 147
 
148
-        $response = $this->sendRequest('GET', "/sobjects/" . $this->getType() . "/$id", ['query' => $fields]);
148
+        $response = $this->sendRequest('GET', "/sobjects/".$this->getType()."/$id", ['query' => $fields]);
149 149
 
150 150
         if (!$response) {
151 151
             return false;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     public function create(array $params)
199 199
     {
200
-        $response = $this->sendRequest('POST', "/sobject/" . $this->getType(), [
200
+        $response = $this->sendRequest('POST', "/sobject/".$this->getType(), [
201 201
             'json' => $params,
202 202
         ]);
203 203
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function delete(string $id)
223 223
     {
224
-        $response = $this->sendRequest('DELETE', "/sobjects/" . $this->getType() ."/$id");
224
+        $response = $this->sendRequest('DELETE', "/sobjects/".$this->getType()."/$id");
225 225
 
226 226
         if (!$response) {
227 227
             return false;
Please login to merge, or discard this patch.