Skip to content

Commit 94ef21e

Browse files
committed
[Validator] Optimized use statements
1 parent 1622eb3 commit 94ef21e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+74
-100
lines changed

src/Symfony/Component/Validator/Constraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\Validator;
1313

14+
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
1415
use Symfony\Component\Validator\Exception\InvalidOptionsException;
1516
use Symfony\Component\Validator\Exception\MissingOptionsException;
16-
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
1717

1818
/**
1919
* Contains the properties of a constraint definition.

src/Symfony/Component/Validator/Constraints/CallbackValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use Symfony\Component\Validator\Constraint;
1515
use Symfony\Component\Validator\ConstraintValidator;
16-
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
1716
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
17+
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
1818

1919
/**
2020
* Validator for Callback constraint

src/Symfony/Component/Validator/Constraints/ExpressionValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace Symfony\Component\Validator\Constraints;
1313

14+
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
1415
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
1516
use Symfony\Component\PropertyAccess\PropertyPath;
1617
use Symfony\Component\Validator\Constraint;
1718
use Symfony\Component\Validator\ConstraintValidator;
18-
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
1919
use Symfony\Component\Validator\Exception\RuntimeException;
2020
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
2121

src/Symfony/Component/Validator/Constraints/FileValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Component\Validator\Constraints;
1313

14+
use Symfony\Component\HttpFoundation\File\File as FileObject;
15+
use Symfony\Component\HttpFoundation\File\UploadedFile;
1416
use Symfony\Component\Validator\Constraint;
1517
use Symfony\Component\Validator\ConstraintValidator;
1618
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
1719
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
18-
use Symfony\Component\HttpFoundation\File\File as FileObject;
19-
use Symfony\Component\HttpFoundation\File\UploadedFile;
2020

2121
/**
2222
* @author Bernhard Schussek <[email protected]>

src/Symfony/Component/Validator/Constraints/Ip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Validator\Constraints;
1313

14-
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
1514
use Symfony\Component\Validator\Constraint;
15+
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
1616

1717
/**
1818
* Validates that a value is a valid IP address

src/Symfony/Component/Validator/Context/ExecutionContext.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
use Symfony\Component\Validator\ConstraintViolation;
1717
use Symfony\Component\Validator\ConstraintViolationList;
1818
use Symfony\Component\Validator\Exception\BadMethodCallException;
19-
use Symfony\Component\Validator\Group\GroupManagerInterface;
2019
use Symfony\Component\Validator\Mapping\MetadataInterface;
2120
use Symfony\Component\Validator\Mapping\PropertyMetadataInterface;
22-
use Symfony\Component\Validator\Node\Node;
2321
use Symfony\Component\Validator\Util\PropertyPath;
2422
use Symfony\Component\Validator\Validator\ValidatorInterface;
2523
use Symfony\Component\Validator\Violation\ConstraintViolationBuilder;

src/Symfony/Component/Validator/Context/ExecutionContextFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Validator\Context;
1313

1414
use Symfony\Component\Translation\TranslatorInterface;
15-
use Symfony\Component\Validator\Group\GroupManagerInterface;
1615
use Symfony\Component\Validator\Validator\ValidatorInterface;
1716

1817
/**

src/Symfony/Component/Validator/Context/ExecutionContextInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Component\Validator\ExecutionContextInterface as LegacyExecutionContextInterface;
1515
use Symfony\Component\Validator\Mapping\MetadataInterface;
16-
use Symfony\Component\Validator\Node\Node;
1716
use Symfony\Component\Validator\Validator\ValidatorInterface;
1817
use Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface;
1918

src/Symfony/Component/Validator/Context/LegacyExecutionContext.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@
1212
namespace Symfony\Component\Validator\Context;
1313

1414
use Symfony\Component\Translation\TranslatorInterface;
15-
use Symfony\Component\Validator\Constraints\Traverse;
1615
use Symfony\Component\Validator\Constraints\Valid;
17-
use Symfony\Component\Validator\Exception\InvalidArgumentException;
18-
use Symfony\Component\Validator\Group\GroupManagerInterface;
1916
use Symfony\Component\Validator\MetadataFactoryInterface;
2017
use Symfony\Component\Validator\Validator\ValidatorInterface;
21-
use Symfony\Component\Validator\ValidatorInterface as LegacyValidatorInterface;
2218

2319
/**
2420
* An execution context that is compatible with the legacy API (< 2.5).

src/Symfony/Component/Validator/Context/LegacyExecutionContextFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Validator\Context;
1313

1414
use Symfony\Component\Translation\TranslatorInterface;
15-
use Symfony\Component\Validator\Group\GroupManagerInterface;
1615
use Symfony\Component\Validator\MetadataFactoryInterface;
1716
use Symfony\Component\Validator\Validator\ValidatorInterface;
1817

0 commit comments

Comments
 (0)