Skip to content
Snippets Groups Projects
Commit 1527bfbc authored by Liam Morland's avatar Liam Morland
Browse files

Issue #3144629: Make automated coding standards fixes

parent c1aa5ff6
No related branches found
No related tags found
1 merge request!20Issue #3144629: Make coding standards fixes
......@@ -39,7 +39,7 @@ class UrlEmbedAdminSettingsForm extends ConfigFormBase {
]),
];
// Check Facebook credentials and show appropriate messages
// Check Facebook credentials and show appropriate messages.
if (!empty($config->get('facebook_app_id')) || !empty($config->get('facebook_app_secret'))) {
$debug = url_embed_debug_facebook_access_token($config->get('facebook_app_id') . '|' . $config->get('facebook_app_secret'));
if (!empty($debug['is_valid'])) {
......@@ -50,9 +50,7 @@ class UrlEmbedAdminSettingsForm extends ConfigFormBase {
}
else {
$form['facebook_app']['error'] = [
'#markup' => '<div class="messages messages--error">' .
$this->t('The App ID and App Secret combination is invalid. Make sure you entered your app credentials correctly and that it is live.') .
'</div>',
'#markup' => '<div class="messages messages--error">' . $this->t('The App ID and App Secret combination is invalid. Make sure you entered your app credentials correctly and that it is live.') . '</div>',
'#weight' => -10,
];
}
......
......@@ -2,14 +2,12 @@
namespace Drupal\url_embed\Form;
use Drupal\Component\Utility\DeprecationHelper;
use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Ajax\CloseModalDialogCommand;
use Drupal\Core\Ajax\HtmlCommand;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormBuilderInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Utility\Error;
use Drupal\editor\Ajax\EditorDialogSave;
use Drupal\editor\EditorInterface;
use Drupal\url_embed\UrlEmbedHelperTrait;
......
......@@ -2,11 +2,9 @@
namespace Drupal\url_embed\Plugin\Field\FieldFormatter;
use Drupal\Component\Utility\DeprecationHelper;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FormatterBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Utility\Error;
use Drupal\url_embed\UrlEmbedHelperTrait;
/**
......
......@@ -2,13 +2,11 @@
namespace Drupal\url_embed\Plugin\Filter;
use Drupal\Component\Utility\DeprecationHelper;
use Drupal\Component\Utility\Html;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Render\Renderer;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Utility\Error;
use Drupal\embed\DomHelperTrait;
use Drupal\filter\Attribute\Filter;
use Drupal\filter\FilterProcessResult;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment