protected function _format(array $data) {
		foreach (['id', 'rev'] as $key) {
			if (isset($data["_{$key}"])) {
				$data[$key] = $data["_{$key}"];
				unset($data["_{$key}"]);
			}
		}
		return $data;
	}
protected function _format(array $data) {
		foreach (['id', 'rev'] as $key) {
			if (isset($data["_{$key}"])) {
				$data[$key] = $data["_{$key}"];
				unset($data["_{$key}"]);
			}
		}
		return $data;
	}
protected function _format ( array $ data ) { foreach ( [ 'id' , 'rev' ] as $ key ) { if ( isset ( $ data [ "_{$key}" ] ) ) { $ data [ $ key ] = $ data [ "_{$key}" ] ; unset ( $ data [ "_{$key}" ] ) ; } } return $ data ; }
Formats a CouchDb result set into a standard result to be passed to item.

@param array $data data returned from query
@return array
Formats a CouchDb result set into a standard result to be passed to item .