Index: client/pifr_client.xmlrpc.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue_file_review/client/pifr_client.xmlrpc.inc,v
retrieving revision 1.5
diff -u -r1.5 pifr_client.xmlrpc.inc
--- client/pifr_client.xmlrpc.inc	9 Jul 2009 01:39:47 -0000	1.5
+++ client/pifr_client.xmlrpc.inc	28 Oct 2009 04:25:21 -0000
@@ -1,5 +1,6 @@
 <?php
 // $Id: pifr_client.xmlrpc.inc,v 1.5 2009/07/09 01:39:47 boombatower Exp $
+
 /**
  * @file
  * Provide XML-RPC callbacks and invoke functions.
@@ -20,7 +21,7 @@
 /**
  * Request the next test from the server.
  *
- * @return mixed Test array of FALSE.
+ * @return array Test array, or FALSE.
  */
 function pifr_client_xmlrpc_request_next() {
   $response = xmlrpc(PIFR_CLIENT_SERVER . 'xmlrpc.php', 'pifr.next', PIFR_CLIENT_KEY);
@@ -40,11 +41,17 @@
   }
 
   watchdog('pifr_client', 'Test request successfull, received: (t: @test_id).', array('@test_id' => $response['test_id']));
-  watchdog('pifr_client', 'XML-RPC pifr.next() response: '. var_export($response, TRUE));
+  pifr_debug('XML-RPC pifr.next() response: '. var_export($response, TRUE));
 
   return $response;
 }
 
+/**
+ * Send the results of review to the server.
+ *
+ * @param array $result Result information.
+ * @return boolean TRUE if succesful, otherwise FALSE.
+ */
 function pifr_client_xmlrpc_send_result(array $result) {
   $response = xmlrpc(PIFR_CLIENT_SERVER . 'xmlrpc.php', 'pifr.result', PIFR_CLIENT_KEY, $result);
 
@@ -59,7 +66,7 @@
   }
 
   watchdog('pifr_client', 'Test results successfull sent: (t: @test_id).', array('@test_id' => $result['test_id']));
-  watchdog('pifr_client', 'XML-RPC pifr.result() response: '. var_export($response, TRUE));
+  pifr_debug('XML-RPC pifr.result() response: '. var_export($response, TRUE));
 
   return TRUE;
 }
