Reformat TEC main class file to WP coding standards
Updates #28316
Merge branch 'refs/heads/code-reformatting' into develop