Apparently type hinting is no longer supported in PHP for primitive types. Also, removed brackets and improved readability for the IFs.