From 113dbf0a9ad84c9eaae77100e197df826f5c5477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 30 Dec 2017 19:08:43 +0100 Subject: [PATCH 1/2] Enhancement: Implicitly enable no_unused_imports fixer --- .php_cs.dist | 1 - 1 file changed, 1 deletion(-) diff --git a/.php_cs.dist b/.php_cs.dist index 8a227e64..9486fb58 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -15,7 +15,6 @@ $config 'array_syntax' => array('syntax' => 'long'), 'binary_operator_spaces' => false, 'concat_space' => array('spacing' => 'one'), - 'no_unused_imports' => false, 'no_useless_else' => true, 'no_useless_return' => true, 'ordered_imports' => true, From 7a4bc95f8c8dc3f4645b33a3f8662774a8d0400e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 30 Dec 2017 19:21:48 +0100 Subject: [PATCH 2/2] Fix: Run 'composer style-fix' --- src/JsonSchema/Constraints/BaseConstraint.php | 1 - src/JsonSchema/Constraints/Constraint.php | 3 --- src/JsonSchema/Constraints/Factory.php | 2 -- src/JsonSchema/Constraints/SchemaConstraint.php | 1 - src/JsonSchema/Validator.php | 2 -- tests/Drafts/Draft3Test.php | 2 -- tests/SchemaStorageTest.php | 1 - tests/ValidatorTest.php | 1 - 8 files changed, 13 deletions(-) diff --git a/src/JsonSchema/Constraints/BaseConstraint.php b/src/JsonSchema/Constraints/BaseConstraint.php index 13168d71..2fd97302 100644 --- a/src/JsonSchema/Constraints/BaseConstraint.php +++ b/src/JsonSchema/Constraints/BaseConstraint.php @@ -10,7 +10,6 @@ namespace JsonSchema\Constraints; use JsonSchema\ConstraintError; -use JsonSchema\Constraints\TypeCheck\LooseTypeCheck; use JsonSchema\Entity\JsonPointer; use JsonSchema\Exception\InvalidArgumentException; use JsonSchema\Exception\ValidationException; diff --git a/src/JsonSchema/Constraints/Constraint.php b/src/JsonSchema/Constraints/Constraint.php index e0e044bc..51b5a98a 100644 --- a/src/JsonSchema/Constraints/Constraint.php +++ b/src/JsonSchema/Constraints/Constraint.php @@ -10,9 +10,6 @@ namespace JsonSchema\Constraints; use JsonSchema\Entity\JsonPointer; -use JsonSchema\SchemaStorage; -use JsonSchema\Uri\UriRetriever; -use JsonSchema\UriRetrieverInterface; /** * The Base Constraints, all Validators should extend this class diff --git a/src/JsonSchema/Constraints/Factory.php b/src/JsonSchema/Constraints/Factory.php index c9296385..4e771c19 100644 --- a/src/JsonSchema/Constraints/Factory.php +++ b/src/JsonSchema/Constraints/Factory.php @@ -9,9 +9,7 @@ namespace JsonSchema\Constraints; -use JsonSchema\Constraints\Constraint; use JsonSchema\Exception\InvalidArgumentException; -use JsonSchema\Exception\InvalidConfigException; use JsonSchema\SchemaStorage; use JsonSchema\SchemaStorageInterface; use JsonSchema\Uri\UriRetriever; diff --git a/src/JsonSchema/Constraints/SchemaConstraint.php b/src/JsonSchema/Constraints/SchemaConstraint.php index 8218d256..425c38f2 100644 --- a/src/JsonSchema/Constraints/SchemaConstraint.php +++ b/src/JsonSchema/Constraints/SchemaConstraint.php @@ -14,7 +14,6 @@ use JsonSchema\Exception\InvalidArgumentException; use JsonSchema\Exception\InvalidSchemaException; use JsonSchema\Exception\RuntimeException; -use JsonSchema\SchemaStorage; use JsonSchema\Validator; /** diff --git a/src/JsonSchema/Validator.php b/src/JsonSchema/Validator.php index eb1c18d2..65d89def 100644 --- a/src/JsonSchema/Validator.php +++ b/src/JsonSchema/Validator.php @@ -11,8 +11,6 @@ use JsonSchema\Constraints\BaseConstraint; use JsonSchema\Constraints\Constraint; -use JsonSchema\Exception\InvalidConfigException; -use JsonSchema\SchemaStorage; /** * A JsonSchema Constraint diff --git a/tests/Drafts/Draft3Test.php b/tests/Drafts/Draft3Test.php index 1942a3b1..84d2353f 100644 --- a/tests/Drafts/Draft3Test.php +++ b/tests/Drafts/Draft3Test.php @@ -9,8 +9,6 @@ namespace JsonSchema\Tests\Drafts; -use JsonSchema\Constraints\Constraint; - /** * @package JsonSchema\Tests\Drafts */ diff --git a/tests/SchemaStorageTest.php b/tests/SchemaStorageTest.php index 1ecfe0dd..016255fd 100644 --- a/tests/SchemaStorageTest.php +++ b/tests/SchemaStorageTest.php @@ -13,7 +13,6 @@ use JsonSchema\Uri\UriRetriever; use JsonSchema\Validator; use PHPUnit\Framework\TestCase; -use Prophecy\Argument; class SchemaStorageTest extends TestCase { diff --git a/tests/ValidatorTest.php b/tests/ValidatorTest.php index c34954e8..6ecb4c69 100644 --- a/tests/ValidatorTest.php +++ b/tests/ValidatorTest.php @@ -2,7 +2,6 @@ namespace JsonSchema\Tests; -use JsonSchema\Constraints\Constraint; use JsonSchema\Validator; use PHPUnit\Framework\TestCase;