Skip to content
Snippets Groups Projects
Commit 6e229711 authored by Michael Anello's avatar Michael Anello
Browse files

cspell stuff

parent 630a8f7d
No related branches found
No related tags found
1 merge request!11#3441902: phpcs, phpstan, phpunit updates.
Anello
~commonmark
~ultimike
......@@ -35,7 +35,7 @@ function markdown_easy_requirements(string $phase): array {
$requirements['markdown_easy_filter_configuration_limit_html'] = [
'title' => t('Markdown Easy'),
'value' => t('Text format configured insecurely.'),
'description' => t('The text format %format is potenailly configured insecurely. The "Limit allowed HTML tags and correct faulty HTML" filter is strongly recommended and should be configured to run after the Markdown Easy filter.', ['%format' => $format->get('name')]),
'description' => t('The text format %format is potentially configured insecurely. The "Limit allowed HTML tags and correct faulty HTML" filter is strongly recommended and should be configured to run after the Markdown Easy filter.', ['%format' => $format->get('name')]),
'severity' => REQUIREMENT_WARNING,
];
}
......
......@@ -72,13 +72,13 @@ function _markdown_easy_filter_format_edit_form_validate(array $form, FormStateI
$filters = $form_state->getValue('filters');
// The "markdown_easy" filter must run before the following filters.
$subsequents = [
$subsequent = [
'filter_html',
'filter_autop',
];
$error_filters = [];
foreach ($subsequents as $filter_name) {
foreach ($subsequent as $filter_name) {
// A filter that should run after the markdown_easy filter.
$subsequent = $filters[$filter_name];
......
......@@ -9,7 +9,7 @@ use Drupal\filter\Entity\FilterFormat;
use Drupal\Tests\BrowserTestBase;
/**
* Test that the Markdown processor config is overrridable.
* Test that the Markdown processor config is overridable.
*
* @group markdown_easy
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment