{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/scripts\/php-check.sh",
"offset": 100,
"limit": 60
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/scripts\/php-check.sh",
"content": " else\n echo -e \"${GREEN}✓ Semgrep: No vulnerabilities${NC}\"\n fi\nelse\n if [ ! -x \"$SEMGREP\" ]; then\n echo -e \"${YELLOW}⚠ Semgrep not found, skipping${NC}\"\n else\n echo -e \"${YELLOW}⚠ No src\/ or app\/ directory found${NC}\"\n fi\nfi\n\necho \"\"\n\n# [5\/5] DI Dependency Resolution Check\necho -e \"${YELLOW}[5\/5] DI Check - UseCase Dependencies${NC}\"\nif [ -d \"$PROJECT_DIR\/src\/UseCases\" ]; then\n if \/var\/www\/scripts\/di-check.sh \"$PROJECT_DIR\" 2>\/dev\/null | tail -5; then\n echo -e \"${GREEN}✓ DI Check: All dependencies resolvable${NC}\"\n else\n echo -e \"${RED}✗ DI Check: Unresolvable dependencies found${NC}\"\n DI_OK=0\n fi\nelse\n echo -e \"${YELLOW}⚠ No UseCases directory found, skipping${NC}\"\nfi\n\necho \"\"\necho \"=== Summary ===\"\n\nALL_OK=1\n[ \"$PHPSTAN_OK\" = \"0\" ] && ALL_OK=0\n[ \"$FIXER_OK\" = \"0\" ] && ALL_OK=0\n[ \"$SECURITY_OK\" = \"0\" ] && ALL_OK=0\n[ \"$SEMGREP_OK\" = \"0\" ] && ALL_OK=0\n[ \"$DI_OK\" = \"0\" ] && ALL_OK=0\n\nif [ \"$ALL_OK\" = \"1\" ]; then\n echo -e \"${GREEN}All checks passed!${NC}\"\n exit 0\nelse\n echo -e \"${RED}Some checks failed${NC}\"\n exit 1\nfi\n",
"numLines": 44,
"startLine": 100,
"totalLines": 143
}
}
}