Apparently type hinting is no longer supported in PHP for primitive types. Also, removed brackets and improved readability for the IFs.
Merge pull request #2 from P1raten/master

Minor update