{
"event": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/docs\/show.php",
"old_string": "<?php if (!empty($children)): ?>\n<section class=\"doc-children\">\n <h2>Unterseiten<\/h2>\n <ul>\n <?php foreach ($children as $child): ?>\n <li><a href=\"\/docs<?= htmlspecialchars($child['path']) ?>\"><?= htmlspecialchars($child['title']) ?><\/a>\n <?php if (!empty($child['description'])): ?>\n - <?= htmlspecialchars($child['description']) ?>\n <?php endif; ?>\n <\/li>\n <?php endforeach; ?>\n <\/ul>\n<\/section>\n<?php endif; ?>",
"new_string": "<?php if (!empty($children)): ?>\n<?php foreach ($children as $child): ?>\n<section class=\"doc-child-section\">\n <?= $child['content'] ?>\n<\/section>\n<?php endforeach; ?>\n<?php endif; ?>"
}
}
{
"tool_response": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/docs\/show.php",
"oldString": "<?php if (!empty($children)): ?>\n<section class=\"doc-children\">\n <h2>Unterseiten<\/h2>\n <ul>\n <?php foreach ($children as $child): ?>\n <li><a href=\"\/docs<?= htmlspecialchars($child['path']) ?>\"><?= htmlspecialchars($child['title']) ?><\/a>\n <?php if (!empty($child['description'])): ?>\n - <?= htmlspecialchars($child['description']) ?>\n <?php endif; ?>\n <\/li>\n <?php endforeach; ?>\n <\/ul>\n<\/section>\n<?php endif; ?>",
"newString": "<?php if (!empty($children)): ?>\n<?php foreach ($children as $child): ?>\n<section class=\"doc-child-section\">\n <?= $child['content'] ?>\n<\/section>\n<?php endforeach; ?>\n<?php endif; ?>",
"originalFile": "<?php ob_start(); ?>\n\n<?= $doc['content'] ?>\n\n<?php if (!empty($children)): ?>\n<section class=\"doc-children\">\n <h2>Unterseiten<\/h2>\n <ul>\n <?php foreach ($children as $child): ?>\n <li><a href=\"\/docs<?= htmlspecialchars($child['path']) ?>\"><?= htmlspecialchars($child['title']) ?><\/a>\n <?php if (!empty($child['description'])): ?>\n - <?= htmlspecialchars($child['description']) ?>\n <?php endif; ?>\n <\/li>\n <?php endforeach; ?>\n <\/ul>\n<\/section>\n<?php endif; ?>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>\n",
"structuredPatch": [
{
"oldStart": 3,
"oldLines": 18,
"newStart": 3,
"newLines": 11,
"lines": [
" <?= $doc['content'] ?>",
" ",
" <?php if (!empty($children)): ?>",
"-<section class=\"doc-children\">",
"- <h2>Unterseiten<\/h2>",
"- <ul>",
"- <?php foreach ($children as $child): ?>",
"- <li><a href=\"\/docs<?= htmlspecialchars($child['path']) ?>\"><?= htmlspecialchars($child['title']) ?><\/a>",
"- <?php if (!empty($child['description'])): ?>",
"- - <?= htmlspecialchars($child['description']) ?>",
"- <?php endif; ?>",
"- <\/li>",
"- <?php endforeach; ?>",
"- <\/ul>",
"+<?php foreach ($children as $child): ?>",
"+<section class=\"doc-child-section\">",
"+ <?= $child['content'] ?>",
" <\/section>",
"+<?php endforeach; ?>",
" <?php endif; ?>",
" ",
" <?php $content = ob_get_clean(); ?>"
]
}
],
"userModified": false,
"replaceAll": false
}
}