Format
This commit is contained in:
@@ -15,10 +15,9 @@ class Authentication
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if ($request->header('Gql-Session') === 'SUPER_SECRET_KEY_HEADER') {
|
||||
return "";
|
||||
}
|
||||
else {
|
||||
throw new AccessDeniedHttpException;
|
||||
return '';
|
||||
} else {
|
||||
throw new AccessDeniedHttpException();
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
||||
+1
-1
@@ -69,6 +69,6 @@ class Dummy extends GraphQLSubscription
|
||||
*/
|
||||
public function resolve($root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): array
|
||||
{
|
||||
return array($root);
|
||||
return [$root];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user