| 1 |
#include "fmtPHPCBF.hpp" |
| 2 |
|
| 3 |
#include "Platform.hpp" |
| 4 |
|
| 5 |
fmtPHPCBF::fmtPHPCBF() |
| 6 |
{ |
| 7 |
SetName("PHPCBF"); |
| 8 |
SetFileTypes({ FileExtManager::TypePhp }); |
| 9 |
SetDescription(_("PHP Code Beautifier and Fixer")); |
| 10 |
SetShortDescription(_("PHP formatter")); |
| 11 |
SetInplaceFormatter(true); |
| 12 |
SetEnabled(false); |
| 13 |
|
| 14 |
wxString php_exe = "php"; |
| 15 |
ThePlatform->Which("php", &php_exe); |
| 16 |
SetCommand({ php_exe, "$(WorkspacePath)/vendor/bin/phpcbf", "-q", R"#("$(CurrentFileRelPath)")#" }); |
| 17 |
} |
| 18 |
|
| 19 |
fmtPHPCBF::~fmtPHPCBF() {} |