{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "cd \/var\/www\/dev.campus.systemische-tools.de && php -r '\nrequire_once \"vendor\/autoload.php\";\n$config = require \"config\/database.php\";\n\nuse Infrastructure\\CodeAnalysis\\CodeQualityChecker;\nuse Infrastructure\\Persistence\\CodeQualityRepository;\n\n$pdo = new PDO(\n \"mysql:host=\" . $config[\"host\"] . \";dbname=ki_dev;charset=utf8mb4\",\n $config[\"user\"],\n $config[\"password\"]\n);\n$repo = new Infrastructure\\Persistence\\CodeQualityRepository($pdo);\n$checker = new Infrastructure\\CodeAnalysis\\CodeQualityChecker($repo);\n\necho \"Starting scan...\\n\";\n$stats = $checker->scanDirectory(\"\/var\/www\");\necho json_encode($stats, JSON_PRETTY_PRINT);\n' 2>&1",
"timeout": 300000,
"description": "Run PHP code quality scan with config"
}
}