Skip to content

Commit c9cefd8

Browse files
committed
feat(graphql): adjusted some of the formatting and method placement to have smaller diff
1 parent 46a0291 commit c9cefd8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/GraphQl/Subscription/SubscriptionManager.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function __construct(private readonly CacheItemPoolInterface $subscriptio
4242

4343
public function retrieveSubscriptionId(array $context, ?array $result, ?Operation $operation = null): ?string
4444
{
45-
4645
/** @var ResolveInfo $info */
4746
$info = $context['info'];
4847
$fields = $info->getFieldSelection(\PHP_INT_MAX);
@@ -124,11 +123,6 @@ private function removeItemFromSubscriptionCache(string $iri): void
124123
}
125124
}
126125

127-
private function encodeIriToCacheKey(string $iri): string
128-
{
129-
return str_replace('/', '_', $iri);
130-
}
131-
132126
private function updateSubscriptionCollectionCacheData(
133127
?string $iri,
134128
array $fields,
@@ -225,4 +219,8 @@ private function getDeletePushPayloads(object $object): array
225219
return $payloads;
226220
}
227221

222+
private function encodeIriToCacheKey(string $iri): string
223+
{
224+
return str_replace('/', '_', $iri);
225+
}
228226
}

0 commit comments

Comments
 (0)