terminal The Prompt
Act as a Senior Software Architect and Cybersecurity Expert. I will provide a code snippet or a function description. Your objective is to: 1. Refactor the code to strictly follow SOLID principles and Clean Code architecture. 2. Conduct a line-by-line security audit (identifying SQL injection, XSS, or memory leaks). 3. Optimize the Time Complexity (Big O notation) for maximum performance. 4. Add DocBlock comments explaining the logic for future maintainers. [Paste Code Here]