1
0
Fork 0
mirror of synced 2024-10-01 01:37:56 +13:00

Fix linter

This commit is contained in:
Matej Bačo 2022-12-27 20:33:16 +01:00
parent 991c6dea64
commit 0865b240c4

View file

@ -300,8 +300,9 @@ class Resolvers
$resolve($payload);
}
private static function escapePayload(array $payload, int $depth) {
if($depth > App::getEnv('_APP_GRAPHQL_MAX_DEPTH', 3)) {
private static function escapePayload(array $payload, int $depth)
{
if ($depth > App::getEnv('_APP_GRAPHQL_MAX_DEPTH', 3)) {
return;
}
@ -312,7 +313,7 @@ class Resolvers
unset($payload[$key]);
}
if(\is_array($value)) {
if (\is_array($value)) {
$payload[$key] = self::escapePayload($value, $depth + 1);
}
}