protected function repairShadowNodes($workspaceName, $dryRun, NodeType $nodeType = null)
{
/** @var Workspace $workspace */
$workspace = $this->workspaceRepository->findByIdentifier($workspaceName);
if ($workspace->getBaseWorkspace() === null) {
$this->output->outputLine('Repairing base workspace "%s", therefore skipping check for shadow nodes.', [$workspaceName]);
$this->output->outputLine();
return;
}
$this->output->outputLine('Checking for nodes with missing shadow nodes ...');
$fixedShadowNodes = $this->fixShadowNodesInWorkspace($workspace, $nodeType);
$this->output->outputLine('%s %s node%s with missing shadow nodes.', [$dryRun ? 'Would repair' : 'Repaired', $fixedShadowNodes, $fixedShadowNodes !== 1 ? 's' : '']);
$this->output->outputLine();
}