From 0ddb7519bb92ce6d40d449bfd8b5b145ff16137b Mon Sep 17 00:00:00 2001 From: spawnia Date: Mon, 3 Sep 2018 22:46:14 +0200 Subject: [PATCH] More coding style -.- Can this be done automatically? --- tests/Server/ServerTestCase.php | 4 ++-- tests/Server/Unsafe.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Server/ServerTestCase.php b/tests/Server/ServerTestCase.php index 431d28d..4ad9698 100644 --- a/tests/Server/ServerTestCase.php +++ b/tests/Server/ServerTestCase.php @@ -43,13 +43,13 @@ abstract class ServerTestCase extends TestCase ], 'fieldWithSafeException' => [ 'type' => Type::string(), - 'resolve' => function() { + 'resolve' => function () { throw new UserError('This is the exception we want'); }, ], 'fieldWithUnsafeException' => [ 'type' => Type::string(), - 'resolve' => function() { + 'resolve' => function () { throw new Unsafe('This exception should not be shown to the user'); }, ], diff --git a/tests/Server/Unsafe.php b/tests/Server/Unsafe.php index 5e08918..2eb3742 100644 --- a/tests/Server/Unsafe.php +++ b/tests/Server/Unsafe.php @@ -1,5 +1,7 @@