Joomla uses tabs for indenting and not spaces.

TheĀ encoding on files must be set to UTF-8.

The closing PHP tag ?> at the end of each file should be left off.

Joomla! uses the Allman style for braces, so the opening brace is on the next line.