Fix one issue per pull request.
Squash commits before opening a pull request.
Respect the coding style policy.
Name your PR like the following :
[BridgeName] Feature
.[FileName] Feature
.category : feature
.Note that all pull-requests should pass the unit tests before they can be merged.
Use camelCase
for variables and methods.
Use UPPERCASE
for constants.
Use PascalCase
for class names. When creating a bridge, your class and PHP file should be named MyImplementationBridge
.
Use tabs for indentation.
Add an empty line at the end of your file.
Use ''
to encapsulate strings, including in arrays.
Prefer lines shorter than 80 chars, no line longer than 120 chars.
PHP constants should be in lower case (true, false, null
...)
!
operator).||
and &&
instead of or
and and
.if
and your bracket.elseif
instead of else if
.if($a == true && $b) {
print($a);
} else if(!$b) {
$a = !$a;
$b = $b >> $a;
print($b);
} else {
print($b);
}