Skip to content

Commit bf92610

Browse files
author
Michael Chiocca
committed
Fix Scrutinizer errors.
1 parent 60d9caa commit bf92610

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

src/JsonSchema/Constraints/ConstraintInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ function isValid();
5050
*
5151
* @abstract
5252
* @param mixed $value
53-
* @param null $schema
54-
* @param null $path
55-
* @param null $i
53+
* @param mixed $schema
54+
* @param mixed $path
55+
* @param mixed $i
5656
*/
5757
function check($value, $schema = null, $path = null, $i = null);
5858
}

src/JsonSchema/Constraints/Undefined.php

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

1010
namespace JsonSchema\Constraints;
1111

12-
use JsonSchema\Validator;
13-
1412
/**
1513
* The Undefined Constraints
1614
*
@@ -40,10 +38,10 @@ public function check($value, $schema = null, $path = null, $i = null)
4038
/**
4139
* Validates the value against the types
4240
*
43-
* @param $value
44-
* @param null $schema
45-
* @param null $path
46-
* @param null $i
41+
* @param mixed $value
42+
* @param mixed $schema
43+
* @param string $path
44+
* @param string $i
4745
*/
4846
public function validateTypes($value, $schema = null, $path = null, $i = null)
4947
{
@@ -82,10 +80,10 @@ public function validateTypes($value, $schema = null, $path = null, $i = null)
8280
/**
8381
* Validates common properties
8482
*
85-
* @param $value
86-
* @param null $schema
87-
* @param null $path
88-
* @param null $i
83+
* @param mixed $value
84+
* @param mixed $schema
85+
* @param string $path
86+
* @param string $i
8987
*/
9088
protected function validateCommonProperties($value, $schema = null, $path = null, $i = null)
9189
{
@@ -143,9 +141,9 @@ protected function validateCommonProperties($value, $schema = null, $path = null
143141
/**
144142
* Validate dependencies
145143
*
146-
* @param $value
147-
* @param null $dependencies
148-
* @param null $path
144+
* @param mixed $value
145+
* @param mixed $dependencies
146+
* @param string $path
149147
*/
150148
protected function validateDependencies($value, $dependencies, $path)
151149
{

0 commit comments

Comments
 (0)