Migrate ´ to '
remove whitespace at end of line
complete renaming uid to userId
use array_merge for merging arrays in PHP
add proper Exception message for invalid token