Code Duplication    Length = 5-5 lines in 2 locations

src/wp-includes/class-wp-http-ixr-client.php 1 location

@@ 109-113 (lines=5) @@
106
107
		// Now parse what we've got back
108
		$this->message = new IXR_Message( wp_remote_retrieve_body( $response ) );
109
		if ( ! $this->message->parse() ) {
110
			// XML error
111
			$this->error = new IXR_Error(-32700, 'parse error. not well formed');
112
			return false;
113
		}
114
115
		// Is the message a fault?
116
		if ( $this->message->messageType == 'fault' ) {

src/wp-includes/IXR/class-IXR-client.php 1 location

@@ 130-134 (lines=5) @@
127
128
        // Now parse what we've got back
129
        $this->message = new IXR_Message($contents);
130
        if (!$this->message->parse()) {
131
            // XML error
132
            $this->error = new IXR_Error(-32700, 'parse error. not well formed');
133
            return false;
134
        }
135
136
        // Is the message a fault?
137
        if ($this->message->messageType == 'fault') {