Completed
Push — 14.2 ( e07840...cec2da )
by Ralf
83:18 queued 52:04
created
phpgwapi/inc/min/lib/JSMinPlus.php 1 patch
Doc Comments   +35 added lines patch added patch discarded remove patch
@@ -206,6 +206,9 @@  discard block
 block discarded – undo
206 206
 		return $instance->min($js, $filename);
207 207
 	}
208 208
 
209
+	/**
210
+	 * @param string $filename
211
+	 */
209 212
 	private function min($js, $filename)
210 213
 	{
211 214
 		try
@@ -221,6 +224,9 @@  discard block
 block discarded – undo
221 224
 		return false;
222 225
 	}
223 226
 
227
+	/**
228
+	 * @param JSNode $n
229
+	 */
224 230
 	public function parseTree($n, $noBlockGrouping = false)
225 231
 	{
226 232
 		$s = '';
@@ -659,6 +665,9 @@  discard block
 block discarded – undo
659 665
 		return $s;
660 666
 	}
661 667
 
668
+	/**
669
+	 * @param string $string
670
+	 */
662 671
 	private function isValidIdentifier($string)
663 672
 	{
664 673
 		return preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', $string) && !in_array($string, $this->reserved);
@@ -723,12 +732,18 @@  discard block
 block discarded – undo
723 732
 		TOKEN_CONDCOMMENT_START => 1, TOKEN_CONDCOMMENT_END => 1
724 733
 	);
725 734
 
735
+	/**
736
+	 * @param JSMinPlus $minifier
737
+	 */
726 738
 	public function __construct($minifier=null)
727 739
 	{
728 740
 		$this->minifier = $minifier;
729 741
 		$this->t = new JSTokenizer();
730 742
 	}
731 743
 
744
+	/**
745
+	 * @param integer $l
746
+	 */
732 747
 	public function parse($s, $f, $l)
733 748
 	{
734 749
 		// initialize tokenizer
@@ -742,6 +757,9 @@  discard block
 block discarded – undo
742 757
 		return $n;
743 758
 	}
744 759
 
760
+	/**
761
+	 * @param JSCompilerContext $x
762
+	 */
745 763
 	private function Script($x)
746 764
 	{
747 765
 		$n = $this->Statements($x);
@@ -1105,6 +1123,10 @@  discard block
 block discarded – undo
1105 1123
 		return $n;
1106 1124
 	}
1107 1125
 
1126
+	/**
1127
+	 * @param boolean $requireName
1128
+	 * @param integer $functionForm
1129
+	 */
1108 1130
 	private function FunctionDefinition($x, $requireName, $functionForm)
1109 1131
 	{
1110 1132
 		$f = new JSNode($this->t);
@@ -1571,6 +1593,10 @@  discard block
 block discarded – undo
1571 1593
 	}
1572 1594
 
1573 1595
 	// Statement stack and nested statement handler.
1596
+
1597
+	/**
1598
+	 * @param JSNode $node
1599
+	 */
1574 1600
 	private function nest($x, $node, $end = false)
1575 1601
 	{
1576 1602
 		array_push($x->stmtStack, $node);
@@ -1635,6 +1661,9 @@  discard block
 block discarded – undo
1635 1661
 	public $funDecls = array();
1636 1662
 	public $varDecls = array();
1637 1663
 
1664
+	/**
1665
+	 * @param boolean $inFunction
1666
+	 */
1638 1667
 	public function __construct($inFunction)
1639 1668
 	{
1640 1669
 		$this->inFunction = $inFunction;
@@ -1653,6 +1682,9 @@  discard block
 block discarded – undo
1653 1682
 	public $funDecls = array();
1654 1683
 	public $varDecls = array();
1655 1684
 
1685
+	/**
1686
+	 * @param JSTokenizer $t
1687
+	 */
1656 1688
 	public function __construct($t, $type=0)
1657 1689
 	{
1658 1690
 		if ($token = $t->currentToken())
@@ -1764,6 +1796,9 @@  discard block
 block discarded – undo
1764 1796
 		$this->scanOperand = true;
1765 1797
 	}
1766 1798
 
1799
+	/**
1800
+	 * @param integer|null $chunksize
1801
+	 */
1767 1802
 	public function getInput($chunksize)
1768 1803
 	{
1769 1804
 		if ($chunksize)
Please login to merge, or discard this patch.
phpgwapi/inc/min/lib/Minify.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
      *
151 151
      * Any controller options are documented in that controller's setupSources() method.
152 152
      *
153
-     * @param mixed $controller instance of subclass of Minify_Controller_Base or string
153
+     * @param string $controller instance of subclass of Minify_Controller_Base or string
154 154
      * name of controller. E.g. 'Files'
155 155
      *
156 156
      * @param array $options controller/serve options
Please login to merge, or discard this patch.
phpgwapi/inc/min/lib/Minify/ClosureCompiler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@
 block discarded – undo
81 81
         return implode("\n", $output);
82 82
     }
83 83
 
84
+    /**
85
+     * @param string $tmpFile
86
+     */
84 87
     private static function _getCmd($userOptions, $tmpFile)
85 88
     {
86 89
         $o = array_merge(
Please login to merge, or discard this patch.
phpgwapi/inc/min/lib/Minify/CSS/UriRewriter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
      *
205 205
      * @param string $path
206 206
      *
207
-     * @return mixed path with no trailing slash
207
+     * @return string path with no trailing slash
208 208
      */
209 209
     protected static function _realpath($path)
210 210
     {
Please login to merge, or discard this patch.
phpgwapi/inc/min/lib/Minify/JS/ClosureCompiler.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@  discard block
 block discarded – undo
42 42
             : array($this, '_fallback');
43 43
     }
44 44
 
45
+    /**
46
+     * @param string $js
47
+     */
45 48
     public function min($js)
46 49
     {
47 50
         $postBody = $this->_buildPostBody($js);
@@ -72,6 +75,9 @@  discard block
 block discarded – undo
72 75
 
73 76
     protected $_fallbackFunc = null;
74 77
 
78
+    /**
79
+     * @param string $postBody
80
+     */
75 81
     protected function _getResponse($postBody)
76 82
     {
77 83
         $allowUrlFopen = preg_match('/1|yes|on|true/i', ini_get('allow_url_fopen'));
Please login to merge, or discard this patch.
phpgwapi/inc/min/lib/Minify/YUICompressor.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -86,6 +86,10 @@  discard block
 block discarded – undo
86 86
         return self::_minify('css', $css, $options);
87 87
     }
88 88
 
89
+    /**
90
+     * @param string $type
91
+     * @param string $content
92
+     */
89 93
     private static function _minify($type, $content, $options)
90 94
     {
91 95
         self::_prepare();
@@ -101,6 +105,9 @@  discard block
 block discarded – undo
101 105
         return implode("\n", $output);
102 106
     }
103 107
 
108
+    /**
109
+     * @param string $tmpFile
110
+     */
104 111
     private static function _getCmd($userOptions, $type, $tmpFile)
105 112
     {
106 113
         $o = array_merge(
Please login to merge, or discard this patch.
phpgwapi/inc/savant2/Savant2.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -528,6 +528,7 @@  discard block
 block discarded – undo
528 528
 	* @access public
529 529
 	*
530 530
 	* @param string $dir The directory or stream to search.
531
+	* @param string $type
531 532
 	*
532 533
 	* @return void
533 534
 	*
@@ -576,12 +577,12 @@  discard block
 block discarded – undo
576 577
 	* 
577 578
 	* Searches a series of paths for a given file.
578 579
 	* 
579
-	* @param array $type The type of paths to search (template, plugin,
580
+	* @param string $type The type of paths to search (template, plugin,
580 581
 	* or filter).
581 582
 	* 
582 583
 	* @param string $file The file name to look for.
583 584
 	* 
584
-	* @return string|bool The full path and file name for the target file,
585
+	* @return string|false The full path and file name for the target file,
585 586
 	* or boolean false if the file is not found in any of the paths.
586 587
 	*
587 588
 	*/
Please login to merge, or discard this patch.
phpgwapi/inc/savant2/Savant2/PHPCodeAnalyzer.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -217,6 +217,7 @@
 block discarded – undo
217 217
 	/**
218 218
 	* Handle a 1 char token
219 219
 	* @access private
220
+	* @param string $token
220 221
 	*/
221 222
 	function handleSimpleToken($token)
222 223
 	{
Please login to merge, or discard this patch.
phpgwapi/inc/savant2/Savant2/Savant2_Compiler_basic.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -239,6 +239,7 @@  discard block
 block discarded – undo
239 239
 	* 
240 240
 	* @var string $tpl The source template file.
241 241
 	* 
242
+	* @param string $tpl
242 243
 	*/
243 244
 	
244 245
 	function changed($tpl)
@@ -266,6 +267,7 @@  discard block
 block discarded – undo
266 267
 	* 
267 268
 	* @var string $tpl The source template file.
268 269
 	* 
270
+	* @param string $tpl
269 271
 	*/
270 272
 	
271 273
 	function saveCompiled($tpl, $php)
@@ -289,6 +291,7 @@  discard block
 block discarded – undo
289 291
 	* 
290 292
 	* @var string $tpl The source template file.
291 293
 	* 
294
+	* @param string $tpl
292 295
 	*/
293 296
 	
294 297
 	function getPath($tpl)
@@ -397,6 +400,7 @@  discard block
 block discarded – undo
397 400
 	* 
398 401
 	* @var string $php The compiled PHP code from a template source.
399 402
 	* 
403
+	* @param string $php
400 404
 	* @return array An array of restriction violations; if empty, then
401 405
 	* there were no violations discovered by analysis.
402 406
 	* 
Please login to merge, or discard this patch.