phpcs cleanup: whitespace, braces, visibility
PSR-2 fixes in RefLib. BACKWARD BREAK