Skip to content

Commit 357c2f9

Browse files
committed
style: correct code style violations
1 parent 34e6ffb commit 357c2f9

11 files changed

+18
-20
lines changed

tests/Constraints/ArraysTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ArraysTest extends BaseTestCase
99

1010
public function getInvalidTests(): \Generator
1111
{
12-
yield [
12+
yield [
1313
'{
1414
"array":[1,2,"a"]
1515
}',

tests/Constraints/BasicTypesTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44

55
class BasicTypesTest extends BaseTestCase
66
{
7-
/** @var string */
7+
/** @var string */
88
protected $schemaSpec = 'http://json-schema.org/draft-03/schema#';
9-
/** @var bool */
9+
/** @var bool */
1010
protected $validateSchema = true;
1111

1212
public function getInvalidTests(): \Generator
1313
{
14-
1514
yield [
1615
'{
1716
"string":null

tests/Constraints/ConstTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
class ConstTest extends BaseTestCase
66
{
7-
/** @var string */
7+
/** @var string */
88
protected $schemaSpec = 'http://json-schema.org/draft-06/schema#';
9-
/** @var bool */
9+
/** @var bool */
1010
protected $validateSchema = true;
1111

1212
public function getInvalidTests(): \Generator

tests/Constraints/DependenciesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
class DependenciesTest extends BaseTestCase
66
{
7-
/** @var string */
7+
/** @var string */
88
protected $schemaSpec = 'http://json-schema.org/draft-03/schema#';
9-
/** @var bool */
9+
/** @var bool */
1010
protected $validateSchema = true;
1111

1212
public function getInvalidTests(): \Generator

tests/Constraints/EnumTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
class EnumTest extends BaseTestCase
66
{
7-
/** @var string */
7+
/** @var string */
88
protected $schemaSpec = 'http://json-schema.org/draft-03/schema#';
9-
/** @var bool */
9+
/** @var bool */
1010
protected $validateSchema = true;
1111

1212
public function getInvalidTests(): \Generator

tests/Constraints/FormatTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
43
namespace JsonSchema\Tests\Constraints;
54

65
use JsonSchema\Constraints\Constraint;
@@ -9,7 +8,7 @@
98

109
class FormatTest extends BaseTestCase
1110
{
12-
/** @var bool */
11+
/** @var bool */
1312
protected $validateSchema = true;
1413

1514
public function setUp(): void

tests/Constraints/NumberAndIntegerTypesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
43
namespace JsonSchema\Tests\Constraints;
54

65
class NumberAndIntegerTypesTest extends BaseTestCase

tests/Constraints/OfPropertiesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function getInvalidTests(): \Generator
139139
}
140140
}'
141141
];
142-
yield[
142+
yield [
143143
'{"prop1": [1,2]}',
144144
'{
145145
"type": "object",
@@ -158,7 +158,7 @@ public function getInvalidTests(): \Generator
158158
}
159159
}'
160160
];
161-
yield[
161+
yield [
162162
'{"prop1": [1,2]}',
163163
'{
164164
"type": "object",
@@ -177,7 +177,7 @@ public function getInvalidTests(): \Generator
177177
}
178178
}'
179179
];
180-
yield[
180+
yield [
181181
'{"prop1": [1,2]}',
182182
'{
183183
"type": "object",

tests/Constraints/SelfDefinedSchemaTest.php

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

33
namespace JsonSchema\Tests\Constraints;
44

5-
use JsonSchema\Validator;
65
use JsonSchema\Exception\InvalidArgumentException;
6+
use JsonSchema\Validator;
77
use stdClass;
88

99
class SelfDefinedSchemaTest extends BaseTestCase

tests/Constraints/UndefinedConstraintTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
class UndefinedConstraintTest extends BaseTestCase
1010
{
1111
public function getInvalidTests(): \Generator
12-
{}
12+
{
13+
}
1314

1415
public function getValidTests(): \Generator
1516
{
16-
yield 'oneOf with type coercion should not affect value passed to each sub schema (#790)' => [
17+
yield 'oneOf with type coercion should not affect value passed to each sub schema (#790)' => [
1718
'input' => <<<JSON
1819
{
1920
"id": "LOC1",

0 commit comments

Comments
 (0)