/**
  * Retrieves GET/HEAD or POST/PUT parameters of an inbound request.
  *
  * @return array
  *   An array containing either GET/HEAD query string parameters or POST/PUT
  *   post body parameters. Parameter parsing accounts for multiple request
  *   parameters in non-PHP format; e.g., 'foo=one&foo=bar'.
  */
 public static function getServerParameters()
 {
     $data = parent::getServerParameters();
     if ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD') {
         // Remove $_GET['q'].
         unset($data['q']);
     }
     return $data;
 }