Skip to content

Commit cabc7ba

Browse files
committed
style: Correct code style violations
1 parent 14e98ba commit cabc7ba

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/JsonSchema/Constraints/Drafts/Draft06/AdditionalPropertiesConstraint.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ private function createPregMatchPattern(string $pattern): string
8080
// '\W' => '[^A-Za-z0-9_]',
8181
// '\s' => '[\s\x{200B}]' // Explicitly include zero width white space,
8282
'\p{Letter}' => '\p{L}', // Map ECMA long property name to PHP (PCRE) Unicode property abbreviations
83-
8483
];
85-
//
84+
8685
$pattern = str_replace(
8786
array_keys($replacements),
8887
array_values($replacements),

src/JsonSchema/Constraints/Drafts/Draft06/AnyOfConstraint.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function check(&$value, $schema = null, ?JsonPointer $path = null, $i = n
3737

3838
if ($schemaConstraint->isValid()) {
3939
$this->errorBag()->reset();
40+
4041
return;
4142
}
4243

src/JsonSchema/Constraints/Drafts/Draft06/PatternPropertiesConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function createPregMatchPattern(string $pattern): string
6060
// '\s' => '[\s\x{200B}]' // Explicitly include zero width white space
6161
'\p{Letter}' => '\p{L}', // Map ECMA long property name to PHP (PCRE) Unicode property abbreviations
6262
];
63-
//
63+
6464
$pattern = str_replace(
6565
array_keys($replacements),
6666
array_values($replacements),

tests/JsonSchemaTestSuiteTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,6 @@ private function shouldNotYieldTest(string $name): bool
152152
'[draft6/refRemote.json]: Location-independent identifier in remote ref: string is invalid is expected to be invalid', // Test case was skipped from draft4, skip for draft6 as well.
153153
'[draft6/ref.json]: Location-independent identifier: mismatch is expected to be invalid', // Test case was skipped from draft4, skip for draft6 as well.
154154
'[draft6/ref.json]: Location-independent identifier with base URI change in subschema: mismatch is expected to be invalid', // Test case was skipped from draft4, skip for draft6 as well.
155-
156-
157-
158155
];
159156

160157
if ($this->is32Bit()) {

0 commit comments

Comments
 (0)