Closed interduo closed 8 months ago
It seems php-parser print mix html + php cause various line ending + space force change. This is known drawback, see https://github.com/rectorphp/rector?tab=readme-ov-file#known-drawbacks,
I suggest to use coding standard tool to standardized mixed spacing
ok, thanks for the info.
But wait look there was "no occurances of rule in that file" so why it was changed in anyway?
File can be changed by rector rule or post rector (auto import, remove use stmts, etc) so can't depend only on that rule applied.
Bug Report
Unnecessary code changes.
Minimal PHP Code Causing Issue
Applied rules:
Raw origin file is located here: https://raw.githubusercontent.com/chilek/lms/072d10e5b85b3e58b34f36fbfcfe71f54a096d77/lib/xajax/xajax_core/xajaxControl.inc.php
This is my diff after rector run.
My rector.php is:
In that Rule I suggest to ommit all of the lines without:
__DIR__