original_string: protected function getResponseData($path, $default = null)
      {
          $array = $this->response;
  
          if (!empty($path)) {
              $keys = explode('.', $path);
  
              foreach ($keys as $key) {
                  if (isset($array[$key])) {
                      $array = $array[$key];
                  } else {
                      return $default;
                  }
              }
          }
  
          return $array;
      }
code: protected function getResponseData($path, $default = null)
      {
          $array = $this->response;
  
          if (!empty($path)) {
              $keys = explode('.', $path);
  
              foreach ($keys as $key) {
                  if (isset($array[$key])) {
                      $array = $array[$key];
                  } else {
                      return $default;
                  }
              }
          }
  
          return $array;
      }
code_tokens: protected function getResponseData ( $ path , $ default = null ) { $ array = $ this -> response ; if ( ! empty ( $ path ) ) { $ keys = explode ( '.' , $ path ) ; foreach ( $ keys as $ key ) { if ( isset ( $ array [ $ key ] ) ) { $ array = $ array [ $ key ] ; } else { return $ default ; } } } return $ array ; }
docstring: Attempts to pull value from array using dot notation.
  
  @param string $path
  @param string $default
  
  @return mixed
docstring_tokens: Attempts to pull value from array using dot notation .