Completed
Push — master ( a5d155...804a55 )
by Fabio
65:23
created
framework/Collections/TPriorityMap.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 * Initializes the array with an array or an iterable object.
97 97
 	 * @param null|array|Iterator|map|TPriorityMap $data the intial data. Default is null, meaning no initialization.
98 98
 	 * @param bool $readOnly whether the list is read-only
99
-	 * @param numeric $defaultPriority the default priority of items without specified priorities.
99
+	 * @param integer $defaultPriority the default priority of items without specified priorities.
100 100
 	 * @param int $precision the precision of the numeric priorities
101 101
 	 * @throws TInvalidDataTypeException If data is not null and neither an array nor an iterator.
102 102
 	 */
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
 	/**
138 138
 	 * This must be called internally or when instantiated.
139
-	 * @param numeric $value sets the default priority of inserted items without a specified priority
139
+	 * @param integer $value sets the default priority of inserted items without a specified priority
140 140
 	 */
141 141
 	protected function setDefaultPriority($value)
142 142
 	{
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	/**
164 164
 	 * Returns an iterator for traversing the items in the map.
165 165
 	 * This method is required by the interface \IteratorAggregate.
166
-	 * @return Iterator an iterator for traversing the items in the map.
166
+	 * @return \ArrayIterator an iterator for traversing the items in the map.
167 167
 	 */
168 168
 	public function getIterator()
169 169
 	{
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 	 * @param mixed $value
359 359
 	 * @param null|numeric $priority default: null, filled in with default priority
360 360
 	 * @throws TInvalidOperationException if the map is read-only
361
-	 * @return numeric priority at which the pair was added
361
+	 * @return string priority at which the pair was added
362 362
 	 */
363 363
 	public function add($key, $value, $priority = null)
364 364
 	{
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/Data/Common/TDbCommandBuilder.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	/**
49
-	 * @param TDbConnection $value database connection.
49
+	 * @param null|TDbConnection $value database connection.
50 50
 	 */
51 51
 	public function setDbConnection($value)
52 52
 	{
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 	 * array('col1' => 'NULL', '*')
195 195
 	 * // SELECT `col1`, `col2`, `col3`, NULL AS `col1` FROM...
196 196
 	 * </code>
197
-	 * @param mixed $data
197
+	 * @param string $data
198 198
 	 * @return array of generated fields - use implode(', ', $selectfieldlist) to collapse field list for usage
199 199
 	 * @since 3.1.7
200 200
 	 * @todo add support for table aliasing
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 	/**
421 421
 	 * Returns a list of insert field name and a list of binding names.
422 422
 	 * @param object $values array or object to be inserted.
423
-	 * @return array tuple ($fields, $bindings)
423
+	 * @return string[] tuple ($fields, $bindings)
424 424
 	 */
425 425
 	protected function getInsertFieldBindings($values)
426 426
 	{
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.
bin/prado-cli.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 	}
334 334
 
335 335
 	/**
336
-	 * @param array $appName application id
336
+	 * @param string $appName application id
337 337
 	 * @return string
338 338
 	 */
339 339
 	protected function renderConfigFile($appName)
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 
591 591
 	/**
592 592
 	 * @param string $app_dir application directory
593
-	 * @return string|false
593
+	 * @return string
594 594
 	 */
595 595
 	protected function getActiveRecordConfig($app_dir)
596 596
 	{
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
 	 * @param string $config database configuration
634 634
 	 * @param string $tablename table name
635 635
 	 * @param string $output output file name
636
-	 * @return bool
636
+	 * @return false|null
637 637
 	 */
638 638
 	protected function generateActiveRecord($config, $tablename, $output)
639 639
 	{
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/Data/SqlMap/Statements/TMappedStatement.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
 	 * Execute the select key statement, used to obtain last insert ID.
469 469
 	 * @param IDbConnection $connection database connection
470 470
 	 * @param mixed $parameter insert statement parameter
471
-	 * @param TSqlMapSelectKey $selectKey select key statement
471
+	 * @param \Prado\Data\SqlMap\Configuration\TSqlMapSelectKey $selectKey select key statement
472 472
 	 * @return string last insert ID.
473 473
 	 */
474 474
 	protected function executeSelectKey($connection, $parameter, $selectKey)
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 	/**
596 596
 	 * Apply the result to a TList or an array.
597 597
 	 * @param array $row a result set row retrieved from the database
598
-	 * @param object $resultObject result object, array or list
598
+	 * @param \ArrayAccess $resultObject result object, array or list
599 599
 	 * @return object result filled with data.
600 600
 	 */
601 601
 	protected function fillResultArrayList($row, $resultObject)
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
 	 * Fills the result object according to result mappings.
641 641
 	 * @param string $resultMapName result map name.
642 642
 	 * @param array $row a result set row retrieved from the database
643
-	 * @param null|mixed $parentGroup
643
+	 * @param null|string $parentGroup
644 644
 	 * @param null|&object $resultObject result object to fill, will create new instances if required.
645 645
 	 * @return object result object filled with data.
646 646
 	 */
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.