Completed
Push — master ( 1af071...2b85d3 )
by Peter
02:29
created
src/SphinxClient.php 2 patches
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.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
 			$this->_mbenc = mb_internal_encoding();
589 589
 			mb_internal_encoding ( "latin1" );
590 590
 		}
591
-    }
591
+	}
592 592
 
593 593
 	/// leave mbstring workaround mode
594 594
 	function _MBPop ()
@@ -1037,9 +1037,9 @@  discard block
 block discarded – undo
1037 1037
 
1038 1038
 	/// clear all attribute value overrides (for multi-queries)
1039 1039
 	function ResetOverrides ()
1040
-    {
1041
-    	$this->_overrides = array ();
1042
-    }
1040
+	{
1041
+		$this->_overrides = array ();
1042
+	}
1043 1043
 	
1044 1044
 	function ResetQueryFlag ()
1045 1045
 	{
@@ -1772,7 +1772,7 @@  discard block
 block discarded – undo
1772 1772
 
1773 1773
 	function Status ($session=false)
1774 1774
 	{
1775
-        assert ( is_bool($session) );
1775
+		assert ( is_bool($session) );
1776 1776
 
1777 1777
 		$this->_MBPush ();
1778 1778
 		if (!( $fp = $this->_Connect() ))
Please login to merge, or discard this patch.