Skip to content

Commit

Permalink
phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed Jul 17, 2023
1 parent 2658ad9 commit 29d7f0e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
12 changes: 7 additions & 5 deletions src/Form/ServicenowDepartment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace Drupal\servicenow\Form;

use Drupal\servicenow\Plugin\PrincessList;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Session\AccountInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
use Drupal\servicenow\Plugin\PrincessList;
use Drupal\user\UserStorageInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\RequestStack;

/**
* Class ShortSheets.
Expand Down Expand Up @@ -65,6 +65,8 @@ class ServicenowDepartment extends ConfigFormBase {
* Load user entity.
* @param \Drupal\user\UserStorageInterface $user_storage
* User Load function.
* @param \Drupal\servicenow\Plugin\PrincessList $princess_list
* Princess list.
*/
public function __construct(
RequestStack $request_stack,
Expand Down
1 change: 0 additions & 1 deletion src/Plugin/FetchDrupalFormList.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Drupal\servicenow\Plugin;

use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\servicenow\Plugin\CacheDrupalFormList;

/**
* Fetch drupal form list.
Expand Down
4 changes: 1 addition & 3 deletions src/Plugin/PrincessList.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

use Drupal\Component\Utility\Xss;
use Drupal\Core\Database\Connection;
use Drupal\servicenow\Plugin\ServicenowFetchSettings;
use Drupal\servicenow\Plugin\ServicenowApiCall;
use Drupal\oit\Plugin\TeamsAlert;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\oit\Plugin\TeamsAlert;

/**
* Combined Princess functions into one class.
Expand Down
6 changes: 2 additions & 4 deletions src/Plugin/ServicenowApiCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace Drupal\servicenow\Plugin;

use Drupal\oit\Plugin\TeamsAlert;
use Drupal\Component\Utility\Xss;
use Symfony\Component\HttpFoundation\RequestStack;
use Drupal\servicenow\Plugin\ServicenowUrl;
use Drupal\servicenow\Plugin\ServicenowKey;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\oit\Plugin\TeamsAlert;
use Symfony\Component\HttpFoundation\RequestStack;

/**
* Make servicenow api call.
Expand Down

0 comments on commit 29d7f0e

Please sign in to comment.