Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 69... Línea 69...
69
   * @throws Google_Service_Exception
69
   * @throws Google_Service_Exception
70
   * @param Google_Http_Request $response The http response to be decoded.
70
   * @param Google_Http_Request $response The http response to be decoded.
71
   * @param Google_Client $client
71
   * @param Google_Client $client
72
   * @return mixed|null
72
   * @return mixed|null
73
   */
73
   */
74
  public static function decodeHttpResponse($response, Google_Client $client = null)
74
  public static function decodeHttpResponse($response, ?Google_Client $client = null)
75
  {
75
  {
76
    $code = $response->getResponseHttpCode();
76
    $code = $response->getResponseHttpCode();
77
    $body = $response->getResponseBody();
77
    $body = $response->getResponseBody();
78
    $decoded = null;
78
    $decoded = null;