pub async fn run(
cfg: &PhpcsConfig,
path: &Path,
workspace_root: Option<&Path>,
) -> Vec<Diagnostic>Expand description
Check path with PHPCS and return its findings as diagnostics.
Returns an empty Vec whenever the tool can’t be run at all (binary
missing, spawn failure, unparseable output) — same best-effort contract
as super::phpstan::run.