{
"event": "PreToolUse",
"tool_name": "Grep",
"tool_input": {
"pattern": "function show\\(int|->view\\('content.show",
"path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php",
"output_mode": "content",
"-A": 25,
"-n": true
}
}
{
"tool_response": {
"mode": "content",
"numFiles": 0,
"filenames": [],
"content": "127: public function show(int $id): void\n128- {\n129- $order = $this->repository->findOrder($id);\n130-\n131- if ($order === null) {\n132- http_response_code(404);\n133- echo '404 - Auftrag nicht gefunden';\n134-\n135- return;\n136- }\n137-\n138- $versions = $this->repository->findVersionsByOrder($id);\n139- $latestVersion = $versions[0] ?? null;\n140- $critiques = $latestVersion ? $this->repository->findCritiquesByVersion($latestVersion['id']) : [];\n141- $sources = $this->repository->findSourcesByOrder($id);\n142-\n143: $this->view('content.show', [\n144- 'title' => $order['title'],\n145- 'order' => $order,\n146- 'versions' => $versions,\n147- 'latestVersion' => $latestVersion,\n148- 'critiques' => $critiques,\n149- 'sources' => $sources,\n150- ]);\n151- }\n152-\n153- \/**\n154- * GET \/content\/{id}\/edit\n155- * Show edit form\n156- *\/\n157- public function edit(int $id): void\n158- {\n159- $order = $this->repository->findOrder($id);\n160-\n161- if ($order === null) {\n162- http_response_code(404);\n163- echo '404 - Auftrag nicht gefunden';\n164-\n165- return;\n166- }\n167-\n168- $this->view('content.edit', [",
"numLines": 42
}
}