From 2a3ed46844cead806d972335409975cd7ff4b88a Mon Sep 17 00:00:00 2001 From: Ankit Pathak <1972-ankitv18@users.noreply.drupalcode.org> Date: Tue, 18 Mar 2025 18:04:12 +0000 Subject: [PATCH] Issue #3472706: Fix cspell pipeline --- .cspell-project-words.txt | 115 ++++++++++++++++++ .gitlab-ci.yml | 3 +- .../salesforce_address.module | 2 +- .../salesforce_example.module | 12 +- .../SalesforceLoggerSubscriber.php | 2 +- .../Commands/SalesforceMappingCommands.php | 2 +- .../SalesforceMappingCommandsBase.php | 2 +- .../src/Entity/MappedObject.php | 2 +- .../src/Entity/SalesforceMapping.php | 4 +- modules/salesforce_mapping/src/PushParams.php | 2 +- .../src/SalesforceMappingFieldPluginBase.php | 4 +- .../tests/src/Unit/MappedObjectTest.php | 2 +- .../tests/src/Unit/SalesforceMappingTest.php | 10 +- .../src/Controller/MappedObjectController.php | 2 +- .../SalesforceMappedObjectAddLocalAction.php | 2 +- modules/salesforce_pull/src/DeleteHandler.php | 2 +- .../src/Plugin/QueueWorker/PullBase.php | 2 +- .../tests/src/Unit/DeleteHandlerTest.php | 2 +- .../tests/src/Unit/PullBaseTest.php | 4 +- .../tests/src/Unit/PullQueueItemTest.php | 2 +- .../tests/src/Unit/QueueHandlerTest.php | 2 +- .../salesforce_push/salesforce_push.install | 2 +- .../src/Commands/SalesforcePushCommands.php | 2 +- .../SalesforcePushQueueProcessor/Rest.php | 2 +- modules/salesforce_push/src/PushQueue.php | 2 +- .../tests/src/Unit/PushQueueTest.php | 2 +- .../salesforce_soap/src/Soap/SoapClient.php | 2 +- salesforce.install | 2 +- src/Rest/RestClientInterface.php | 2 +- src/Rest/RestException.php | 2 +- src/SelectQuery.php | 2 +- ...estSalesforceAuthProviderPluginManager.php | 2 +- tests/src/Unit/SFIDTest.php | 2 +- tests/src/Unit/SObjectTest.php | 2 +- tests/src/Unit/SelectQueryResultTest.php | 2 +- 35 files changed, 162 insertions(+), 46 deletions(-) create mode 100644 .cspell-project-words.txt diff --git a/.cspell-project-words.txt b/.cspell-project-words.txt new file mode 100644 index 00000000..cbed2eb8 --- /dev/null +++ b/.cspell-project-words.txt @@ -0,0 +1,115 @@ + +abcdg +activateable +addtional +adminlink +aggregatable +apexrest +apicalls +atribtary +birthdate +Bject +Chunkify +commandfile +Configurationform +createable +creds +DERP +developerforce +devname +dobj +dprop +elementtype +entup +faultcode +fieldables +fieldmap +fieldmaps +fugly +Giwj +Giwo +gname +govcloud +howsmyssl +ignorefile +lastupdate +layoutable +listviewable +loggable +LONGTERM +mergeable +multipicklist +multipicklists +nillable +notvie +permissionable +picklist +Picklists +Prefilterable +prepull +profilepic +Readby +Reauth +replicateable +resultd +retrieveable +Revisionuser +SDFC +sevent +sfapi +sfco +sfdc +sfdf +sfdo +sfdom +sfdrt +sfeq +sffield +sfid +sfids +sfif +sfiq +sflo +sflp +sflr +sfobj +sfobject +sfobjectid +sfobjects +Sforce +sfpall +sfpd +sfpf +sfpm +sfpmap +sfpq +sfprune +sfpsf +sfpu +sfpushq +sfqo +sfro +sfrq +sfrt +sfrv +sfrvk +singl +sobj +sobject +sobjects +SOQL +soql +Statefull +stringifying +timeframe +timstamp +triggerable +typehint +undeletable +unpushable +unweildy +updateable +vals +webforms +WIAS +WSOD diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9b0a72a2..a7fc0900 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,4 +9,5 @@ variables: OPT_IN_TEST_MAX_PHP: 1 # Broaden test coverage. OPT_IN_TEST_NEXT_MINOR: 1 - OPT_IN_TEST_NEXT_MAJOR: 1 \ No newline at end of file + OPT_IN_TEST_NEXT_MAJOR: 1 + _CSPELL_IGNORE_PATHS: 'src/Tests/*.json, modules/salesforce_mapping/config/schema/' \ No newline at end of file diff --git a/modules/salesforce_address/salesforce_address.module b/modules/salesforce_address/salesforce_address.module index 8b955aba..21a5eb74 100644 --- a/modules/salesforce_address/salesforce_address.module +++ b/modules/salesforce_address/salesforce_address.module @@ -19,7 +19,7 @@ function salesforce_address_help($route_name, RouteMatchInterface $route_match) of the Address Field widget from the Address module, which is compatible with Salesforce address formatting, which uses a single, multi-line field for the street address rather than multiple lines. If you are - syncing Address fields with Saleforce addresses, you can save a lot of + syncing Address fields with Salesforce addresses, you can save a lot of sync trouble by enabling this widget on your Form configurations for your Address fields.') . '</p>'; return $output; diff --git a/modules/salesforce_example/salesforce_example.module b/modules/salesforce_example/salesforce_example.module index dac9351c..474d7e9b 100644 --- a/modules/salesforce_example/salesforce_example.module +++ b/modules/salesforce_example/salesforce_example.module @@ -29,7 +29,7 @@ function salesforce_example_help($route_name, RouteMatchInterface $route_match) * Implements hook_entity_insert(). * * For this example we are simply calling a "manage" function and passing a - * parameter to indicate what type of operaiton is taking place. + * parameter to indicate what type of operation is taking place. */ function salesforce_example_entity_insert(EntityInterface $entity) { _salesforce_example_entity_manage($entity, 'insert'); @@ -39,7 +39,7 @@ function salesforce_example_entity_insert(EntityInterface $entity) { * Implements hook_entity_update(). * * For this example we are simply calling a "manage" function and passing a - * parameter to indicate what type of operaiton is taking place. + * parameter to indicate what type of operation is taking place. */ function salesforce_example_entity_update(EntityInterface $entity) { _salesforce_example_entity_manage($entity, 'update'); @@ -49,7 +49,7 @@ function salesforce_example_entity_update(EntityInterface $entity) { * Implements hook_entity_delete(). * * For this example we are simply calling a "manage" function and passing a - * parameter to indicate what type of operaiton is taking place. + * parameter to indicate what type of operation is taking place. */ function salesforce_example_entity_delete(EntityInterface $entity) { _salesforce_example_entity_manage($entity, 'delete'); @@ -69,7 +69,7 @@ function salesforce_example_entity_delete(EntityInterface $entity) { * * If you're not familiar with Drupal Commerce object relationships, all you * need to know is that Products are umbrella entities around Product - * Variations. Products have Product Variatinos. So if you have a Drupal + * Variations. Products have Product variations. So if you have a Drupal * T-Shirt in sizes S,M,L,XL, the Product is "Drupal T-Shirt" and you will have * four Product Variations, one for each size. The Product object will have * entity references to each Product Variation. @@ -116,7 +116,7 @@ function _salesforce_example_entity_manage(EntityInterface &$entity, $op) { // Commerce model). $course_sfdc_id = $sf->field('Parent_Product__c'); - // Create an SFID object using the vlaue. + // Create an SFID object using the value. $sfid = new SFID($course_sfdc_id); // Use the storage object to load the mapped object(s) that correspond @@ -126,7 +126,7 @@ function _salesforce_example_entity_manage(EntityInterface &$entity, $op) { if (is_array($mapped_objects)) { // We are lazily assuming that there will only be one corresponding - // prodct object and that it will be the first item in the returned + // product object and that it will be the first item in the returned // array. $mapped_object = current($mapped_objects); diff --git a/modules/salesforce_logger/src/EventSubscriber/SalesforceLoggerSubscriber.php b/modules/salesforce_logger/src/EventSubscriber/SalesforceLoggerSubscriber.php index 5ed107d4..afccca06 100644 --- a/modules/salesforce_logger/src/EventSubscriber/SalesforceLoggerSubscriber.php +++ b/modules/salesforce_logger/src/EventSubscriber/SalesforceLoggerSubscriber.php @@ -113,7 +113,7 @@ class SalesforceLoggerSubscriber implements EventSubscriberInterface { if ($log_push_params) { $this->logger->info( sprintf( - 'Entity of type "%s" has been succesfully sent to salesforce as a "%s" entity. Drupal entity ID: %s. Salesforce entity ID: %s.', + 'Entity of type "%s" has been successfully sent to salesforce as a "%s" entity. Drupal entity ID: %s. Salesforce entity ID: %s.', $event->getEntity()->getEntityTypeId(), $event->getMapping()->getSalesforceObjectType(), $event->getEntity()->id(), diff --git a/modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php b/modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php index 74f0393c..1a725e74 100644 --- a/modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php +++ b/modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php @@ -380,7 +380,7 @@ class SalesforceMappingCommands extends SalesforceMappingCommandsBase { foreach ($mapping_ids as $mapping_id) { $mapping = $this->mappingStorage->load($mapping_id); - // If mapping loads successsfully, we assume the mapped object is OK. + // If mapping loads successfully, we assume the mapped object is OK. if ($mapping) { continue; } diff --git a/modules/salesforce_mapping/src/Commands/SalesforceMappingCommandsBase.php b/modules/salesforce_mapping/src/Commands/SalesforceMappingCommandsBase.php index ba53e843..ef700260 100644 --- a/modules/salesforce_mapping/src/Commands/SalesforceMappingCommandsBase.php +++ b/modules/salesforce_mapping/src/Commands/SalesforceMappingCommandsBase.php @@ -197,7 +197,7 @@ abstract class SalesforceMappingCommandsBase extends SalesforceCommandsBase { } /** - * Given a mappin gname, get an array of matching pull mappings. + * Given a mapping name, get an array of matching pull mappings. * * @param string $name * The mapping name. diff --git a/modules/salesforce_mapping/src/Entity/MappedObject.php b/modules/salesforce_mapping/src/Entity/MappedObject.php index 0f58901c..a14378c2 100644 --- a/modules/salesforce_mapping/src/Entity/MappedObject.php +++ b/modules/salesforce_mapping/src/Entity/MappedObject.php @@ -296,7 +296,7 @@ class MappedObject extends RevisionableContentEntityBase implements MappedObject $fields['last_sync_action'] = BaseFieldDefinition::create('string') ->setLabel(t('Action of most recent sync')) - ->setDescription(t('Indicates acion which triggered most recent sync for this mapped object')) + ->setDescription(t('Indicates action which triggered most recent sync for this mapped object')) ->setSetting('is_ascii', TRUE) ->setSetting('max_length', MappingConstants::SALESFORCE_MAPPING_TRIGGER_MAX_LENGTH) ->setRevisionable(TRUE); diff --git a/modules/salesforce_mapping/src/Entity/SalesforceMapping.php b/modules/salesforce_mapping/src/Entity/SalesforceMapping.php index cf790bea..cf63468a 100644 --- a/modules/salesforce_mapping/src/Entity/SalesforceMapping.php +++ b/modules/salesforce_mapping/src/Entity/SalesforceMapping.php @@ -101,7 +101,7 @@ class SalesforceMapping extends ConfigEntityBase implements SalesforceMappingInt protected $weight = 0; /** - * Whether to push asychronous. + * Whether to push asynchronous. * * - If true, disable real-time push. * - If false (default), attempt real-time push and enqueue failures for @@ -221,7 +221,7 @@ class SalesforceMapping extends ConfigEntityBase implements SalesforceMappingInt protected $push_frequency = 0; /** - * Maxmimum number of records to push during a batch. + * Maximum number of records to push during a batch. * * @var int */ diff --git a/modules/salesforce_mapping/src/PushParams.php b/modules/salesforce_mapping/src/PushParams.php index 003bc179..49a649cd 100644 --- a/modules/salesforce_mapping/src/PushParams.php +++ b/modules/salesforce_mapping/src/PushParams.php @@ -118,7 +118,7 @@ class PushParams { * Overwrite params wholesale. * * @param array $params - * Array of params to set for thie PushParams. + * Array of params to set for this PushParams. * * @return $this */ diff --git a/modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php b/modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php index a4127b3e..08d26ada 100644 --- a/modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php +++ b/modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php @@ -570,10 +570,10 @@ abstract class SalesforceMappingFieldPluginBase extends PluginBase implements Sa } /** - * Wraper for plugin.manager.entity_reference_selection service. + * Wrapper for plugin.manager.entity_reference_selection service. * * @return \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface - * Entity autocompleter service. + * Entity autocomplete service. */ protected function selectionPluginManager() { return \Drupal::service('plugin.manager.entity_reference_selection'); diff --git a/modules/salesforce_mapping/tests/src/Unit/MappedObjectTest.php b/modules/salesforce_mapping/tests/src/Unit/MappedObjectTest.php index 53670c12..532781e7 100644 --- a/modules/salesforce_mapping/tests/src/Unit/MappedObjectTest.php +++ b/modules/salesforce_mapping/tests/src/Unit/MappedObjectTest.php @@ -18,7 +18,7 @@ use Drupal\Tests\UnitTestCase; use Symfony\Component\EventDispatcher\EventDispatcherInterface; /** - * Test Mapped Object instantitation. + * Test Mapped Object instantiation. * * @coversDefaultClass \Drupal\salesforce_mapping\Entity\MappedObject * @group salesforce_mapping diff --git a/modules/salesforce_mapping/tests/src/Unit/SalesforceMappingTest.php b/modules/salesforce_mapping/tests/src/Unit/SalesforceMappingTest.php index ea2042d1..5a5df8ce 100644 --- a/modules/salesforce_mapping/tests/src/Unit/SalesforceMappingTest.php +++ b/modules/salesforce_mapping/tests/src/Unit/SalesforceMappingTest.php @@ -15,7 +15,7 @@ use Drupal\Tests\UnitTestCase; use Prophecy\Argument; /** - * Test Object instantitation. + * Test Object instantiation. * * @group salesforce_mapping */ @@ -44,7 +44,7 @@ class SalesforceMappingTest extends UnitTestCase { protected $provider; - protected $saleforceObjectType; + protected $salesforceObjectType; protected $state; @@ -57,7 +57,7 @@ class SalesforceMappingTest extends UnitTestCase { parent::setUp(); $this->id = $this->randomMachineName(); - $this->saleforceObjectType = $this->randomMachineName(); + $this->salesforceObjectType = $this->randomMachineName(); $this->drupalEntityTypeId = $this->randomMachineName(); $this->drupalBundleId = $this->randomMachineName(); $this->values = [ @@ -81,7 +81,7 @@ class SalesforceMappingTest extends UnitTestCase { MappingConstants::SALESFORCE_MAPPING_SYNC_SF_UPDATE => 1, MappingConstants::SALESFORCE_MAPPING_SYNC_SF_DELETE => 1, ], - 'salesforce_object_type' => $this->saleforceObjectType, + 'salesforce_object_type' => $this->salesforceObjectType, 'drupal_entity_type' => $this->drupalEntityTypeId, 'drupal_bundle' => $this->drupalBundleId, 'field_mappings' => [ @@ -188,7 +188,7 @@ class SalesforceMappingTest extends UnitTestCase { $start = strtotime('-5 minutes'); $stop = time(); $query = $this->mapping->getPullQuery([], $start, $stop); - $expectedQuery = new SelectQuery($this->saleforceObjectType); + $expectedQuery = new SelectQuery($this->salesforceObjectType); $expectedQuery->addCondition($this->mapping->getPullTriggerDate(), gmdate('Y-m-d\TH:i:s\Z', $start), '>'); $expectedQuery->addCondition($this->mapping->getPullTriggerDate(), gmdate('Y-m-d\TH:i:s\Z', $stop), '<'); $expectedQuery->fields = $this->mapping->getPullFieldsArray(); diff --git a/modules/salesforce_mapping_ui/src/Controller/MappedObjectController.php b/modules/salesforce_mapping_ui/src/Controller/MappedObjectController.php index d2f18af2..f3a7ddc4 100644 --- a/modules/salesforce_mapping_ui/src/Controller/MappedObjectController.php +++ b/modules/salesforce_mapping_ui/src/Controller/MappedObjectController.php @@ -79,7 +79,7 @@ class MappedObjectController extends ControllerBase { $parameter_name = $route_match->getRouteObject() ->getOption('_salesforce_entity_type_id'); if (empty($parameter_name)) { - throw new \Exception('Entity type paramater not found.'); + throw new \Exception('Entity type parameter not found.'); } $entity = $route_match->getParameter($parameter_name); diff --git a/modules/salesforce_mapping_ui/src/Plugin/Menu/LocalAction/SalesforceMappedObjectAddLocalAction.php b/modules/salesforce_mapping_ui/src/Plugin/Menu/LocalAction/SalesforceMappedObjectAddLocalAction.php index 26b2b688..ac66a1e4 100644 --- a/modules/salesforce_mapping_ui/src/Plugin/Menu/LocalAction/SalesforceMappedObjectAddLocalAction.php +++ b/modules/salesforce_mapping_ui/src/Plugin/Menu/LocalAction/SalesforceMappedObjectAddLocalAction.php @@ -25,7 +25,7 @@ class SalesforceMappedObjectAddLocalAction extends LocalActionDefault { */ public function getOptions(RouteMatchInterface $route_match) { // If our local action is appearing contextually on an entity, provide - // contextual entity paramaters to the add form link. + // contextual entity parameters to the add form link. $options = parent::getOptions($route_match); $entity_type_id = $route_match->getRouteObject()->getOption('_salesforce_entity_type_id'); if (empty($entity_type_id)) { diff --git a/modules/salesforce_pull/src/DeleteHandler.php b/modules/salesforce_pull/src/DeleteHandler.php index 78d5b5c3..a281fb3f 100644 --- a/modules/salesforce_pull/src/DeleteHandler.php +++ b/modules/salesforce_pull/src/DeleteHandler.php @@ -43,7 +43,7 @@ class DeleteHandler { protected $mappedObjectStorage; /** - * Entity tpye manager service. + * Entity type manager service. * * @var \Drupal\Core\Entity\EntityTypeManagerInterface */ diff --git a/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php b/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php index 8cfdeff4..57ed96b3 100644 --- a/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php +++ b/modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php @@ -134,7 +134,7 @@ abstract class PullBase extends QueueWorkerBase implements ContainerFactoryPlugi * @param \Drupal\salesforce_mapping\Entity\SalesforceMappingInterface $mapping * Object of field maps. * @param \Drupal\salesforce_mapping\Entity\MappedObjectInterface $mapped_object - * SF Mmapped object. + * SF Mapped object. * @param \Drupal\salesforce\SObject $sf_object * Current Salesforce record array. * @param bool $force_pull diff --git a/modules/salesforce_pull/tests/src/Unit/DeleteHandlerTest.php b/modules/salesforce_pull/tests/src/Unit/DeleteHandlerTest.php index edf4dbf4..31186ed7 100644 --- a/modules/salesforce_pull/tests/src/Unit/DeleteHandlerTest.php +++ b/modules/salesforce_pull/tests/src/Unit/DeleteHandlerTest.php @@ -19,7 +19,7 @@ use Drupal\user\Entity\User; use Prophecy\Argument; /** - * Test Object instantitation. + * Test Object instantiation. * * @group salesforce_pull */ diff --git a/modules/salesforce_pull/tests/src/Unit/PullBaseTest.php b/modules/salesforce_pull/tests/src/Unit/PullBaseTest.php index cc029ee9..d8054463 100644 --- a/modules/salesforce_pull/tests/src/Unit/PullBaseTest.php +++ b/modules/salesforce_pull/tests/src/Unit/PullBaseTest.php @@ -25,7 +25,7 @@ use Prophecy\Argument; use Symfony\Component\DependencyInjection\ContainerBuilder; /** - * Test Object instantitation. + * Test Object instantiation. * * @group salesforce_pull */ @@ -218,7 +218,7 @@ class PullBaseTest extends UnitTestCase { ]; $this->sqr = new SelectQueryResult($result); - // Mock rest cient. + // Mock rest client. $this->sfapi = $this->getMockBuilder(RestClientInterface::CLASS)->getMock(); $this->sfapi ->expects($this->any()) diff --git a/modules/salesforce_pull/tests/src/Unit/PullQueueItemTest.php b/modules/salesforce_pull/tests/src/Unit/PullQueueItemTest.php index 55f15459..af133505 100644 --- a/modules/salesforce_pull/tests/src/Unit/PullQueueItemTest.php +++ b/modules/salesforce_pull/tests/src/Unit/PullQueueItemTest.php @@ -8,7 +8,7 @@ use Drupal\salesforce_pull\PullQueueItem; use Drupal\Tests\UnitTestCase; /** - * Test Object instantitation. + * Test Object instantiation. * * @group salesforce_pull */ diff --git a/modules/salesforce_pull/tests/src/Unit/QueueHandlerTest.php b/modules/salesforce_pull/tests/src/Unit/QueueHandlerTest.php index 0dd81a23..ee76b5f0 100644 --- a/modules/salesforce_pull/tests/src/Unit/QueueHandlerTest.php +++ b/modules/salesforce_pull/tests/src/Unit/QueueHandlerTest.php @@ -20,7 +20,7 @@ use Prophecy\Argument; use Symfony\Component\EventDispatcher\EventDispatcherInterface; /** - * Test Object instantitation. + * Test Object instantiation. * * @group salesforce_pull */ diff --git a/modules/salesforce_push/salesforce_push.install b/modules/salesforce_push/salesforce_push.install index ea9c09d6..da196b0f 100644 --- a/modules/salesforce_push/salesforce_push.install +++ b/modules/salesforce_push/salesforce_push.install @@ -41,7 +41,7 @@ function salesforce_push_update_8001() { } /** - * Create new variables for more granualar push limits. + * Create new variables for more granular push limits. */ function salesforce_push_update_8002() { if (\Drupal::state()->get('salesforce.global_push_limit', FALSE) === FALSE) { diff --git a/modules/salesforce_push/src/Commands/SalesforcePushCommands.php b/modules/salesforce_push/src/Commands/SalesforcePushCommands.php index 49dd517b..c5c346ba 100644 --- a/modules/salesforce_push/src/Commands/SalesforcePushCommands.php +++ b/modules/salesforce_push/src/Commands/SalesforcePushCommands.php @@ -124,7 +124,7 @@ class SalesforcePushCommands extends SalesforceMappingCommandsBase { * Addresses the frequent need to re-push all entities for a given mapping. * Given a mapping, re-queue all the mapped objects to the Salesforce push * queue. The push queue will not be processed by this command, and no data - * will be pushed to salesforce. Run salesforce_push:push-queue to proceess + * will be pushed to salesforce. Run salesforce_push:push-queue to process * the records queued by this command. * * NOTE: Existing push queue records will be replaced by this operation. diff --git a/modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php b/modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php index 918406c3..baf30d35 100644 --- a/modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php +++ b/modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php @@ -242,7 +242,7 @@ class Rest extends PluginBase implements PushQueueProcessorInterface { } /** - * Helper method to generate a new MappedObject during push procesing. + * Helper method to generate a new MappedObject during push processing. * * @param object $item * Push queue item. diff --git a/modules/salesforce_push/src/PushQueue.php b/modules/salesforce_push/src/PushQueue.php index 4e0772f7..b380c509 100644 --- a/modules/salesforce_push/src/PushQueue.php +++ b/modules/salesforce_push/src/PushQueue.php @@ -439,7 +439,7 @@ class PushQueue extends DatabaseQueue implements PushQueueInterface { * Salesforce mapping. * * @return int - * The number of items procesed, or -1 if there was any error, And also + * The number of items processed, or -1 if there was any error, And also * dispatches a SalesforceEvents::ERROR event. * * @throws \Drupal\Component\Plugin\Exception\PluginException diff --git a/modules/salesforce_push/tests/src/Unit/PushQueueTest.php b/modules/salesforce_push/tests/src/Unit/PushQueueTest.php index 37285636..c9826c45 100644 --- a/modules/salesforce_push/tests/src/Unit/PushQueueTest.php +++ b/modules/salesforce_push/tests/src/Unit/PushQueueTest.php @@ -24,7 +24,7 @@ use Prophecy\Argument; use Symfony\Component\EventDispatcher\EventDispatcherInterface; /** - * Test Object instantitation. + * Test Object instantiation. * * @coversDefaultClass \Drupal\salesforce_push\PushQueue * diff --git a/modules/salesforce_soap/src/Soap/SoapClient.php b/modules/salesforce_soap/src/Soap/SoapClient.php index ede6919c..39643bcf 100644 --- a/modules/salesforce_soap/src/Soap/SoapClient.php +++ b/modules/salesforce_soap/src/Soap/SoapClient.php @@ -10,7 +10,7 @@ use Drupal\salesforce\SalesforceAuthProviderPluginManagerInterface; class SoapClient extends \SforcePartnerClient implements SoapClientInterface { /** - * Indicates whether or not a successfull connection was made to the SOAP API. + * Indicates whether or not a successful connection was made to the SOAP API. * * @var bool */ diff --git a/salesforce.install b/salesforce.install index 6b013004..9ffdf92d 100644 --- a/salesforce.install +++ b/salesforce.install @@ -386,7 +386,7 @@ function salesforce_update_8402() { ->execute(); // Check to see if our profile exists, and if our creds are encrypted. - // If so, try to unencrypt them and delete our profile. + // If so, try to decrypt them and delete our profile. $profile = \Drupal::state()->get('salesforce_encrypt.profile'); if (!$profile) { return; diff --git a/src/Rest/RestClientInterface.php b/src/Rest/RestClientInterface.php index f0de3558..0be6e721 100644 --- a/src/Rest/RestClientInterface.php +++ b/src/Rest/RestClientInterface.php @@ -264,7 +264,7 @@ interface RestClientInterface { public function objectUpdate($name, $id, array $params); /** - * Return a fullly loaded Salesforce object. + * Return a fully loaded Salesforce object. * * @param string $name * Object type name, E.g., Contact, Account. diff --git a/src/Rest/RestException.php b/src/Rest/RestException.php index 7d88d8c3..4b61f8c4 100644 --- a/src/Rest/RestException.php +++ b/src/Rest/RestException.php @@ -34,7 +34,7 @@ class RestException extends \RuntimeException implements ExceptionInterface { * @param string $message * Message (optional). * @param int $code - * Erorr code (optional). + * Error code (optional). * @param \Exception|null $previous * Previous exception (optional). */ diff --git a/src/SelectQuery.php b/src/SelectQuery.php index 5ac3a136..8f8fe1ba 100644 --- a/src/SelectQuery.php +++ b/src/SelectQuery.php @@ -24,7 +24,7 @@ class SelectQuery implements SelectQueryInterface { public $order = []; /** - * Objct type name, e.g. Contact, Account, etc. + * Object type name, e.g. Contact, Account, etc. * * @var string */ diff --git a/src/Tests/TestSalesforceAuthProviderPluginManager.php b/src/Tests/TestSalesforceAuthProviderPluginManager.php index 03a918ef..6e8512a7 100644 --- a/src/Tests/TestSalesforceAuthProviderPluginManager.php +++ b/src/Tests/TestSalesforceAuthProviderPluginManager.php @@ -7,7 +7,7 @@ use Drupal\salesforce\SalesforceAuthProviderPluginManager; use Drupal\salesforce\Token\SalesforceToken; /** - * Test auth provider plugn manager. + * Test auth provider plugin manager. */ class TestSalesforceAuthProviderPluginManager extends SalesforceAuthProviderPluginManager { diff --git a/tests/src/Unit/SFIDTest.php b/tests/src/Unit/SFIDTest.php index 05375094..17e101ae 100644 --- a/tests/src/Unit/SFIDTest.php +++ b/tests/src/Unit/SFIDTest.php @@ -6,7 +6,7 @@ use Drupal\salesforce\SFID; use Drupal\Tests\UnitTestCase; /** - * Test Object instantitation. + * Test Object instantiation. * * @group salesforce_pull */ diff --git a/tests/src/Unit/SObjectTest.php b/tests/src/Unit/SObjectTest.php index f8195b28..8290ef8e 100644 --- a/tests/src/Unit/SObjectTest.php +++ b/tests/src/Unit/SObjectTest.php @@ -6,7 +6,7 @@ use Drupal\salesforce\SObject; use Drupal\Tests\UnitTestCase; /** - * Test Object instantitation. + * Test Object instantiation. * * @group salesforce_pull */ diff --git a/tests/src/Unit/SelectQueryResultTest.php b/tests/src/Unit/SelectQueryResultTest.php index 7be736b7..0f281498 100644 --- a/tests/src/Unit/SelectQueryResultTest.php +++ b/tests/src/Unit/SelectQueryResultTest.php @@ -7,7 +7,7 @@ use Drupal\salesforce\SFID; use Drupal\Tests\UnitTestCase; /** - * Test Object instantitation. + * Test Object instantiation. * * @group salesforce_pull */ -- GitLab