Coding standards

If you decided to write code for Oxwall make sure you observe code style standards described in this convention.

You don't HAVE to make your code look fancy to write a great plugin but think how others looking at your code would appreciate if it's written alike the rest of the Oxwall code. All rules in this convention are not taken “because we like it so” but were elaborated with readability, portability, compatibility, fail-safety and general acceptability in mind.

General

Always use full-form of PHP code tags:

<?php?>

For files containing only PHP code, the closing tag ?> must be ommitted.

include_once and require_once are statements, not functions. Parentheses should not surround the subject filename.