@@ -44,7 +44,7 @@ |
||
44 | 44 | throw new FilterDoesNotExistException("Filter class {$type} does not exist"); |
45 | 45 | } |
46 | 46 | $filter = new $type; |
47 | - if (! ($filter instanceof FilterInterface)) { |
|
47 | + if (!($filter instanceof FilterInterface)) { |
|
48 | 48 | throw new FilterDoesNotExistException( |
49 | 49 | "Filter class {$type} must implement " . FilterInterface::class |
50 | 50 | ); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | throw new ValidatorDoesNotExistException("Validator class {$type} does not exist"); |
44 | 44 | } |
45 | 45 | $validator = new $type; |
46 | - if (! ($validator instanceof ValidatorInterface)) { |
|
46 | + if (!($validator instanceof ValidatorInterface)) { |
|
47 | 47 | throw new ValidatorDoesNotExistException( |
48 | 48 | "Validator class {$type} must implement " . ValidatorInterface::class |
49 | 49 | ); |
@@ -45,6 +45,6 @@ |
||
45 | 45 | */ |
46 | 46 | public function validate($value) |
47 | 47 | { |
48 | - return ! $this->validator->validate($value); |
|
48 | + return !$this->validator->validate($value); |
|
49 | 49 | } |
50 | 50 | } |
@@ -37,11 +37,11 @@ |
||
37 | 37 | * @var array |
38 | 38 | */ |
39 | 39 | private $validTypes = [ |
40 | - 'array' => [ 'array' ], |
|
41 | - 'object' => [ 'object' ], |
|
42 | - 'integer' => [ 'integer' ], |
|
43 | - 'number' => [ 'integer', 'double' ], |
|
44 | - 'string' => [ 'string' ], |
|
40 | + 'array' => ['array'], |
|
41 | + 'object' => ['object'], |
|
42 | + 'integer' => ['integer'], |
|
43 | + 'number' => ['integer', 'double'], |
|
44 | + 'string' => ['string'], |
|
45 | 45 | 'boolean' => ['boolean'], |
46 | 46 | 'null' => ['NULL'], |
47 | 47 | ]; |