Code Duplication    Length = 8-8 lines in 2 locations

src/Client.php 2 locations

@@ 165-172 (lines=8) @@
162
     * @return bool
163
     * @throws \Exception
164
     */
165
    public function deleteRecord($object, $id)
166
    {
167
        $url = $this->baseUrl . '/services/data/v20.0/sobjects/' . $object . '/' . $id;
168
169
        $this->makeRequest('delete', $url, ['headers' => ['Authorization' => $this->getAuthHeader()]]);
170
171
        return true;
172
    }
173
174
175
@@ 184-191 (lines=8) @@
181
     * @return bool
182
     * @throws \Exception
183
     */
184
    public function bulkDeleteRecords(array $ids)
185
    {
186
        $url = $this->baseUrl . '/services/data/v20.0/composite/sobjects?ids=' . \implode($ids, ',');
187
188
        $this->makeRequest('delete', $url, ['headers' => ['Authorization' => $this->getAuthHeader()]]);
189
190
        return true;
191
    }
192
193
    /**
194
     * Login with user and password