Completed
Push — master ( 0dda59...7f247a )
by Peter
02:32
created
src/SphinxClient.php 1 patch
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -246,6 +246,9 @@  discard block
 block discarded – undo
246 246
 }
247 247
 
248 248
 // unpack 64-bit unsigned
249
+/**
250
+ * @param string $v
251
+ */
249 252
 function sphUnpackU64($v)
250 253
 {
251 254
     list($hi, $lo) = array_values(unpack("N*N*", $v));
@@ -312,6 +315,9 @@  discard block
 block discarded – undo
312 315
 }
313 316
 
314 317
 // unpack 64-bit signed
318
+/**
319
+ * @param string $v
320
+ */
315 321
 function sphUnpackI64($v)
316 322
 {
317 323
     list($hi, $lo) = array_values(unpack("N*N*", $v));
@@ -396,6 +402,9 @@  discard block
 block discarded – undo
396 402
     }
397 403
 }
398 404
 
405
+/**
406
+ * @param integer $bit
407
+ */
399 408
 function sphSetBit($flag, $bit, $on)
400 409
 {
401 410
     if ($on)
@@ -566,6 +575,10 @@  discard block
 block discarded – undo
566 575
     }
567 576
 
568 577
 
578
+    /**
579
+     * @param string $data
580
+     * @param integer $length
581
+     */
569 582
     function _Send($handle, $data, $length)
570 583
     {
571 584
         if (feof($handle) || fwrite($handle, $data, $length) !== $length)
@@ -669,6 +682,10 @@  discard block
 block discarded – undo
669 682
     }
670 683
 
671 684
     /// get and check response packet from searchd server
685
+
686
+    /**
687
+     * @param integer $client_ver
688
+     */
672 689
     function _GetResponse($fp, $client_ver)
673 690
     {
674 691
         $response = "";
@@ -1257,6 +1274,11 @@  discard block
 block discarded – undo
1257 1274
     }
1258 1275
 
1259 1276
     /// parse and return search query (or queries) response
1277
+
1278
+    /**
1279
+     * @param string $response
1280
+     * @param integer $nreqs
1281
+     */
1260 1282
     function _ParseSearchResponse($response, $nreqs)
1261 1283
     {
1262 1284
         $p = 0; // current position
Please login to merge, or discard this patch.