@@ -52,8 +52,7 @@ |
||
52 | 52 | { |
53 | 53 | try { |
54 | 54 | return $this->datatype->validate($value); |
55 | - } |
|
56 | - catch (ValidatorException $e) { |
|
55 | + } catch (ValidatorException $e) { |
|
57 | 56 | throw new Error($e->getMessage()); |
58 | 57 | } |
59 | 58 | } |
@@ -45,13 +45,13 @@ |
||
45 | 45 | |
46 | 46 | Event::listen( |
47 | 47 | RegisterDirectiveNamespaces::class, |
48 | - function (RegisterDirectiveNamespaces $registerDirectiveNamespaces): string { |
|
48 | + function(RegisterDirectiveNamespaces $registerDirectiveNamespaces): string { |
|
49 | 49 | return 'Modelarium\\Laravel\\Lighthouse\\Directives'; |
50 | 50 | } |
51 | 51 | ); |
52 | 52 | Event::listen( |
53 | 53 | RegisterDirectiveNamespaces::class, |
54 | - function (RegisterDirectiveNamespaces $registerDirectiveNamespaces): string { |
|
54 | + function(RegisterDirectiveNamespaces $registerDirectiveNamespaces): string { |
|
55 | 55 | return 'App\\Datatypes\\Types'; |
56 | 56 | } |
57 | 57 | ); |