PSR2 ixes in WriteDetector