Closed benallfree closed 2 years ago
What's the reason for the temporary file? If this VSCode extension just operated on the PHP file in-place, the phpcbf
script automatically looks for and navigates up parent directories looking for a series of phpcs.xml
-like filenames and uses the first one it finds ... the whole temp file thing breaks this very elegant mechanism.
This PR fixes 3 things:
Integrates PR #29
Fixes a bug where
phpcbf.standard
was not resolving paths correctlyFixes #21. Exec path needs to be set to the project root so it can correctly search for
installed_paths
viaphpcs --config-set installed_paths <path/to/custom/coding/standard>