{
"event": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/DokumentationRepositoryInterface.php",
"old_string": "<?php\n\nnamespace Domain\\Repository;\n\n\/**\n * Interface for Dokumentation Repository operations.\n *\/\ninterface DokumentationRepositoryInterface",
"new_string": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Domain\\Repository;\n\n\/\/ @responsibility: Vertrag für Dokumentations-Persistenz\n\ninterface DokumentationRepositoryInterface"
}
}
{
"tool_response": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Repository\/DokumentationRepositoryInterface.php",
"oldString": "<?php\n\nnamespace Domain\\Repository;\n\n\/**\n * Interface for Dokumentation Repository operations.\n *\/\ninterface DokumentationRepositoryInterface",
"newString": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Domain\\Repository;\n\n\/\/ @responsibility: Vertrag für Dokumentations-Persistenz\n\ninterface DokumentationRepositoryInterface",
"originalFile": "<?php\n\nnamespace Domain\\Repository;\n\n\/**\n * Interface for Dokumentation Repository operations.\n *\/\ninterface DokumentationRepositoryInterface\n{\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findById(int $id): ?array;\n\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findByPath(string $path): ?array;\n\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findBySlug(string $slug, ?int $parentId = null): ?array;\n\n \/**\n * @return array<string, mixed>|null\n *\/\n public function findDocBySlug(string $slug): ?array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findChildren(int $parentId): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function findRootDocuments(): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function getHierarchy(): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function getBreadcrumb(int $docId): array;\n\n \/**\n * @return array<int, array<string, mixed>>\n *\/\n public function getSiblings(int $docId): array;\n\n \/**\n * @return array{total: int, by_depth: array<int, array{depth: int, count: int}>, by_status: array<int, array{status: string, count: int}>}\n *\/\n public function getStatistics(): array;\n}\n",
"structuredPatch": [
{
"oldStart": 1,
"oldLines": 10,
"newStart": 1,
"newLines": 11,
"lines": [
" <?php",
" ",
"+declare(strict_types=1);",
"+",
" namespace Domain\\Repository;",
" ",
"-\/**",
"- * Interface for Dokumentation Repository operations.",
"- *\/",
"+\/\/ @responsibility: Vertrag für Dokumentations-Persistenz",
"+",
" interface DokumentationRepositoryInterface",
" {",
" \/**"
]
}
],
"userModified": false,
"replaceAll": false
}
}