Ловите промт для ChatGPT, который поможет сделать код чище, быстрее и безопаснее за пару кликов 🚀
💡 Скопируй и вставь этот промт в ChatGPT или Claude:
«
Refactor the following PHP code to improve readability, performance, and adherence to modern coding standards (PSR-12).Remove code duplicationReplace outdated constructs with modern alternativesEnforce strict typing (declare(strict_types=1);)Break down long functions into smaller, more manageable onesAdd comments and PHPDoc for better documentationImprove security (e.g., prevent SQL injections)Here is the code: // Paste your code here Return the updated code with explanations on what was improved and why.»💬 Делитесь в комментах результатом, а также можете показать свои промты и фишки, связанные с нейронками, которые используете в работе.
Библиотека пхпшника #буст