@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | $types = []; |
| 21 | 21 | new UserErrorsType([ |
| 22 | - 'validate' => static function($val) { return $val ? 0 : 1; }, |
|
| 22 | + 'validate' => static function($val) { return $val ? 0 : 1; }, |
|
| 23 | 23 | 'errorCodes' => [ |
| 24 | 24 | 'unknownUser', |
| 25 | 25 | 'userIsMinor', |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | 'name' => 'bookInput', |
| 80 | 80 | 'fields' => [ |
| 81 | 81 | 'authorId' => [ |
| 82 | - 'validate' => static function($authorId) { return $authorId ? 0 : 1; }, |
|
| 82 | + 'validate' => static function($authorId) { return $authorId ? 0 : 1; }, |
|
| 83 | 83 | 'errorCodes' => ['unknownAuthor'], |
| 84 | 84 | 'type' => Type::id(), |
| 85 | 85 | 'description' => 'An author Id', |