{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "# Find code duplication candidates - similar method signatures\necho \"=== POTENTIAL CODE DUPLICATION ===\"\ngrep -rh \"public function\\|private function\\|protected function\" src --include=\"*.php\" | sed 's\/.*function \/\/' | sed 's\/(.*\/\/g' | sort | uniq -c | sort -rn | head -20",
"description": "Find duplicate method names"
}
}
{
"tool_response": {
"stdout": "=== POTENTIAL CODE DUPLICATION ===",
"stderr": "",
"interrupted": false,
"isImage": false
}
}