From 7efc7f7241a5e8cdceebee6c14967d027c1fd5c4 Mon Sep 17 00:00:00 2001 From: bluegeek9 <5614-bluegeek9@users.noreply.drupalcode.org> Date: Sun, 17 Dec 2023 17:51:52 +0000 Subject: [PATCH] Issue #3402959 by bluegeek9, clarkssquared: issues reported by phpcs --- src/Controller/LoginController.php | 2 +- src/Form/LdapSsoAdminForm.php | 2 +- src/LdapSsoBootSubscriber.php | 10 +++++----- tests/src/Functional/LdapSsoBrowserTest.php | 2 ++ 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Controller/LoginController.php b/src/Controller/LoginController.php index eed165a..658837f 100644 --- a/src/Controller/LoginController.php +++ b/src/Controller/LoginController.php @@ -10,8 +10,8 @@ use Drupal\Core\Access\AccessResult; use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Controller\ControllerBase; use Drupal\Core\Link; -use Drupal\Core\Url; use Drupal\Core\Session\AccountInterface; +use Drupal\Core\Url; use Drupal\ldap_authentication\Controller\LoginValidatorSso; use Drupal\ldap_servers\Logger\LdapDetailLog; use Drupal\ldap_sso\RedirectResponseWithCookie; diff --git a/src/Form/LdapSsoAdminForm.php b/src/Form/LdapSsoAdminForm.php index 3476a32..7455b19 100644 --- a/src/Form/LdapSsoAdminForm.php +++ b/src/Form/LdapSsoAdminForm.php @@ -6,8 +6,8 @@ namespace Drupal\ldap_sso\Form; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; -use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\ConfigFormBase; +use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Url; use Drupal\ldap_authentication\Form\LdapAuthenticationAdminForm; use Symfony\Component\DependencyInjection\ContainerInterface; diff --git a/src/LdapSsoBootSubscriber.php b/src/LdapSsoBootSubscriber.php index d102005..dbfa8ec 100644 --- a/src/LdapSsoBootSubscriber.php +++ b/src/LdapSsoBootSubscriber.php @@ -5,16 +5,16 @@ declare(strict_types = 1); namespace Drupal\ldap_sso; use Drupal\Core\Config\ConfigFactory; -use Drupal\Core\Routing\RedirectDestinationInterface; use Drupal\Core\Path\CurrentPathStack; -use Drupal\Core\Url; +use Drupal\Core\Routing\RedirectDestinationInterface; use Drupal\Core\Session\AccountInterface; +use Drupal\Core\Url; use Drupal\ldap_servers\Logger\LdapDetailLog; -use Symfony\Component\HttpFoundation\RequestStack; -use Symfony\Component\HttpKernel\KernelEvents; -use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\Cookie; +use Symfony\Component\HttpFoundation\RequestStack; +use Symfony\Component\HttpKernel\Event\RequestEvent; +use Symfony\Component\HttpKernel\KernelEvents; /** * Provides the automated single sign-on provider. diff --git a/tests/src/Functional/LdapSsoBrowserTest.php b/tests/src/Functional/LdapSsoBrowserTest.php index 0cc051a..e508bf6 100644 --- a/tests/src/Functional/LdapSsoBrowserTest.php +++ b/tests/src/Functional/LdapSsoBrowserTest.php @@ -41,6 +41,8 @@ class LdapSsoBrowserTest extends BrowserTestBase { ]; /** + * The node with an alias. + * * @var \Drupal\node\NodeInterface */ protected $nodeWithAlias; -- GitLab