Completed
Pull Request — master (#3)
by Michael
03:45
created
class/uploader.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -348,6 +348,7 @@
 block discarded – undo
348 348
 	/**
349 349
 	* Copy the file to its destination
350 350
 	*
351
+	* @param integer $chmod
351 352
 	* @return  bool
352 353
 	**/
353 354
 	function _copyFile($chmod) {
Please login to merge, or discard this patch.
phpsecinfo/PhpSecInfo/PhpSecInfo.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -522,6 +522,7 @@
 block discarded – undo
522 522
 	/**
523 523
 	 * A very, very simple "view" system
524 524
 	 *
525
+	 * @param string $view_name
525 526
 	 */
526 527
 	function loadView($view_name, $data=null) {
527 528
 		if ($data != null) {
Please login to merge, or discard this patch.
phpsecinfo/PhpSecInfo/Test/Session/save_path.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 	 * We are disabling this function on Windows OSes right now until
50 50
 	 * we can be certain of the proper way to check world-readability
51 51
 	 *
52
-	 * @return unknown
52
+	 * @return boolean
53 53
 	 */
54 54
 	function isTestable() {
55 55
 		if ($this->osIsWindows()) {
Please login to merge, or discard this patch.
phpsecinfo/PhpSecInfo/Test/Test.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@
 block discarded – undo
293 293
 	 *
294 294
 	 * @see PHPSECINFO_TEST_MOREINFO_BASEURL
295 295
 	 *
296
-	 * @return string|boolean
296
+	 * @return string|false
297 297
 	 */
298 298
 	function getMoreInfoURL() {
299 299
 		if ($tn = $this->getTestName()) {
Please login to merge, or discard this patch.
phpsysinfo/includes/class.CommonFunctions.inc.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      * Then it will terminate the script.
414 414
      * See bug #1787137
415 415
      *
416
-     * @param array $arrExt additional extensions for which a check should run
416
+     * @param string[] $arrExt additional extensions for which a check should run
417 417
      *
418 418
      * @return void
419 419
      */
@@ -454,6 +454,8 @@  discard block
 block discarded – undo
454 454
      * @param string  &$out    target string for the output message (reference)
455 455
      * @param string  &$err    target string for the error message (reference)
456 456
      * @param integer $timeout timeout value in seconds (default value is 30)
457
+     * @param string $out
458
+     * @param string $err
457 459
      *
458 460
      * @return void
459 461
      */
@@ -500,7 +502,7 @@  discard block
 block discarded – undo
500 502
      *
501 503
      * @param $wmi holds the COM object that we pull the WMI data from
502 504
      * @param string $strClass name of the class where the values are stored
503
-     * @param array  $strValue filter out only needed values, if not set all values of the class are returned
505
+     * @param string[]  $strValue filter out only needed values, if not set all values of the class are returned
504 506
      *
505 507
      * @return array content of the class stored in an array
506 508
      */
Please login to merge, or discard this patch.
phpsysinfo/includes/class.Parser.inc.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * parsing the output of lspci command
30 30
      *
31
+     * @param boolean $debug
31 32
      * @return Array
32 33
      */
33 34
     public static function lspci($debug = PSI_DEBUG)
Please login to merge, or discard this patch.
phpsysinfo/includes/js/class.JavaScriptPacker.inc.php 1 patch
Doc Comments   +38 added lines patch added patch discarded remove patch
@@ -108,6 +108,10 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
     // apply all parsing routines
111
+
112
+    /**
113
+     * @param string $script
114
+     */
111 115
     private function _pack($script)
112 116
     {
113 117
         for ($i = 0; isset($this->_parsers[$i]); $i++) {
@@ -119,6 +123,10 @@  discard block
 block discarded – undo
119 123
 
120 124
     // keep a list of parsing functions, they'll be executed all at once
121 125
     private $_parsers = array();
126
+
127
+    /**
128
+     * @param string $parser
129
+     */
122 130
     private function _addParser($parser)
123 131
     {
124 132
         $this->_parsers[] = $parser;
@@ -209,6 +217,10 @@  discard block
 block discarded – undo
209 217
         }
210 218
     }
211 219
 
220
+    /**
221
+     * @param string $regexp
222
+     * @param string $encode
223
+     */
212 224
     private function _analyze($script, $regexp, $encode)
213 225
     {
214 226
         // analyse
@@ -382,6 +394,10 @@  discard block
 block discarded – undo
382 394
     }
383 395
 
384 396
     // mmm.. ..which one do i need ??
397
+
398
+    /**
399
+     * @param integer $ascii
400
+     */
385 401
     private function _getEncoder($ascii)
386 402
     {
387 403
         return $ascii > 10 ? $ascii > 36 ? $ascii > 62 ?
@@ -429,6 +445,9 @@  discard block
 block discarded – undo
429 445
         return $res . chr(($charCode % $this->_encoding) + 161);
430 446
     }
431 447
 
448
+    /**
449
+     * @param string $string
450
+     */
432 451
     private function _safeRegExp($string)
433 452
     {
434 453
         return '/'.preg_replace('/\$/', '\\\$', $string).'/';
@@ -459,6 +478,9 @@  discard block
 block discarded – undo
459 478
         return '\x'.((string) dechex(ord($match)));
460 479
     }
461 480
 
481
+    /**
482
+     * @param string $aName
483
+     */
462 484
     private function _getJSFunction($aName)
463 485
     {
464 486
         if (defined('self::JSFUNCTION'.$aName))
@@ -584,6 +606,9 @@  discard block
 block discarded – undo
584 606
     private $QUOTE = '/\'/';
585 607
     private $DELETED = '/\\x01[^\\x01]*\\x01/';//g
586 608
 
609
+    /**
610
+     * @param string $expression
611
+     */
587 612
     public function add($expression, $replacement = '')
588 613
     {
589 614
         // count the number of sub-expressions
@@ -728,6 +753,10 @@  discard block
 block discarded – undo
728 753
     private $buffer;
729 754
 
730 755
     // encode escaped characters
756
+
757
+    /**
758
+     * @param string $escapeChar
759
+     */
731 760
     private function _escape($string, $escapeChar)
732 761
     {
733 762
         if ($escapeChar) {
@@ -751,6 +780,10 @@  discard block
 block discarded – undo
751 780
     }
752 781
 
753 782
     // decode escaped characters
783
+
784
+    /**
785
+     * @param string $escapeChar
786
+     */
754 787
     private function _unescape($string, $escapeChar)
755 788
     {
756 789
         if ($escapeChar) {
@@ -781,6 +814,11 @@  discard block
 block discarded – undo
781 814
         return $this->buffer['escapeChar'] . $temp;
782 815
     }
783 816
 
817
+    /**
818
+     * @param string $string
819
+     *
820
+     * @return string
821
+     */
784 822
     private function _internalEscape($string)
785 823
     {
786 824
         return preg_replace($this->ESCAPE, '', $string);
Please login to merge, or discard this patch.
phpsysinfo/includes/output/class.Template.inc.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -55,6 +55,7 @@
 block discarded – undo
55 55
      *
56 56
      * @param string variable name
57 57
      * @param string variable value
58
+     * @param string $name
58 59
      */
59 60
     public function set($name, $value)
60 61
     {
Please login to merge, or discard this patch.
phpsysinfo/includes/to/class.System.inc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
     /**
646 646
      * Sets $_machine.
647 647
      *
648
-     * @param Interger $machine machine
648
+     * @param string $machine machine
649 649
      *
650 650
      * @see System::$_machine
651 651
      *
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
     /**
724 724
      * Sets $_cpus.
725 725
      *
726
-     * @param Cpu $cpus cpu device
726
+     * @param CpuDevice $cpus cpu device
727 727
      *
728 728
      * @see System::$_cpus
729 729
      * @see CpuDevice
Please login to merge, or discard this patch.