@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function validate($data, array $context = []): ValidationResult |
| 15 | 15 | { |
| 16 | 16 | return parent::validateAssertion( |
| 17 | - function ($data) { |
|
| 17 | + function($data) { |
|
| 18 | 18 | return null !== $data; |
| 19 | 19 | }, |
| 20 | 20 | $data, |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function validate($data, array $context = []): ValidationResult |
| 15 | 15 | { |
| 16 | 16 | return parent::validateAssertion( |
| 17 | - function ($data) { |
|
| 17 | + function($data) { |
|
| 18 | 18 | return null === $data; |
| 19 | 19 | }, |
| 20 | 20 | $data, |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function validate($data, array $context = []): ValidationResult |
| 15 | 15 | { |
| 16 | 16 | return parent::validateAssertion( |
| 17 | - function ($data) { |
|
| 17 | + function($data) { |
|
| 18 | 18 | return !empty($data); |
| 19 | 19 | }, |
| 20 | 20 | $data, |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | public static function withTranslator(Translator $translator): self |
| 31 | 31 | { |
| 32 | - return new static(function ($data) use ($translator) { |
|
| 32 | + return new static(function($data) use ($translator) { |
|
| 33 | 33 | return [$translator->translate(static::MESSAGE)]; |
| 34 | 34 | }); |
| 35 | 35 | } |
@@ -41,8 +41,7 @@ discard block |
||
| 41 | 41 | return IsAsAsserted::withAssertionAndErrorFormatter( |
| 42 | 42 | $assertion, |
| 43 | 43 | is_callable($this->errorFormatter) ? |
| 44 | - $this->errorFormatter : |
|
| 45 | - function ($data) { |
|
| 44 | + $this->errorFormatter : function($data) { |
|
| 46 | 45 | return [static::MESSAGE]; |
| 47 | 46 | } |
| 48 | 47 | )->validate($data, $context); |