Update URLShortener.php

formatting, fixed some things, use PATH_INFO