Test Failed
Push — intl ( 00087a...e65f29 )
by Fabio
05:55
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/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/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 2 patches
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.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
   {$this->action} {$parameters}{$optional}
207 207
 {$description}
208 208
 
209
-EOD;
209
+eod;
210 210
 	}
211 211
 
212 212
 	/**
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
   </parameters>
379 379
   -->
380 380
 </application>
381
-EOD;
381
+eod;
382 382
 	}
383 383
 
384 384
 	/**
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 <h1>Welcome to PRADO!</h1>
404 404
 </body>
405 405
 </html>
406
-EOD;
406
+eod;
407 407
 	}
408 408
 }
409 409
 
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
 	 * @soapproperty
679 679
 	 */
680 680
 
681
-EOD;
681
+eod;
682 682
 		}
683 683
 		$prop .= "\tpublic $name;";
684 684
 		return $prop;
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
 	}
712 712
 }
713 713
 
714
-EOD;
714
+eod;
715 715
 	}
716 716
 }
717 717
 
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 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
 	protected function hidePrivatePathParts($value)
248 248
 	{
249 249
 		static $aRpl;
250
-		if($aRpl === null)
250
+		if ($aRpl === null)
251 251
 		{
252 252
 			$aRpl[$_SERVER['DOCUMENT_ROOT']] = '${DocumentRoot}';
253 253
 			$aRpl[str_replace('/', DIRECTORY_SEPARATOR, $_SERVER['DOCUMENT_ROOT'])] = '${DocumentRoot}';
Please login to merge, or discard this patch.