Format PHP Code (PHP-CS-Fixer)
format_php_codeFormat PHP code according to PSR-12 standards. Preview changes with dry run or apply formatting directly, with optional backup of original file.
Instructions
PHP-CS-Fixer (PSR-12) ile bir PHP dosyasını formatlar. 'dryRun' true ise sadece diff gösterir, false ise dosyayı yerinde günceller.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Sadece önizleme diff gösterir (true). Dosyayı yazmak için false kullanın. | |
| filepath | Yes | Formatlanacak PHP dosyasının yolu. Örnek: ./src/Foo.php | |
| createBackup | No | Format öncesi orijinali geçici bir dizine yedekler. Varsayılan: false. |