Skip to content

Commit f0defb0

Browse files
committed
style: correct code style violations
1 parent 9accec9 commit f0defb0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/JsonSchema/Tool/DeepComparer.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44

55
namespace JsonSchema\Tool;
66

7-
use phpDocumentor\Reflection\Types\True_;
8-
97
class DeepComparer
108
{
9+
/**
10+
* @param mixed $left
11+
* @param mixed $right
12+
*/
1113
public static function isEqual($left, $right): bool
1214
{
1315
$isLeftScalar = is_scalar($left);
@@ -32,6 +34,10 @@ public static function isEqual($left, $right): bool
3234
return false;
3335
}
3436

37+
/**
38+
* @param array<string|int, mixed> $left
39+
* @param array<string|int, mixed> $right
40+
*/
3541
private static function isArrayEqual(array $left, array $right): bool
3642
{
3743
if (count($left) !== count($right)) {
@@ -49,5 +55,4 @@ private static function isArrayEqual(array $left, array $right): bool
4955

5056
return true;
5157
}
52-
5358
}

tests/Tool/DeepComparerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,4 @@ public function notEqualDataProvider(): \Generator
9191
}
9292
}
9393
}
94-
9594
}

0 commit comments

Comments
 (0)