Please follow WordPress Coding Standards:

https://make.wordpress.org/core/handbook/best-practices/coding-standards/

<?php

// comment
function ss_foo() {
	if ( $x > 5 ) {
		echo 'bar';
	}
	return 'string';
}