Skip to content

Commit

Permalink
Optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
parijke committed Mar 22, 2024
1 parent a596bf6 commit c9ac1e0
Show file tree
Hide file tree
Showing 25 changed files with 22 additions and 29 deletions.
4 changes: 2 additions & 2 deletions config/packages/smoketest/web_profiler.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
web_profiler:
toolbar: false
toolbar: true
intercept_redirects: false

framework:
profiler: { collect: false }
profiler: { collect: true }
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Surfnet\StepupRa\RaBundle\Exception;

use \InvalidArgumentException as BaseInvalidArgumentException;
use InvalidArgumentException as BaseInvalidArgumentException;

class InvalidArgumentException extends BaseInvalidArgumentException
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
namespace Surfnet\StepupRa\RaBundle\Exception;

use Symfony\Component\HttpKernel\Attribute\WithHttpStatus;
use Symfony\Component\Security\Core\Exception\AuthenticationException;

/**
* Exception for the case where a user is not granted RA privileges.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupRa\RaBundle\Command\AmendRegistrationAuthorityInformationCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\AmendRegistrationAuthorityInformationCommand;

class AmendRegistrationAuthorityInformationType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupRa\RaBundle\Command\ChangeRaLocationCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\ChangeRaLocationCommand;

class ChangeRaLocationType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupRa\RaBundle\Command\ChangeRaRoleCommand;
use Surfnet\StepupRa\RaBundle\Form\Extension\RaRoleChoiceList;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\ChangeRaRoleCommand;

class ChangeRaRoleType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupRa\RaBundle\Command\CreateRaLocationCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\CreateRaLocationCommand;

class CreateRaLocationType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupRa\RaBundle\Command\RemoveRaLocationCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\RemoveRaLocationCommand;

class RemoveRaLocationType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupRa\RaBundle\Command\RetractRegistrationAuthorityCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\RetractRegistrationAuthorityCommand;

class RetractRegistrationAuthorityType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupRa\RaBundle\Command\RevokeSecondFactorCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\RevokeSecondFactorCommand;

class RevokeSecondFactorType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupBundle\Command\SendSmsChallengeCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupBundle\Command\SendSmsChallengeCommand;

class SendSmsChallengeType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
namespace Surfnet\StepupRa\RaBundle\Form\Type;

use JMS\TranslationBundle\Annotation\Ignore;
use Surfnet\StepupRa\RaBundle\Command\StartVettingProcedureCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\StartVettingProcedureCommand;

class StartVettingProcedureType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupRa\RaBundle\Command\VerifyIdentityCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\VerifyIdentityCommand;

class VerifyIdentityType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupBundle\Command\VerifyPossessionOfPhoneCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupBundle\Command\VerifyPossessionOfPhoneCommand;

class VerifyPhoneNumberType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

namespace Surfnet\StepupRa\RaBundle\Form\Type;

use Surfnet\StepupRa\RaBundle\Command\VerifyYubikeyPublicIdCommand;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Surfnet\StepupRa\RaBundle\Command\VerifyYubikeyPublicIdCommand;

class VerifyYubikeyPublicIdType extends AbstractType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\AuthenticatorFactoryInterface;
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ChildDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class SamlFactory implements AuthenticatorFactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Surfnet/StepupRa/RaBundle/Service/CommandService.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@

namespace Surfnet\StepupRa\RaBundle\Service;

use Surfnet\StepupMiddlewareClient\Service\ExecutionResult;
use Surfnet\StepupMiddlewareClientBundle\Command\Command;
use Surfnet\StepupMiddlewareClientBundle\Command\Metadata;
use Surfnet\StepupMiddlewareClientBundle\Identity\Dto\Identity;
use Surfnet\StepupMiddlewareClientBundle\Service\CommandService as MiddlewareCommandService;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Surfnet\StepupMiddlewareClient\Service\ExecutionResult;

final readonly class CommandService
{
Expand Down
2 changes: 0 additions & 2 deletions src/Surfnet/StepupRa/RaBundle/Service/GssfService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
namespace Surfnet\StepupRa\RaBundle\Service;

use Surfnet\StepupRa\RaBundle\Service\Gssf\VerificationResult;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface;

final readonly class GssfService
{
Expand Down
3 changes: 1 addition & 2 deletions src/Surfnet/StepupRa/RaBundle/Service/RaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
namespace Surfnet\StepupRa\RaBundle\Service;

use Psr\Log\LoggerInterface;
use Surfnet\StepupMiddlewareClientBundle\Identity\Command\AmendRegistrationAuthorityInformationCommand
as AmendRegistrationAuthorityInformationApiCommand;
use Surfnet\StepupMiddlewareClientBundle\Identity\Command\AmendRegistrationAuthorityInformationCommand as AmendRegistrationAuthorityInformationApiCommand;
use Surfnet\StepupMiddlewareClientBundle\Identity\Command\AppointRoleCommand;
use Surfnet\StepupMiddlewareClientBundle\Identity\Command\RetractRegistrationAuthorityCommand as ApiRetractRegistrationAuthorityCommand;
use Surfnet\StepupRa\RaBundle\Command\AmendRegistrationAuthorityInformationCommand;
Expand Down
2 changes: 1 addition & 1 deletion src/Surfnet/StepupRa/RaBundle/Service/VettingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
use Surfnet\StepupBundle\Value\SecondFactorType;
use Surfnet\StepupBundle\Value\VettingType;
use Surfnet\StepupMiddlewareClient\Service\ExecutionResult;
use Surfnet\StepupMiddlewareClientBundle\Identity\Service\SecondFactorService;
use Surfnet\StepupMiddlewareClientBundle\Identity\Command\VetSecondFactorCommand;
use Surfnet\StepupMiddlewareClientBundle\Identity\Service\SecondFactorService;
use Surfnet\StepupRa\RaBundle\Command\StartVettingProcedureCommand;
use Surfnet\StepupRa\RaBundle\Command\VerifyIdentityCommand;
use Surfnet\StepupRa\RaBundle\Command\VerifyYubikeyPublicIdCommand;
Expand Down
2 changes: 1 addition & 1 deletion src/Surfnet/StepupRa/RaBundle/Service/YubikeyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

use GuzzleHttp\Client;
use Psr\Log\LoggerInterface;
use RuntimeException;
use Surfnet\StepupBundle\Http\JsonHelper;
use Surfnet\StepupRa\RaBundle\Command\VerifyYubikeyOtpCommand;
use RuntimeException;

class YubikeyService
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use Surfnet\StepupRa\RaBundle\Command\VerifyYubikeyPublicIdCommand;
use Surfnet\StepupRa\RaBundle\Service\YubikeySecondFactor\VerificationResult;
use Surfnet\StepupRa\RaBundle\Service\YubikeySecondFactorServiceInterface;
use Surfnet\StepupRa\RaBundle\Service\YubikeyService;


/**
Expand Down
2 changes: 1 addition & 1 deletion src/Surfnet/StepupRa/RaBundle/Value/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

use DateInterval;
use DateTime as CoreDateTime;
use Surfnet\StepupRa\RaBundle\Exception\InvalidArgumentException;
use Stringable;
use Surfnet\StepupRa\RaBundle\Exception\InvalidArgumentException;

/**
* @SuppressWarnings(PHPMD.TooManyPublicMethods) due to comparison methods
Expand Down
2 changes: 0 additions & 2 deletions src/Surfnet/StepupRa/RaBundle/Value/RoleAtInstitution.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

namespace Surfnet\StepupRa\RaBundle\Value;

use Surfnet\StepupRa\RaBundle\Assert;

class RoleAtInstitution
{
private ?string $role = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Surfnet/StepupRa/RaBundle/Value/TimeFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
namespace Surfnet\StepupRa\RaBundle\Value;

use DateInterval;
use Surfnet\StepupRa\RaBundle\Exception\InvalidArgumentException;
use Stringable;
use Surfnet\StepupRa\RaBundle\Exception\InvalidArgumentException;

final readonly class TimeFrame implements Stringable
{
Expand Down

0 comments on commit c9ac1e0

Please sign in to comment.