Completed
Push — prado-3.3 ( f4da81...5dd4b5 )
by Fabio
09:03
created
framework/Security/TUser.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -73,6 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 	/**
75 75
 	 * @param string username
76
+	 * @param string $value
76 77
 	 */
77 78
 	public function setName($value)
78 79
 	{
@@ -89,6 +90,7 @@  discard block
 block discarded – undo
89 90
 
90 91
 	/**
91 92
 	 * @param boolean if the user is a guest
93
+	 * @param boolean $value
92 94
 	 */
93 95
 	public function setIsGuest($value)
94 96
 	{
@@ -170,6 +172,7 @@  discard block
 block discarded – undo
170 172
 	 *
171 173
 	 * @param string variable name
172 174
 	 * @param mixed default value
175
+	 * @param string $key
173 176
 	 * @return mixed the value of the variable. If it doesn't exist, the provided default value will be returned
174 177
 	 * @see setState
175 178
 	 */
@@ -190,6 +193,7 @@  discard block
 block discarded – undo
190 193
 	 * @param string variable name
191 194
 	 * @param mixed variable value
192 195
 	 * @param mixed default value. If $value===$defaultValue, the variable will be removed from persistent storage.
196
+	 * @param string $key
193 197
 	 * @see getState
194 198
 	 */
195 199
 	protected function setState($key,$value,$defaultValue=null)
Please login to merge, or discard this patch.
framework/TApplicationComponent.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
 	 *
93 93
 	 * @param string path of the asset that is relative to the directory containing the specified class file.
94 94
 	 * @param string name of the class whose containing directory will be prepend to the asset path. If null, it means get_class($this).
95
+	 * @param string $assetPath
95 96
 	 * @return string URL to the asset path.
96 97
 	 */
97 98
 	public function publishAsset($assetPath,$className=null)
@@ -106,6 +107,7 @@  discard block
 block discarded – undo
106 107
 	/**
107 108
 	 * Publishes a file or directory and returns its URL.
108 109
 	 * @param string absolute path of the file or directory to be published
110
+	 * @param string $fullPath
109 111
 	 * @return string URL to the published file or directory
110 112
 	 */
111 113
 	public function publishFilePath($fullPath, $checkTimestamp=false)
Please login to merge, or discard this patch.
framework/TComponent.php 1 patch
Doc Comments   +14 added lines, -2 removed lines patch added patch discarded remove patch
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 	 * </code>
407 407
 	 * to be executed when listen is called.  All attached behaviors are notified through dyListen.
408 408
 	 *
409
-	 * @return numeric the number of global events that were registered to the global event registry
409
+	 * @return null|integer the number of global events that were registered to the global event registry
410 410
 	 */
411 411
 	public function listen() {
412 412
 		if($this->_listeningenabled)
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 	 * </code>
441 441
 	 * to be executed when listen is called.  All attached behaviors are notified through dyUnlisten.
442 442
 	 *
443
-	 * @return numeric the number of global events that were unregistered from the global event registry
443
+	 * @return null|integer the number of global events that were unregistered from the global event registry
444 444
 	 */
445 445
 	public function unlisten() {
446 446
 		if(!$this->_listeningenabled)
@@ -774,6 +774,7 @@  discard block
 block discarded – undo
774 774
 	 * A property is defined if there is a getter or setter method
775 775
 	 * defined in the class. Note, property names are case-insensitive.
776 776
 	 * @param string the property name
777
+	 * @param string $name
777 778
 	 * @return boolean whether the property is defined
778 779
 	 */
779 780
 	public function hasProperty($name)
@@ -2100,6 +2101,9 @@  discard block
 block discarded – undo
2100 2101
 		$this->reflect();
2101 2102
 	}
2102 2103
 
2104
+	/**
2105
+	 * @param ReflectionMethod $method
2106
+	 */
2103 2107
 	private function isPropertyMethod($method)
2104 2108
 	{
2105 2109
 		$methodName=$method->getName();
@@ -2108,6 +2112,9 @@  discard block
 block discarded – undo
2108 2112
 				&& isset($methodName[3]);
2109 2113
 	}
2110 2114
 
2115
+	/**
2116
+	 * @param ReflectionMethod $method
2117
+	 */
2111 2118
 	private function isEventMethod($method)
2112 2119
 	{
2113 2120
 		$methodName=$method->getName();
@@ -2254,11 +2261,14 @@  discard block
 block discarded – undo
2254 2261
 	/**
2255 2262
 	 * Attaches the behavior object to the component.
2256 2263
 	 * @param CComponent the component that this behavior is to be attached to.
2264
+	 * @param TComponent $component
2265
+	 * @return void
2257 2266
 	 */
2258 2267
 	public function attach($component);
2259 2268
 	/**
2260 2269
 	 * Detaches the behavior object from the component.
2261 2270
 	 * @param CComponent the component that this behavior is to be detached from.
2271
+	 * @return void
2262 2272
 	 */
2263 2273
 	public function detach($component);
2264 2274
 }
@@ -2283,6 +2293,8 @@  discard block
 block discarded – undo
2283 2293
 	public function getEnabled();
2284 2294
 	/**
2285 2295
 	 * @param boolean whether this behavior is enabled
2296
+	 * @param boolean $value
2297
+	 * @return void
2286 2298
 	 */
2287 2299
 	public function setEnabled($value);
2288 2300
 }
Please login to merge, or discard this patch.
framework/Util/TSimpleDateFormatter.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -93,6 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
 	/**
95 95
 	 * @param string formatting charset.
96
+	 * @param string $charset
96 97
 	 */
97 98
 	public function setCharset($charset)
98 99
 	{
@@ -313,6 +314,7 @@  discard block
 block discarded – undo
313 314
 
314 315
 	/**
315 316
 	 * Calculate the length of a string, may be consider iconv_strlen?
317
+	 * @param string $string
316 318
 	 */
317 319
 	private function length($string)
318 320
 	{
@@ -338,6 +340,9 @@  discard block
 block discarded – undo
338 340
 
339 341
 	/**
340 342
 	 * Returns true if char at position equals a particular char.
343
+	 * @param string $string
344
+	 * @param integer $pos
345
+	 * @param string $char
341 346
 	 */
342 347
 	private function charEqual($string, $pos, $char)
343 348
 	{
@@ -350,6 +355,10 @@  discard block
 block discarded – undo
350 355
 	 * @param int starting position
351 356
 	 * @param int minimum integer length
352 357
 	 * @param int maximum integer length
358
+	 * @param string $str
359
+	 * @param integer $i
360
+	 * @param integer|null $minlength
361
+	 * @param integer|null $maxlength
353 362
 	 * @return string integer portion of the string, null otherwise
354 363
 	 */
355 364
 	private function getInteger($str,$i,$minlength,$maxlength)
Please login to merge, or discard this patch.
framework/Web/TAssetManager.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -215,6 +215,7 @@  discard block
 block discarded – undo
215 215
 	 * This method does not perform any publishing. It merely tells you
216 216
 	 * if the file path is published, what the URL will be to access it.
217 217
 	 * @param string directory or file path being published
218
+	 * @param string $path
218 219
 	 * @return string the published URL for the file path
219 220
 	 */
220 221
 	public function getPublishedUrl($path)
@@ -230,6 +231,7 @@  discard block
 block discarded – undo
230 231
 	 * Generate a CRC32 hash for the directory path. Collisions are higher
231 232
 	 * than MD5 but generates a much smaller hash string.
232 233
 	 * @param string string to be hashed.
234
+	 * @param string $dir
233 235
 	 * @return string hashed string.
234 236
 	 */
235 237
 	protected function hash($dir)
@@ -243,6 +245,8 @@  discard block
 block discarded – undo
243 245
 	 * or has an older file modification time.
244 246
 	 * @param string source file path
245 247
 	 * @param string destination directory (if not exists, it will be created)
248
+	 * @param string $src
249
+	 * @param string $dst
246 250
 	 */
247 251
 	protected function copyFile($src,$dst)
248 252
 	{
@@ -265,6 +269,8 @@  discard block
 block discarded – undo
265 269
 	 * File modification time is used to ensure the copied files are latest.
266 270
 	 * @param string the source directory
267 271
 	 * @param string the destination directory
272
+	 * @param string $src
273
+	 * @param string $dst
268 274
 	 * @todo a generic solution to ignore certain directories and files
269 275
 	 */
270 276
 	public function copyDirectory($src,$dst)
@@ -306,6 +312,8 @@  discard block
 block discarded – undo
306 312
 	 * @param string tar filename
307 313
 	 * @param string MD5 checksum for the corresponding tar file.
308 314
 	 * @param boolean Wether or not to check the time stamp of the file for publishing. Defaults to false.
315
+	 * @param string $tarfile
316
+	 * @param string $md5sum
309 317
 	 * @return string URL path to the directory where the tar file was extracted.
310 318
 	 */
311 319
 	public function publishTarFile($tarfile, $md5sum, $checkTimestamp=false)
@@ -336,6 +344,7 @@  discard block
 block discarded – undo
336 344
 	 * N.B Tar file must not be compressed.
337 345
 	 * @param string tar file
338 346
 	 * @param string path where the contents of tar file are to be extracted
347
+	 * @param string $destination
339 348
 	 * @return boolean true if extract successful, false otherwise.
340 349
 	 */
341 350
 	protected function deployTarFile($path,$destination)
Please login to merge, or discard this patch.
framework/Web/THttpRequest.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,6 +258,7 @@  discard block
 block discarded – undo
258 258
 
259 259
 	/**
260 260
 	 * Saves the current UrlManager instance to cache.
261
+	 * @param TUrlManager $manager
261 262
 	 * @return boolean true if UrlManager instance was cached, false otherwise.
262 263
 	 */
263 264
 	protected function cacheUrlManager($manager)
@@ -349,7 +350,7 @@  discard block
 block discarded – undo
349 350
 	}
350 351
 
351 352
 	/**
352
-	 * @return THttpRequestUrlFormat the format of URLs. Defaults to THttpRequestUrlFormat::Get.
353
+	 * @return string the format of URLs. Defaults to THttpRequestUrlFormat::Get.
353 354
 	 */
354 355
 	public function getUrlFormat()
355 356
 	{
@@ -710,6 +711,7 @@  discard block
 block discarded – undo
710 711
 	 * @param array GET parameters, null if not needed
711 712
 	 * @param boolean whether to encode the ampersand in URL, defaults to true.
712 713
 	 * @param boolean whether to encode the GET parameters (their names and values), defaults to false.
714
+	 * @param string $serviceID
713 715
 	 * @return string URL
714 716
 	 * @see TUrlManager::constructUrl
715 717
 	 */
@@ -980,6 +982,7 @@  discard block
 block discarded – undo
980 982
 	/**
981 983
 	 * Constructor.
982 984
 	 * @param mixed owner of this collection.
985
+	 * @param THttpResponse $owner
983 986
 	 */
984 987
 	public function __construct($owner=null)
985 988
 	{
@@ -1125,6 +1128,7 @@  discard block
 block discarded – undo
1125 1128
 
1126 1129
 	/**
1127 1130
 	 * @param integer the time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch.
1131
+	 * @param integer $value
1128 1132
 	 */
1129 1133
 	public function setExpire($value)
1130 1134
 	{
@@ -1287,6 +1291,7 @@  discard block
 block discarded – undo
1287 1291
 	 * Constructor.
1288 1292
 	 * Decomposes the specified URI into parts.
1289 1293
 	 * @param string URI to be represented
1294
+	 * @param string $uri
1290 1295
 	 * @throws TInvalidDataValueException if URI is of bad format
1291 1296
 	 */
1292 1297
 	public function __construct($uri)
Please login to merge, or discard this patch.
framework/Web/TUrlMapping.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -606,6 +606,7 @@  discard block
 block discarded – undo
606 606
 
607 607
 	/**
608 608
 	 * @param string full regular expression mapping pattern.
609
+	 * @param string $value
609 610
 	 */
610 611
 	public function setRegularExpression($value)
611 612
 	{
@@ -715,6 +716,7 @@  discard block
 block discarded – undo
715 716
 	 * Uses URL pattern (or full regular expression if available) to
716 717
 	 * match the given url path.
717 718
 	 * @param THttpRequest the request module
719
+	 * @param THttpRequest $request
718 720
 	 * @return array matched parameters, empty if no matches.
719 721
 	 */
720 722
 	public function getPatternMatches($request)
@@ -785,7 +787,7 @@  discard block
 block discarded – undo
785 787
 	}
786 788
 
787 789
 	/**
788
-	 * @return THttpRequestUrlFormat the format of URLs. Defaults to THttpRequestUrlFormat::Get.
790
+	 * @return string the format of URLs. Defaults to THttpRequestUrlFormat::Get.
789 791
 	 */
790 792
 	public function getUrlFormat()
791 793
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TImageButton.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -220,6 +220,7 @@  discard block
 block discarded – undo
220 220
 	 * If you override this method, be sure to call the parent implementation
221 221
 	 * so that the event handler can be invoked.
222 222
 	 * @param TImageClickEventParameter event parameter to be passed to the event handlers
223
+	 * @param TImageClickEventParameter $param
223 224
 	 */
224 225
 	public function onClick($param)
225 226
 	{
@@ -232,6 +233,7 @@  discard block
 block discarded – undo
232 233
 	 * If you override this method, be sure to call the parent implementation
233 234
 	 * so that the event handlers can be invoked.
234 235
 	 * @param TCommandEventParameter event parameter to be passed to the event handlers
236
+	 * @param TCommandEventParameter $param
235 237
 	 */
236 238
 	public function onCommand($param)
237 239
 	{
@@ -324,6 +326,7 @@  discard block
 block discarded – undo
324 326
 
325 327
 	/**
326 328
 	 * @param string the group of validators which the button causes validation upon postback
329
+	 * @param string $value
327 330
 	 */
328 331
 	public function setValidationGroup($value)
329 332
 	{
@@ -396,6 +399,8 @@  discard block
 block discarded – undo
396 399
 	 * Constructor.
397 400
 	 * @param integer X coordinate of the clicking point
398 401
 	 * @param integer Y coordinate of the clicking point
402
+	 * @param integer $x
403
+	 * @param integer $y
399 404
 	 */
400 405
 	public function __construct($x,$y)
401 406
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TListControl.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -347,6 +347,7 @@  discard block
 block discarded – undo
347 347
 	 * An automatic postback to the server will occur whenever the user
348 348
 	 * makes change to the list control and then tabs out of it.
349 349
 	 * @param boolean the value indicating if postback automatically
350
+	 * @param boolean $value
350 351
 	 */
351 352
 	public function setAutoPostBack($value)
352 353
 	{
@@ -379,6 +380,7 @@  discard block
 block discarded – undo
379 380
 
380 381
 	/**
381 382
 	 * @param string the field of the data source that provides the text content of the list items.
383
+	 * @param string $value
382 384
 	 */
383 385
 	public function setDataTextField($value)
384 386
 	{
@@ -398,6 +400,7 @@  discard block
 block discarded – undo
398 400
 	 * The format string is used in {@link TDataValueFormatter::format()} to format the Text property value
399 401
 	 * of each item in the list control.
400 402
 	 * @param string the formatting string used to control how data bound to the list control is displayed.
403
+	 * @param string $value
401 404
 	 * @see TDataValueFormatter::format()
402 405
 	 */
403 406
 	public function setDataTextFormatString($value)
@@ -415,6 +418,7 @@  discard block
 block discarded – undo
415 418
 
416 419
 	/**
417 420
 	 * @param string the field of the data source that provides the value of each list item.
421
+	 * @param string $value
418 422
 	 */
419 423
 	public function setDataValueField($value)
420 424
 	{
@@ -856,6 +860,7 @@  discard block
 block discarded – undo
856 860
 	 * as the first and second parameters in {@link sprintf}.
857 861
 	 * @param string format string
858 862
 	 * @param mixed the data to be formatted
863
+	 * @param string $formatString
859 864
 	 * @return string the formatted result
860 865
 	 */
861 866
 	protected function formatDataValue($formatString,$value)
@@ -894,28 +899,33 @@  discard block
 block discarded – undo
894 899
 	/**
895 900
 	 * Selects an item based on zero-base index on the client side.
896 901
 	 * @param integer the index (zero-based) of the item to be selected
902
+	 * @return void
897 903
 	 */
898 904
 	public function setSelectedIndex($index);
899 905
 	/**
900 906
 	 * Selects a list of item based on zero-base indices on the client side.
901 907
 	 * @param array list of index of items to be selected
908
+	 * @return void
902 909
 	 */
903 910
 	public function setSelectedIndices($indices);
904 911
 
905 912
 	/**
906 913
 	 * Sets selection by item value on the client side.
907 914
 	 * @param string the value of the item to be selected.
915
+	 * @return void
908 916
 	 */
909 917
 	public function setSelectedValue($value);
910 918
 
911 919
 	/**
912 920
 	 * Sets selection by a list of item values on the client side.
913 921
 	 * @param array list of the selected item values
922
+	 * @return void
914 923
 	 */
915 924
 	public function setSelectedValues($values);
916 925
 
917 926
     /**
918 927
      * Clears all existing selections on the client side.
928
+     * @return void
919 929
      */
920 930
     public function clearSelection();
921 931
 }
Please login to merge, or discard this patch.