{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContractRepository.php",
"offset": 195,
"limit": 20
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContractRepository.php",
"content": " $violations[] = ['type' => 'major', 'message' => 'Missing contract root element'];\n }\n\n if (!isset($data['contract']['name'])) {\n $minor++;\n $violations[] = ['type' => 'minor', 'message' => 'Missing contract name'];\n }\n\n if ($critical > 0) {\n $result = 'failed';\n }\n } catch (\\Exception $e) {\n $result = 'failed';\n $critical = 1;\n $major = 0;\n $minor = 0;\n $violations = [['type' => 'critical', 'message' => 'Invalid YAML: ' . $e->getMessage()]];\n }\n\n $durationMs = (int) ((microtime(true) - $startTime) * 1000);",
"numLines": 20,
"startLine": 195,
"totalLines": 273
}
}
}