Skip to content

Commit f6255c0

Browse files
authored
Merge pull request #477 from localheinz/fix/unused-import
Enhancement: Implicitly enable no_unused_imports fixer
2 parents 966f82d + 7a4bc95 commit f6255c0

File tree

9 files changed

+0
-14
lines changed

9 files changed

+0
-14
lines changed

.php_cs.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ $config
1515
'array_syntax' => array('syntax' => 'long'),
1616
'binary_operator_spaces' => false,
1717
'concat_space' => array('spacing' => 'one'),
18-
'no_unused_imports' => false,
1918
'no_useless_else' => true,
2019
'no_useless_return' => true,
2120
'ordered_imports' => true,

src/JsonSchema/Constraints/BaseConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace JsonSchema\Constraints;
1111

1212
use JsonSchema\ConstraintError;
13-
use JsonSchema\Constraints\TypeCheck\LooseTypeCheck;
1413
use JsonSchema\Entity\JsonPointer;
1514
use JsonSchema\Exception\InvalidArgumentException;
1615
use JsonSchema\Exception\ValidationException;

src/JsonSchema/Constraints/Constraint.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
namespace JsonSchema\Constraints;
1111

1212
use JsonSchema\Entity\JsonPointer;
13-
use JsonSchema\SchemaStorage;
14-
use JsonSchema\Uri\UriRetriever;
15-
use JsonSchema\UriRetrieverInterface;
1613

1714
/**
1815
* The Base Constraints, all Validators should extend this class

src/JsonSchema/Constraints/Factory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
namespace JsonSchema\Constraints;
1111

12-
use JsonSchema\Constraints\Constraint;
1312
use JsonSchema\Exception\InvalidArgumentException;
14-
use JsonSchema\Exception\InvalidConfigException;
1513
use JsonSchema\SchemaStorage;
1614
use JsonSchema\SchemaStorageInterface;
1715
use JsonSchema\Uri\UriRetriever;

src/JsonSchema/Constraints/SchemaConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use JsonSchema\Exception\InvalidArgumentException;
1515
use JsonSchema\Exception\InvalidSchemaException;
1616
use JsonSchema\Exception\RuntimeException;
17-
use JsonSchema\SchemaStorage;
1817
use JsonSchema\Validator;
1918

2019
/**

src/JsonSchema/Validator.php

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

1212
use JsonSchema\Constraints\BaseConstraint;
1313
use JsonSchema\Constraints\Constraint;
14-
use JsonSchema\Exception\InvalidConfigException;
15-
use JsonSchema\SchemaStorage;
1614

1715
/**
1816
* A JsonSchema Constraint

tests/Drafts/Draft3Test.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
namespace JsonSchema\Tests\Drafts;
1111

12-
use JsonSchema\Constraints\Constraint;
13-
1412
/**
1513
* @package JsonSchema\Tests\Drafts
1614
*/

tests/SchemaStorageTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use JsonSchema\Uri\UriRetriever;
1414
use JsonSchema\Validator;
1515
use PHPUnit\Framework\TestCase;
16-
use Prophecy\Argument;
1716

1817
class SchemaStorageTest extends TestCase
1918
{

tests/ValidatorTest.php

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

33
namespace JsonSchema\Tests;
44

5-
use JsonSchema\Constraints\Constraint;
65
use JsonSchema\Validator;
76
use PHPUnit\Framework\TestCase;
87

0 commit comments

Comments
 (0)