Skip to content

Commit fea524d

Browse files
committed
BUGFIX: Reformat code
1 parent 9ff60fc commit fea524d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Classes/Indexer/NodeIndexer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class NodeIndexer extends AbstractNodeIndexer implements BulkNodeIndexerInterfac
154154
#[Flow\Inject]
155155
protected ContentRepositoryRegistry $contentRepositoryRegistry;
156156

157-
#[Flow\Inject()]
157+
#[Flow\Inject]
158158
protected Context $securityContext;
159159

160160
/** @var array<ContentRepository> */
@@ -276,10 +276,10 @@ public function indexNode(Node $node, ?WorkspaceName $targetWorkspaceName = null
276276

277277
$handleNode = function (Node $node, WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint) use ($contentRepository, $targetWorkspaceName, $indexer, &$nodeFromContext) {
278278
$nodeFromContext = $this->securityContext->withoutAuthorizationChecks(
279-
function () use ($contentRepository, $node, $workspaceName, $dimensionSpacePoint) {
280-
$subgraph = $contentRepository->getContentGraph($workspaceName)->getSubgraph($dimensionSpacePoint, VisibilityConstraints::withoutRestrictions());
281-
return $subgraph->findNodeById($node->aggregateId);
282-
}
279+
fn() => $contentRepository
280+
->getContentGraph($workspaceName)
281+
->getSubgraph($dimensionSpacePoint, VisibilityConstraints::withoutRestrictions())
282+
->findNodeById($node->aggregateId)
283283
);
284284
if ($nodeFromContext instanceof Node) {
285285
$this->searchClient->withDimensions(static function () use ($indexer, $nodeFromContext, $targetWorkspaceName) {

0 commit comments

Comments
 (0)