Completed
Push — master ( b7b153...3167db )
by Gaetano
07:37
created
src/Server.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -348,7 +348,8 @@
 block discarded – undo
348 348
     /**
349 349
      * Parse http headers received along with xmlrpc request. If needed, inflate request.
350 350
      *
351
-     * @return mixed Response|null on success or an error Response
351
+     * @param string $data
352
+     * @return Response|null Response|null on success or an error Response
352 353
      */
353 354
     protected function parseRequestHeaders(&$data, &$reqEncoding, &$respEncoding, &$respCompression)
354 355
     {
Please login to merge, or discard this patch.
tests/1ParsingBugsTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@
 block discarded – undo
33 33
         }
34 34
     }
35 35
 
36
+    /**
37
+     * @param string $methodName
38
+     */
36 39
     protected function newMsg($methodName, $params = array())
37 40
     {
38 41
         $msg = new xmlrpcmsg($methodName, $params);
Please login to merge, or discard this patch.
lib/xmlrpc.inc 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -168,6 +168,9 @@  discard block
 block discarded – undo
168 168
     return PhpXmlRpc\Helper\Charset::instance()->encodeEntitites($data, $srcEncoding, $destEncoding);
169 169
 }
170 170
 
171
+/**
172
+ * @param integer $timeT
173
+ */
171 174
 function iso8601_encode($timeT, $utc=0)
172 175
 {
173 176
     return PhpXmlRpc\Helper\Date::iso8601Encode($timeT, $utc);
@@ -195,6 +198,9 @@  discard block
 block discarded – undo
195 198
     return $encoder->encode($phpVal, $options);
196 199
 }
197 200
 
201
+/**
202
+ * @param string $xmlVal
203
+ */
198 204
 function php_xmlrpc_decode_xml($xmlVal, $options=array())
199 205
 {
200 206
     $encoder = new PhpXmlRpc\Encoder();
Please login to merge, or discard this patch.
lib/xmlrpc_wrappers.inc 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
  * @see PhpXmlRpc\Wrapper::wrapXmlrpcMethod
88 88
  * @param xmlrpc_client $client
89 89
  * @param string $methodName
90
- * @param int|array $extraOptions the usage of an int as signature number is deprecated, use an option in $extraOptions
90
+ * @param integer $extraOptions the usage of an int as signature number is deprecated, use an option in $extraOptions
91 91
  * @param int $timeout            deprecated, use an option in $extraOptions
92 92
  * @param string $protocol        deprecated, use an option in $extraOptions
93 93
  * @param string $newFuncName     deprecated, use an option in $extraOptions
@@ -217,6 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
 /**
219 219
  * @deprecated
220
+ * @param integer $verbatim_client_copy
220 221
  */
221 222
 function build_client_wrapper_code($client, $verbatim_client_copy, $prefix='xmlrpc')
222 223
 {
Please login to merge, or discard this patch.
src/Value.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * When no value or type is passed in, the value is left uninitialized, and the value can be added later.
48 48
      *
49
-     * @param mixed $val if passing in an array, all array elements should be PhpXmlRpc\Value themselves
49
+     * @param integer $val if passing in an array, all array elements should be PhpXmlRpc\Value themselves
50 50
      * @param string $type any valid xmlrpc type name (lowercase): i4, int, boolean, string, double, dateTime.iso8601,
51 51
      *                     base64, array, struct, null.
52 52
      *                     If null, 'string' is assumed.
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * If the xmlrpc value is empty (uninitialized), this method makes it a scalar value, and sets that value.
96 96
      * Fails if the xmlrpc value is not an array and already initialized.
97 97
      *
98
-     * @param mixed $val
98
+     * @param string $val
99 99
      * @param string $type allowed values: i4, i8, int, boolean, string, double, dateTime.iso8601, base64, null.
100 100
      *
101 101
      * @return int 1 or 0 on failure
Please login to merge, or discard this patch.
tests/3LocalhostTest.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
     /**
116 116
      * @param PhpXmlRpc\Request|array $msg
117
-     * @param int|array $errorCode
117
+     * @param integer $errorCode
118 118
      * @param bool $returnResponse
119 119
      * @return mixed|\PhpXmlRpc\Response|\PhpXmlRpc\Response[]|\PhpXmlRpc\Value|string|null
120 120
      */
@@ -431,6 +431,10 @@  discard block
 block discarded – undo
431 431
         }
432 432
     }
433 433
 
434
+    /**
435
+     * @param string $method
436
+     * @param PhpXmlRpc\Value[] $params
437
+     */
434 438
     public function _multicall_msg($method, $params)
435 439
     {
436 440
         $struct['methodName'] = new xmlrpcval($method, 'string');
Please login to merge, or discard this patch.
src/Wrapper.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      * @todo validate params? In theory all validation is left to the dispatch map...
394 394
      * @todo add support for $catchWarnings
395 395
      *
396
-     * @param $callable
396
+     * @param callable $callable
397 397
      * @param array $extraOptions
398 398
      * @param string $plainFuncName
399 399
      * @param array $funcDesc
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 
460 460
     /**
461 461
      * Return a name for a new function, based on $callable, insuring its uniqueness
462
-     * @param mixed $callable a php callable, or the name of an xmlrpc method
462
+     * @param callable $callable a php callable, or the name of an xmlrpc method
463 463
      * @param string $newFuncName when not empty, it is used instead of the calculated version
464 464
      * @return string
465 465
      */
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
     }
498 498
 
499 499
     /**
500
-     * @param $callable
500
+     * @param callable $callable
501 501
      * @param string $newFuncName
502 502
      * @param array $extraOptions
503 503
      * @param string $plainFuncName
Please login to merge, or discard this patch.
src/Helper/XMLParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     protected $maxChunkLength = 4194304;
76 76
 
77 77
     /**
78
-     * @param array $options passed to the xml parser
78
+     * @param string[] $options passed to the xml parser
79 79
      */
80 80
     public function __construct(array $options = array())
81 81
     {
Please login to merge, or discard this patch.