@@ -15,12 +15,11 @@ |
||
| 15 | 15 | public function __construct(?callable $errorFormatter = null) |
| 16 | 16 | { |
| 17 | 17 | $this->isAsAsserted = IsAsAsserted::withAssertionAndErrorFormatter( |
| 18 | - function ($data) { |
|
| 18 | + function($data) { |
|
| 19 | 19 | return !empty($data); |
| 20 | 20 | }, |
| 21 | 21 | is_callable($errorFormatter) ? |
| 22 | - $errorFormatter : |
|
| 23 | - function ($data) { |
|
| 22 | + $errorFormatter : function($data) { |
|
| 24 | 23 | return [self::EMPTY]; |
| 25 | 24 | } |
| 26 | 25 | ); |