Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created
include/pclzip/pclzip.lib.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -2029,6 +2029,10 @@  discard block
 block discarded – undo
2029 2029
   // Description :
2030 2030
   // Parameters :
2031 2031
   // --------------------------------------------------------------------------------
2032
+
2033
+  /**
2034
+   * @param string $p_mode
2035
+   */
2032 2036
   function privOpenFd($p_mode)
2033 2037
   {
2034 2038
     //--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, "PclZip::privOpenFd", 'mode='.$p_mode);
@@ -4711,6 +4715,10 @@  discard block
 block discarded – undo
4711 4715
   // Parameters :
4712 4716
   // Return Values :
4713 4717
   // --------------------------------------------------------------------------------
4718
+
4719
+  /**
4720
+   * @param PclZip $p_archive_to_add
4721
+   */
4714 4722
   function privMerge(&$p_archive_to_add)
4715 4723
   {
4716 4724
     //--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, "PclZip::privMerge", "archive='".$p_archive_to_add->zipname."'");
@@ -5288,6 +5296,11 @@  discard block
 block discarded – undo
5288 5296
   //             3 : src & dest gzip
5289 5297
   // Return Values :
5290 5298
   // --------------------------------------------------------------------------------
5299
+
5300
+  /**
5301
+   * @param integer $p_src
5302
+   * @param integer $p_dest
5303
+   */
5291 5304
   function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0)
5292 5305
   {
5293 5306
     //--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, "PclZipUtilCopyBlock", "size=$p_size, mode=$p_mode");
@@ -5360,6 +5373,11 @@  discard block
 block discarded – undo
5360 5373
   // Return Values :
5361 5374
   //   1 on success, 0 on failure.
5362 5375
   // --------------------------------------------------------------------------------
5376
+
5377
+  /**
5378
+   * @param string $p_src
5379
+   * @param string $p_dest
5380
+   */
5363 5381
   function PclZipUtilRename($p_src, $p_dest)
5364 5382
   {
5365 5383
     //--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, "PclZipUtilRename", "source=$p_src, destination=$p_dest");
Please login to merge, or discard this patch.
include/Pear/XML_HTMLSax3/HTMLSax3.php 1 patch
Doc Comments   +13 added lines, -4 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     /**
191 191
     * Returns the next character from the XML document or void if at end
192 192
     * @access protected
193
-    * @return mixed
193
+    * @return string|null
194 194
     */
195 195
     function scanCharacter() {
196 196
         if ($this->position < $this->length) {
@@ -326,6 +326,7 @@  discard block
 block discarded – undo
326 326
     * parser options
327 327
     * @var XML_HTMLSax3 instance of user front end class
328 328
     * @access protected
329
+    * @param XML_HTMLSax3 $htmlsax
329 330
     */
330 331
     function XML_HTMLSax3_StateParser_Lt430(& $htmlsax) {
331 332
         parent::XML_HTMLSax3_StateParser($htmlsax);
@@ -390,6 +391,7 @@  discard block
 block discarded – undo
390 391
     * parser options
391 392
     * @var XML_HTMLSax3 instance of user front end class
392 393
     * @access protected
394
+    * @param XML_HTMLSax3 $htmlsax
393 395
     */
394 396
     function XML_HTMLSax3_StateParser_Gtet430(& $htmlsax) {
395 397
         parent::XML_HTMLSax3_StateParser($htmlsax);
@@ -499,9 +501,9 @@  discard block
 block discarded – undo
499 501
     /**
500 502
     * Sets the user defined handler object. Returns a PEAR Error
501 503
     * if supplied argument is not an object.
502
-    * @param object handler object containing SAX callback methods
504
+    * @param object XML_HTMLSax3_NullHandler object containing SAX callback methods
503 505
     * @access public
504
-    * @return mixed
506
+    * @return boolean|null
505 507
     */
506 508
     function set_object(&$object) {
507 509
         if ( is_object($object) ) {
@@ -537,8 +539,9 @@  discard block
 block discarded – undo
537 539
     * XML_OPTION_ENTITIES_PARSED and XML_OPTION_CASE_FOLDING
538 540
     * @param string name of parser option
539 541
     * @param int (optional) 1 to switch on, 0 for off
542
+    * @param string $name
540 543
     * @access public
541
-    * @return boolean
544
+    * @return boolean|null
542 545
     */
543 546
     function set_option($name, $value=1) {
544 547
         if ( array_key_exists($name,$this->state_parser->parser_options) ) {
@@ -559,6 +562,7 @@  discard block
 block discarded – undo
559 562
     * function myDataHander(& $parser,$data){}
560 563
     * </pre>
561 564
     * @param string name of method
565
+    * @param string $data_method
562 566
     * @access public
563 567
     * @return void
564 568
     * @see set_object
@@ -582,6 +586,8 @@  discard block
 block discarded – undo
582 586
     * </pre>
583 587
     * @param string name of open method
584 588
     * @param string name of close method
589
+    * @param string $opening_method
590
+    * @param string $closing_method
585 591
     * @access public
586 592
     * @return void
587 593
     * @see set_object
@@ -601,6 +607,7 @@  discard block
 block discarded – undo
601 607
     * function myPIHander(& $parser,$target, $data){}
602 608
     * </pre>
603 609
     * @param string name of method
610
+    * @param string $pi_method
604 611
     * @access public
605 612
     * @return void
606 613
     * @see set_object
@@ -619,6 +626,7 @@  discard block
 block discarded – undo
619 626
     * function myEscapeHander(& $parser, $data){}
620 627
     * </pre>
621 628
     * @param string name of method
629
+    * @param string $escape_method
622 630
     * @access public
623 631
     * @return void
624 632
     * @see set_object
@@ -636,6 +644,7 @@  discard block
 block discarded – undo
636 644
     * function myJaspHander(& $parser, $data){}
637 645
     * </pre>
638 646
     * @param string name of method
647
+    * @param string $jasp_method
639 648
     * @access public
640 649
     * @return void
641 650
     * @see set_object
Please login to merge, or discard this patch.
include/Pear/XML_HTMLSax3/HTMLSax3/States.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 class XML_HTMLSax3_StartingState  {
46 46
     /**
47 47
     * @param XML_HTMLSax3_StateParser subclass
48
-    * @return constant XML_HTMLSAX3_STATE_TAG
48
+    * @return integer XML_HTMLSAX3_STATE_TAG
49 49
     * @access protected
50 50
     */
51 51
     function parse(&$context) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 class XML_HTMLSax3_TagState {
67 67
     /**
68 68
     * @param XML_HTMLSax3_StateParser subclass
69
-    * @return constant the next state to move into
69
+    * @return integer|null the next state to move into
70 70
     * @access protected
71 71
     */
72 72
     function parse(&$context) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 class XML_HTMLSax3_ClosingTagState {
98 98
     /**
99 99
     * @param XML_HTMLSax3_StateParser subclass
100
-    * @return constant XML_HTMLSAX3_STATE_START
100
+    * @return integer XML_HTMLSAX3_STATE_START
101 101
     * @access protected
102 102
     */
103 103
     function parse(&$context) {
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
     /**
169 169
     * @param XML_HTMLSax3_StateParser subclass
170
-    * @return constant XML_HTMLSAX3_STATE_START
170
+    * @return integer XML_HTMLSAX3_STATE_START
171 171
     * @access protected
172 172
     */
173 173
     function parse(&$context) {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 class XML_HTMLSax3_EscapeState {
206 206
     /**
207 207
     * @param XML_HTMLSax3_StateParser subclass
208
-    * @return constant XML_HTMLSAX3_STATE_START
208
+    * @return integer XML_HTMLSAX3_STATE_START
209 209
     * @access protected
210 210
     */
211 211
     function parse(&$context) {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 class XML_HTMLSax3_JaspState {
248 248
     /**
249 249
     * @param XML_HTMLSax3_StateParser subclass
250
-    * @return constant XML_HTMLSAX3_STATE_START
250
+    * @return integer XML_HTMLSAX3_STATE_START
251 251
     * @access protected
252 252
     */
253 253
     function parse(&$context) {
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 class XML_HTMLSax3_PiState {
270 270
     /**
271 271
     * @param XML_HTMLSax3_StateParser subclass
272
-    * @return constant XML_HTMLSAX3_STATE_START
272
+    * @return integer XML_HTMLSAX3_STATE_START
273 273
     * @access protected
274 274
     */
275 275
     function parse(&$context) {
Please login to merge, or discard this patch.
include/phpmailer/class.smtp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -954,7 +954,7 @@
 block discarded – undo
954 954
      * Send raw data to the server.
955 955
      * @param string $data The data to send
956 956
      * @access public
957
-     * @return integer|boolean The number of bytes sent to the server or false on error
957
+     * @return integer The number of bytes sent to the server or false on error
958 958
      */
959 959
     public function client_send($data)
960 960
     {
Please login to merge, or discard this patch.
include/phpmailer/extras/htmlfilter.php 1 patch
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -665,6 +665,12 @@  discard block
 block discarded – undo
665 665
     }
666 666
 }
667 667
 
668
+/**
669
+ * @param string $body
670
+ * @param integer $pos
671
+ * @param string $trans_image_path
672
+ * @param boolean $block_external_images
673
+ */
668 674
 function tln_fixstyle($body, $pos, $trans_image_path, $block_external_images)
669 675
 {
670 676
     $me = 'tln_fixstyle';
@@ -794,6 +800,9 @@  discard block
 block discarded – undo
794 800
     return array($content, $newpos);
795 801
 }
796 802
 
803
+/**
804
+ * @param string $trans_image_path
805
+ */
797 806
 function tln_body2div($attary, $trans_image_path)
798 807
 {
799 808
     $me = 'tln_body2div';
@@ -835,8 +844,8 @@  discard block
 block discarded – undo
835 844
  *
836 845
  * @param string $body                    The HTML you wish to filter
837 846
  * @param array $tag_list                see description above
838
- * @param array $rm_tags_with_content see description above
839
- * @param array $self_closing_tags    see description above
847
+ * @param string[] $rm_tags_with_content see description above
848
+ * @param string[] $self_closing_tags    see description above
840 849
  * @param boolean $force_tag_closing    see description above
841 850
  * @param array $rm_attnames            see description above
842 851
  * @param array $bad_attvals            see description above
Please login to merge, or discard this patch.
include/reCaptcha/recaptchalib.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -213,6 +213,9 @@  discard block
 block discarded – undo
213 213
 
214 214
 /* Mailhide related code */
215 215
 
216
+/**
217
+ * @param string $ky
218
+ */
216 219
 function _recaptcha_aes_encrypt($val,$ky) {
217 220
 	if (! function_exists ("mcrypt_encrypt")) {
218 221
 		die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
@@ -224,6 +227,9 @@  discard block
 block discarded – undo
224 227
 }
225 228
 
226 229
 
230
+/**
231
+ * @param null|string $x
232
+ */
227 233
 function _recaptcha_mailhide_urlbase64 ($x) {
228 234
 	return strtr(base64_encode ($x), '+/', '-_');
229 235
 }
Please login to merge, or discard this patch.
include/SearchForm/SearchForm.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -631,6 +631,7 @@
 block discarded – undo
631 631
      *
632 632
      * @param bool $header display this with headers
633 633
      * @param bool $return echo or return the html
634
+     * @param ListViewSmarty $lv
634 635
      *
635 636
      * @return string html of contents
636 637
      */
Please login to merge, or discard this patch.
include/Smarty/Config_File.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      * Get all global or section variable names.
190 190
      *
191 191
      * @param string $file_name config file to get info for
192
-     * @param string $section_name (optional) section to get info for
192
+     * @param string $section (optional) section to get info for
193 193
      * @return array an array of variables names from the specified file/section
194 194
      */
195 195
     function get_var_names($file_name, $section = NULL)
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
     /**
343 343
      * @param array &$container
344 344
      * @param string $var_name
345
-     * @param mixed $var_value
345
+     * @param string $var_value
346 346
      * @param boolean $booleanize determines whether $var_value is converted to
347 347
      *                            to true/false
348 348
      */
Please login to merge, or discard this patch.
include/Smarty/internals/core.assemble_plugin_filepath.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
 /**
9 9
  * assemble filepath of requested plugin
10 10
  *
11
- * @param string $type
12
- * @param string $name
11
+ * @param Smarty $smarty
13 12
  * @return string|false
14 13
  */
15 14
 function smarty_core_assemble_plugin_filepath($params, &$smarty)
Please login to merge, or discard this patch.