Adapted Code Style

This commit adapts the code style according to the recommendations of
[PSR-2](http://www.php-fig.org/psr/psr-2/).
Bugfix

This commit fixes a type conversation bug.
Increased consistency

This commit unifies the usage of type-safe and logical comparison
operators.
Fixed minor typo
Merge pull request #7 from scento/code-style-psr-2

PSR-2 code style