Skip to content

Commit

Permalink
Issue #2922828 by TR: Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
rohaly authored and fago committed Dec 14, 2017
1 parent 42ae4eb commit 31029b8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rules.rules_ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rules.reaction_rules:
settings:
config_parameter: rules_reaction_rule
rules.components:
label: 'Manage re-usabe components.'
label: 'Manage reusable components.'
base_route: entity.rules_component.edit_form
component_type_label: rule
settings:
Expand Down
2 changes: 1 addition & 1 deletion src/Engine/RulesComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public function __clone() {
* The partial data selector.
* @param \Drupal\rules\Engine\ExpressionInterface $until
* The expression in which the autocompletion will be executed. All
* variables in the exection metadata state up to that point are available.
* variables in the execution metadata state up to that point are available.
*
* @return array[]
* A list of autocomplete suggestions - valid property paths for one of the
Expand Down
8 changes: 4 additions & 4 deletions src/Plugin/RulesDataProcessor/TokenProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TokenProcessor extends PluginBase implements DataProcessorInterface, Conta
*
* @var \Drupal\typed_data\PlaceholderResolverInterface
*/
protected $placeholderResovler;
protected $placeholderResolver;

/**
* Constructs a TokenProcessor object.
Expand All @@ -40,7 +40,7 @@ class TokenProcessor extends PluginBase implements DataProcessorInterface, Conta
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, PlaceholderResolverInterface $placeholder_resolver) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->placeholderResovler = $placeholder_resolver;
$this->placeholderResolver = $placeholder_resolver;
}

/**
Expand All @@ -60,14 +60,14 @@ public static function create(ContainerInterface $container, array $configuratio
*/
public function process($value, ExecutionStateInterface $rules_state) {
$data = [];
$placeholders_by_data = $this->placeholderResovler->scan($value);
$placeholders_by_data = $this->placeholderResolver->scan($value);
foreach ($placeholders_by_data as $variable_name => $placeholders) {
// Note that accessing an unavailable variable will throw an evaluation
// exception. That's exactly what needs to happen. Invalid tokens must
// be checked when checking integrity.
$data[$variable_name] = $rules_state->getVariable($variable_name);
}
return $this->placeholderResovler->replacePlaceHolders($value, $data);
return $this->placeholderResolver->replacePlaceHolders($value, $data);
}

}
4 changes: 2 additions & 2 deletions tests/src/Kernel/ConfigSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Drupal\rules\Context\ContextConfig;

/**
* Tests that action specfic config schema works.
* Tests that action specific config schema works.
*
* @group Rules
* @group legacy
Expand Down Expand Up @@ -37,7 +37,7 @@ public function testMailActionContextSchema() {
$rule = $this->expressionManager
->createRule();
$rule->addAction('rules_send_email', ContextConfig::create()
->setValue('to', ['test@exmaple.com'])
->setValue('to', ['test@example.com'])
->setValue('message', 'mail body')
->setValue('subject', 'test subject')
);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/Integration/Event/EntityPresaveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testEventMetadata() {
$this->assertSame('entity:test', $context_definition->getDataType());
$this->assertSame('Test', $context_definition->getLabel());

// Also check that there is a context for the orginal entity.
// Also check that there is a context for the original entity.
$context_definition = $plugin_definition['context']['test_unchanged'];
$this->assertSame('entity:test', $context_definition->getDataType());
$this->assertSame('Unchanged Test', (string) $context_definition->getLabel());
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/Integration/Event/EntityUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testEventMetadata() {
$this->assertSame('entity:test', $context_definition->getDataType());
$this->assertSame('Test', $context_definition->getLabel());

// Also check that there is a context for the orginal entity.
// Also check that there is a context for the original entity.
$context_definition = $plugin_definition['context']['test_unchanged'];
$this->assertSame('entity:test', $context_definition->getDataType());
$this->assertSame('Unchanged Test', (string) $context_definition->getLabel());
Expand Down

0 comments on commit 31029b8

Please sign in to comment.