original_string: public function getFormattedResponse()
      {
          list($header, $data) = preg_split("/\r\n\r\n|\n\n|\r\r/", $this->response, 2);
  
          $headers = preg_split("/\r\n|\n|\r/", $header);
          $status = explode(' ', trim(reset($headers)), 3);
  
          $result = array(
              'status' => '',
              'http' => $status[0],
              'code' => $status[1]
          );
  
          if (isset($status[2])) {
              $result['status'] = $status[2];
          }
  
          return array('data' => $data, 'status' => $result);
      }
code: public function getFormattedResponse()
      {
          list($header, $data) = preg_split("/\r\n\r\n|\n\n|\r\r/", $this->response, 2);
  
          $headers = preg_split("/\r\n|\n|\r/", $header);
          $status = explode(' ', trim(reset($headers)), 3);
  
          $result = array(
              'status' => '',
              'http' => $status[0],
              'code' => $status[1]
          );
  
          if (isset($status[2])) {
              $result['status'] = $status[2];
          }
  
          return array('data' => $data, 'status' => $result);
      }
code_tokens: public function getFormattedResponse ( ) { list ( $ header , $ data ) = preg_split ( "/\r\n\r\n|\n\n|\r\r/" , $ this -> response , 2 ) ; $ headers = preg_split ( "/\r\n|\n|\r/" , $ header ) ; $ status = explode ( ' ' , trim ( reset ( $ headers ) ) , 3 ) ; $ result = array ( 'status' => '' , 'http' => $ status [ 0 ] , 'code' => $ status [ 1 ] ) ; if ( isset ( $ status [ 2 ] ) ) { $ result [ 'status' ] = $ status [ 2 ] ; } return array ( 'data' => $ data , 'status' => $ result ) ; }
docstring: Returns an array of formatted response
  @return array
docstring_tokens: Returns an array of formatted response