Completed
Push — master ( ad329f...099915 )
by Fabio
05:37
created
framework/Web/UI/WebControls/TImageButton.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
 	 * invoke the page's {@link TPage::validate validate} method first.
244 244
 	 * It will raise {@link onClick OnClick} and {@link onCommand OnCommand} events.
245 245
 	 * This method is mainly used by framework and control developers.
246
-	 * @param TEventParameter $param the event parameter
246
+	 * @param \Prado\Web\UI\ActiveControls\TCallbackEventParameter $param the event parameter
247 247
 	 */
248 248
 	public function raisePostBackEvent($param)
249 249
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TLinkButton.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
 	 * invoke the page's {@link TPage::validate validate} method first.
244 244
 	 * It will raise {@link onClick OnClick} and {@link onCommand OnCommand} events.
245 245
 	 * This method is mainly used by framework and control developers.
246
-	 * @param TEventParameter $param the event parameter
246
+	 * @param \Prado\Web\UI\ActiveControls\TCallbackEventParameter $param the event parameter
247 247
 	 */
248 248
 	public function raisePostBackEvent($param)
249 249
 	{
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
 	private $_context;
31 31
 	private $_criteria;
32 32
 
33
+	/**
34
+	 * @param \Prado\Data\ActiveRecord\TActiveRecordCriteria $criteria
35
+	 */
33 36
 	public function __construct(TActiveRecordRelationContext $context, $criteria)
34 37
 	{
35 38
 		$this->_context = $context;
@@ -95,7 +98,7 @@  discard block
 block discarded – undo
95 98
 
96 99
 	/**
97 100
 	 * Fetch results for current relationship.
98
-	 * @param mixed $obj
101
+	 * @param TActiveRecord $obj
99 102
 	 * @return bool always true.
100 103
 	 */
101 104
 	public function fetchResultsInto($obj)
@@ -223,6 +226,7 @@  discard block
 block discarded – undo
223 226
 	 * @param array $properties source property names
224 227
 	 * @param array &$fkObjects foreign objects
225 228
 	 * @param array $fields foreign object field names.
229
+	 * @param TActiveRecord[] $fkObjects
226 230
 	 */
227 231
 	protected function populateResult(&$results, $properties, &$fkObjects, $fields)
228 232
 	{
Please login to merge, or discard this patch.
framework/I18N/core/MessageCache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 	 * @param string $culture The translation locale, e.g. "en_AU".
110 110
 	 * @param int $lastmodified If the source is a file, this file's modified
111 111
 	 * time is newer than the cache's modified time, no cache hit.
112
-	 * @return mixed bool FALSE if no cache hit. Otherwise, translation
112
+	 * @return false|string bool FALSE if no cache hit. Otherwise, translation
113 113
 	 * table data for the specified section and locale.
114 114
 	 */
115 115
 	public function get($catalogue, $culture, $lastmodified = 0)
Please login to merge, or discard this patch.
framework/Web/Services/TPageService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
 	 * @param string $pagePath requested page path
471 471
 	 * @throws THttpException if requested page path is invalid
472 472
 	 * @throws TConfigurationException if the page class cannot be found
473
-	 * @return TPage the requested page instance
473
+	 * @return \Prado\TComponent the requested page instance
474 474
 	 */
475 475
 	protected function createPage($pagePath)
476 476
 	{
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
 
518 518
 	/**
519 519
 	 * Executes a page.
520
-	 * @param TPage $page the page instance to be run
520
+	 * @param \Prado\TComponent $page the page instance to be run
521 521
 	 * @param array $properties list of initial page properties
522 522
 	 */
523 523
 	protected function runPage($page, $properties)
Please login to merge, or discard this patch.
framework/Caching/TCache.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 * @param mixed $value the value to be cached
147 147
 	 * @param int $expire the number of seconds in which the cached value will expire. 0 means never expire.
148 148
 	 * @param ICacheDependency $dependency dependency of the cached item. If the dependency changes, the item is labeled invalid.
149
-	 * @return bool true if the value is successfully stored into cache, false otherwise
149
+	 * @return null|boolean true if the value is successfully stored into cache, false otherwise
150 150
 	 */
151 151
 	public function set($id, $value, $expire = 0, $dependency = null)
152 152
 	{
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	 * Deletes the value with the specified key from cache
284 284
 	 * This method is required by the interface \ArrayAccess.
285 285
 	 * @param string $id the key of the value to be deleted
286
-	 * @return bool if no error happens during deletion
286
+	 * @return boolean|null if no error happens during deletion
287 287
 	 */
288 288
 	public function offsetUnset($id)
289 289
 	{
Please login to merge, or discard this patch.
framework/Exceptions/TErrorHandler.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 * raised in {@link TApplication}.
119 119
 	 * The method mainly uses appropriate template to display the error/exception.
120 120
 	 * It terminates the application immediately after the error is displayed.
121
-	 * @param mixed $sender sender of the event
121
+	 * @param null|\Prado\TApplication $sender sender of the event
122 122
 	 * @param mixed $param event parameter (if the event is raised by TApplication, it refers to the exception instance)
123 123
 	 */
124 124
 	public function handleError($sender, $param)
@@ -244,6 +244,9 @@  discard block
 block discarded – undo
244 244
 		}
245 245
 	}
246 246
 
247
+	/**
248
+	 * @return string
249
+	 */
247 250
 	protected function hidePrivatePathParts($value)
248 251
 	{
249 252
 		static $aRpl;
@@ -401,6 +404,9 @@  discard block
 block discarded – undo
401 404
 		return $result;
402 405
 	}
403 406
 
407
+	/**
408
+	 * @return string
409
+	 */
404 410
 	private function getExactTraceAsString($exception)
405 411
 	{
406 412
 		if ($exception instanceof TPhpFatalErrorException &&
@@ -427,6 +433,9 @@  discard block
 block discarded – undo
427 433
 		return $this->hidePrivatePathParts($exception->getTraceAsString());
428 434
 	}
429 435
 
436
+	/**
437
+	 * @param string $pattern
438
+	 */
430 439
 	private function getPropertyAccessTrace($trace, $pattern)
431 440
 	{
432 441
 		$result = null;
@@ -457,6 +466,9 @@  discard block
 block discarded – undo
457 466
 		return $source;
458 467
 	}
459 468
 
469
+	/**
470
+	 * @param string $message
471
+	 */
460 472
 	private function addLink($message)
461 473
 	{
462 474
 		if (null !== ($class = $this->getErrorClassNameSpace($message))) {
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCaptchaValidator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
 
118 118
 	/**
119 119
 	 * @param string $token
120
-	 * @return string hash
120
+	 * @return integer hash
121 121
 	 */
122 122
 	private function generateTokenHash($token)
123 123
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TRepeater.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 	}
287 287
 
288 288
 	/**
289
-	 * @param ITemplate $value the template for repeater items
289
+	 * @param \Prado\Web\UI\TTemplate $value the template for repeater items
290 290
 	 * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null.
291 291
 	 */
292 292
 	public function setItemTemplate($value)
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
 	 * This method invokes {@link createItem} to create a new repeater item.
464 464
 	 * @param int $itemIndex zero-based item index.
465 465
 	 * @param TListItemType $itemType item type
466
-	 * @return TControl the created item, null if item is not created
466
+	 * @return \Prado\TComponent|null the created item, null if item is not created
467 467
 	 */
468 468
 	private function createItemInternal($itemIndex, $itemType)
469 469
 	{
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 	 * @param int $itemIndex zero-based item index.
484 484
 	 * @param TListItemType $itemType item type
485 485
 	 * @param mixed $dataItem data to be associated with the item
486
-	 * @return TControl the created item, null if item is not created
486
+	 * @return \Prado\TComponent|null the created item, null if item is not created
487 487
 	 */
488 488
 	private function createItemWithDataInternal($itemIndex, $itemType, $dataItem)
489 489
 	{
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
 	 * Creates a repeater item instance based on the item type and index.
507 507
 	 * @param int $itemIndex zero-based item index
508 508
 	 * @param TListItemType $itemType item type
509
-	 * @return TControl created repeater item
509
+	 * @return null|\Prado\TComponent created repeater item
510 510
 	 */
511 511
 	protected function createItem($itemIndex, $itemType)
512 512
 	{
Please login to merge, or discard this patch.