{
"event": "PostToolUse",
"tool_name": "Read",
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/ContentController.php",
"content": " \/**\n * POST \/content\/{id}\/approve - Approve content\n *\/\n public function approve(int $id): void\n {\n $this->requireCsrf();\n $this->repository->updateOrderStatus($id, 'approve');\n $this->htmxSuccess('Content genehmigt!');\n $this->html('<script>setTimeout(() => window.location.reload(), 1000);<\/script>');\n }\n\n \/**\n * POST \/content\/{id}\/decline - Decline content\n *\/\n public function decline(int $id): void\n {\n $this->requireCsrf();\n $this->repository->updateOrderStatus($id, 'draft');\n $this->htmxAlert('warning', 'Content abgelehnt. Zurück zu Entwurf.');\n $this->html('<script>setTimeout(() => window.location.reload(), 1000);<\/script>');\n }\n\n private function getFirstContractId(): ?int\n {\n $contracts = $this->repository->findAllContracts();\n\n return $contracts !== [] ? (int) $contracts[0]['id'] : null;\n }\n\n private function renderVersionPartial(array $result): void",
"numLines": 30,
"startLine": 370,
"totalLines": 417
}
}
}