From a237f23d04da7594828603e63eccc1fa3a2b6ab6 Mon Sep 17 00:00:00 2001 From: Aaron Bauman <aaron@messageagency.com> Date: Fri, 20 Oct 2023 13:42:00 -0400 Subject: [PATCH] Fix misspelled retrieves --- .../src/EventSubscriber/SalesforceExampleSubscriber.php | 2 +- .../src/SalesforceMappingFieldPluginBase.php | 4 ++-- .../src/Form/SalesforceMappingFormBase.php | 6 +++--- .../src/Form/SalesforceMappingFormCrudBase.php | 2 +- src/Rest/RestClient.php | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/salesforce_example/src/EventSubscriber/SalesforceExampleSubscriber.php b/modules/salesforce_example/src/EventSubscriber/SalesforceExampleSubscriber.php index 45bbad03..9f67cb57 100644 --- a/modules/salesforce_example/src/EventSubscriber/SalesforceExampleSubscriber.php +++ b/modules/salesforce_example/src/EventSubscriber/SalesforceExampleSubscriber.php @@ -145,7 +145,7 @@ class SalesforceExampleSubscriber implements EventSubscriberInterface { return; } // If Attachments field was set, it will contain a URL from which we can - // fetch the attached binary. We must append "body" to the retreived URL + // fetch the attached binary. We must append "body" to the retrieved URL // https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_blob_retrieve.htm $attachment_url = $attachments['records'][0]['attributes']['url']; $attachment_url = $client->getInstanceUrl() . $attachment_url . '/Body'; diff --git a/modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php b/modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php index 322e0651..aa68bd73 100644 --- a/modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php +++ b/modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php @@ -511,10 +511,10 @@ abstract class SalesforceMappingFieldPluginBase extends PluginBase implements Sa } /** - * Helper to retreive a list of fields for a given object type. + * Helper to retrieve a list of fields for a given object type. * * @param string $sfobject_name - * The object type of whose fields you want to retreive. + * The object type of whose fields you want to retrieve. * * @return array * An array of values keyed by machine name of the field with the label as diff --git a/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormBase.php b/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormBase.php index 29378b2d..5213f43f 100644 --- a/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormBase.php +++ b/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormBase.php @@ -128,10 +128,10 @@ abstract class SalesforceMappingFormBase extends EntityForm { } /** - * Retreive Salesforce's information about an object type. + * Retrieve Salesforce's information about an object type. * * @param string $salesforce_object_type - * The object type of whose records you want to retreive. + * The object type of whose records you want to retrieve. * * @todo this should move to the Salesforce service * @@ -153,7 +153,7 @@ abstract class SalesforceMappingFormBase extends EntityForm { } /** - * Helper to retreive a list of object type options. + * Helper to retrieve a list of object type options. * * @return array * An array of values keyed by machine name of the object with the label as diff --git a/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormCrudBase.php b/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormCrudBase.php index 851e8fe6..ca1554d5 100644 --- a/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormCrudBase.php +++ b/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormCrudBase.php @@ -464,7 +464,7 @@ abstract class SalesforceMappingFormCrudBase extends SalesforceMappingFormBase { } /** - * Helper to retreive a list of object type options. + * Helper to retrieve a list of object type options. * * @return array * An array of values keyed by machine name of the object with the label as diff --git a/src/Rest/RestClient.php b/src/Rest/RestClient.php index b79b1aa5..5a743aa9 100644 --- a/src/Rest/RestClient.php +++ b/src/Rest/RestClient.php @@ -535,7 +535,7 @@ class RestClient implements RestClientInterface { $response = $this->apiCall("sobjects/{$name}/{$key}/{$value}", $params, 'PATCH', TRUE); - // On update, upsert method returns an empty body. Retreive object id, so + // On update, upsert method returns an empty body. Retrieve object id, so // that we can return a consistent response. if ($response->getStatusCode() == 204) { // We need a way to allow callers to distinguish updates and inserts. To -- GitLab