original_string: public function validateResponse(array $response)
      {
          $returnValue = false;
          if (isset($response['header'])
              && isset($response['header']['status'])
              && $response['header']['status'] >= 200
              && $response['header']['status'] < 300
          ) {
              $returnValue = true;
          }
  
          return $returnValue;
      }
code: public function validateResponse(array $response)
      {
          $returnValue = false;
          if (isset($response['header'])
              && isset($response['header']['status'])
              && $response['header']['status'] >= 200
              && $response['header']['status'] < 300
          ) {
              $returnValue = true;
          }
  
          return $returnValue;
      }
code_tokens: public function validateResponse ( array $ response ) { $ returnValue = false ; if ( isset ( $ response [ 'header' ] ) && isset ( $ response [ 'header' ] [ 'status' ] ) && $ response [ 'header' ] [ 'status' ] >= 200 && $ response [ 'header' ] [ 'status' ] < 300 ) { $ returnValue = true ; } return $ returnValue ; }
docstring: Validates the data responded by the API
  Just checks the header status is successful.
  
  @param array $response
  
  @return boolean True if valid
docstring_tokens: Validates the data responded by the API Just checks the header status is successful .