Completed
Push — php-cs-fixer ( b6f93e...b9836a )
by Fabio
07:15
created
framework/Web/UI/WebControls/TCaptcha.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -270,6 +270,7 @@  discard block
 block discarded – undo
270 270
 
271 271
 	/**
272 272
 	 * @param string the public key used for generating the token. A random one will be generated if this is not set.
273
+	 * @param string $value
273 274
 	 */
274 275
 	public function setPublicKey($value)
275 276
 	{
@@ -325,6 +326,7 @@  discard block
 block discarded – undo
325 326
 	/**
326 327
 	 * Validates a user input with the token.
327 328
 	 * @param string user input
329
+	 * @param string $input
328 330
 	 * @return boolean if the user input is not the same as the token.
329 331
 	 */
330 332
 	public function validate($input)
@@ -450,6 +452,11 @@  discard block
 block discarded – undo
450 452
 	 * @param string private key
451 453
 	 * @param integer the length of the token
452 454
 	 * @param boolean whether the token is case sensitive
455
+	 * @param string $publicKey
456
+	 * @param string $privateKey
457
+	 * @param string $alphabet
458
+	 * @param integer $tokenLength
459
+	 * @param boolean $caseSensitive
453 460
 	 * @return string the token generated.
454 461
 	 */
455 462
 	protected function generateToken($publicKey, $privateKey, $alphabet, $tokenLength, $caseSensitive)
@@ -462,6 +469,7 @@  discard block
 block discarded – undo
462 469
 	 * Converts a hash string into a string with characters consisting of alphanumeric characters.
463 470
 	 * @param string the hexadecimal representation of the hash string
464 471
 	 * @param string the alphabet used to represent the converted string. If empty, it means '234578adefhijmnrtwyABDEFGHIJLMNQRTWY', which excludes those confusing characters.
472
+	 * @param string $hex
465 473
 	 * @return string the converted string
466 474
 	 */
467 475
 	protected function hash2string($hex, $alphabet = '')
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCaptchaValidator.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	}
82 82
 
83 83
 	/**
84
-	 * @return TCaptchaControl the CAPTCHA control to be validated against
84
+	 * @return TCaptcha the CAPTCHA control to be validated against
85 85
 	 * @throws TConfigurationException if the CAPTCHA cannot be found according to {@link setCaptchaControl CaptchaControl}
86 86
 	 */
87 87
 	protected function findCaptchaControl()
@@ -117,6 +117,9 @@  discard block
 block discarded – undo
117 117
 		return $options;
118 118
 	}
119 119
 
120
+	/**
121
+	 * @param string $token
122
+	 */
120 123
 	private function generateTokenHash($token)
121 124
 	{
122 125
 		for($h = 0,$i = strlen($token) - 1;$i >= 0;--$i)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCheckBoxList.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 	/**
62 62
 	 * Creates a control used for repetition (used as a template).
63
-	 * @return TControl the control to be repeated
63
+	 * @return TCheckBoxItem the control to be repeated
64 64
 	 */
65 65
 	protected function createRepeatedControl()
66 66
 	{
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 * This method overrides the parent implementation so that it always returns
73 73
 	 * the checkbox list itself (because the checkbox list does not have child controls.)
74 74
 	 * @param string control ID
75
-	 * @return TControl control being found
75
+	 * @return \Prado\Web\UI\TControl|null control being found
76 76
 	 */
77 77
 	public function findControl($id, $real = false)
78 78
 	{
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	}
147 147
 
148 148
 	/**
149
-	 * @return string the direction of traversing the list, defaults to 'Vertical'
149
+	 * @return TRepeatDirection the direction of traversing the list, defaults to 'Vertical'
150 150
 	 */
151 151
 	public function getRepeatDirection()
152 152
 	{
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	}
163 163
 
164 164
 	/**
165
-	 * @return string how the list should be displayed, using table or using line breaks. Defaults to 'Table'.
165
+	 * @return TRepeatLayout how the list should be displayed, using table or using line breaks. Defaults to 'Table'.
166 166
 	 */
167 167
 	public function getRepeatLayout()
168 168
 	{
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
 	/**
442 442
 	 * Returns the value to be validated.
443 443
 	 * This methid is required by \Prado\Web\UI\IValidatable interface.
444
-	 * @return mixed the value of the property to be validated.
444
+	 * @return string the value of the property to be validated.
445 445
 	 */
446 446
 	public function getValidationPropertyValue()
447 447
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataGrid.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -519,6 +519,7 @@  discard block
 block discarded – undo
519 519
 	 * If the item to be selected is already in edit mode, it will remain in edit mode.
520 520
 	 * If the index is less than 0, any existing selection will be cleared up.
521 521
 	 * @param integer the selected item index
522
+	 * @param integer $value
522 523
 	 */
523 524
 	public function setSelectedItemIndex($value)
524 525
 	{
@@ -747,6 +748,7 @@  discard block
 block discarded – undo
747 748
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
748 749
 	 * with <b>cancel</b> command name.
749 750
 	 * @param TDataGridCommandEventParameter event parameter
751
+	 * @param TDataGridCommandEventParameter $param
750 752
 	 */
751 753
 	public function onCancelCommand($param)
752 754
 	{
@@ -758,6 +760,7 @@  discard block
 block discarded – undo
758 760
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
759 761
 	 * with <b>delete</b> command name.
760 762
 	 * @param TDataGridCommandEventParameter event parameter
763
+	 * @param TDataGridCommandEventParameter $param
761 764
 	 */
762 765
 	public function onDeleteCommand($param)
763 766
 	{
@@ -769,6 +772,7 @@  discard block
 block discarded – undo
769 772
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
770 773
 	 * with <b>edit</b> command name.
771 774
 	 * @param TDataGridCommandEventParameter event parameter
775
+	 * @param TDataGridCommandEventParameter $param
772 776
 	 */
773 777
 	public function onEditCommand($param)
774 778
 	{
@@ -779,6 +783,7 @@  discard block
 block discarded – undo
779 783
 	 * Raises <b>OnItemCommand</b> event.
780 784
 	 * This method is invoked when a button control raises <b>OnCommand</b> event.
781 785
 	 * @param TDataGridCommandEventParameter event parameter
786
+	 * @param TDataGridCommandEventParameter $param
782 787
 	 */
783 788
 	public function onItemCommand($param)
784 789
 	{
@@ -790,6 +795,7 @@  discard block
 block discarded – undo
790 795
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
791 796
 	 * with <b>sort</b> command name.
792 797
 	 * @param TDataGridSortCommandEventParameter event parameter
798
+	 * @param TDataGridSortCommandEventParameter $param
793 799
 	 */
794 800
 	public function onSortCommand($param)
795 801
 	{
@@ -801,6 +807,7 @@  discard block
 block discarded – undo
801 807
 	 * This method is invoked when a button control raises <b>OnCommand</b> event
802 808
 	 * with <b>update</b> command name.
803 809
 	 * @param TDataGridCommandEventParameter event parameter
810
+	 * @param TDataGridCommandEventParameter $param
804 811
 	 */
805 812
 	public function onUpdateCommand($param)
806 813
 	{
@@ -812,6 +819,7 @@  discard block
 block discarded – undo
812 819
 	 * This method is invoked right after a datagrid item is created and before
813 820
 	 * added to page hierarchy.
814 821
 	 * @param TDataGridItemEventParameter event parameter
822
+	 * @param TDataGridItemEventParameter $param
815 823
 	 */
816 824
 	public function onItemCreated($param)
817 825
 	{
@@ -823,6 +831,7 @@  discard block
 block discarded – undo
823 831
 	 * This method is invoked right after a datagrid pager is created and before
824 832
 	 * added to page hierarchy.
825 833
 	 * @param TDataGridPagerEventParameter event parameter
834
+	 * @param TDataGridPagerEventParameter $param
826 835
 	 */
827 836
 	public function onPagerCreated($param)
828 837
 	{
@@ -834,6 +843,7 @@  discard block
 block discarded – undo
834 843
 	 * This method is invoked for each datagrid item after it performs
835 844
 	 * databinding.
836 845
 	 * @param TDataGridItemEventParameter event parameter
846
+	 * @param TDataGridItemEventParameter $param
837 847
 	 */
838 848
 	public function onItemDataBound($param)
839 849
 	{
@@ -844,6 +854,7 @@  discard block
 block discarded – undo
844 854
 	 * Raises <b>OnPageIndexChanged</b> event.
845 855
 	 * This method is invoked when current page is changed.
846 856
 	 * @param TDataGridPageChangedEventParameter event parameter
857
+	 * @param TDataGridPageChangedEventParameter $param
847 858
 	 */
848 859
 	public function onPageIndexChanged($param)
849 860
 	{
@@ -1140,6 +1151,11 @@  discard block
 block discarded – undo
1140 1151
 		return new TDataGridItem($itemIndex, $dataSourceIndex, $itemType);
1141 1152
 	}
1142 1153
 
1154
+	/**
1155
+	 * @param integer $itemIndex
1156
+	 * @param boolean $dataBind
1157
+	 * @param TList $columns
1158
+	 */
1143 1159
 	private function createItemInternal($itemIndex, $dataSourceIndex, $itemType, $dataBind, $dataItem, $columns)
1144 1160
 	{
1145 1161
 		$item = $this->createItem($itemIndex, $dataSourceIndex, $itemType);
@@ -1165,6 +1181,7 @@  discard block
 block discarded – undo
1165 1181
 	 * Initializes a datagrid item and cells inside it
1166 1182
 	 * @param TDataGrid datagrid item to be initialized
1167 1183
 	 * @param TDataGridColumnCollection datagrid columns to be used to initialize the cells in the item
1184
+	 * @param TDataGridItem $item
1168 1185
 	 */
1169 1186
 	protected function initializeItem($item, $columns)
1170 1187
 	{
@@ -1197,6 +1214,7 @@  discard block
 block discarded – undo
1197 1214
 	/**
1198 1215
 	 * Builds the pager content based on pager style.
1199 1216
 	 * @param TDataGridPager the container for the pager
1217
+	 * @param TDataGridPager $pager
1200 1218
 	 */
1201 1219
 	protected function buildPager($pager)
1202 1220
 	{
@@ -1222,6 +1240,9 @@  discard block
 block discarded – undo
1222 1240
 	 * @param string caption of the button
1223 1241
 	 * @param string CommandName corresponding to the OnCommand event of the button
1224 1242
 	 * @param string CommandParameter corresponding to the OnCommand event of the button
1243
+	 * @param TDataGridPagerButtonType $buttonType
1244
+	 * @param boolean $enabled
1245
+	 * @param string $commandName
1225 1246
 	 * @return mixed the button instance
1226 1247
 	 */
1227 1248
 	protected function createPagerButton($pager, $buttonType, $enabled, $text, $commandName, $commandParameter)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataGridColumn.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -287,6 +287,7 @@  discard block
 block discarded – undo
287 287
 	 *
288 288
 	 * @param string the name of the viewstate value to be returned
289 289
 	 * @param mixed the default value. If $key is not found in viewstate, $defaultValue will be returned
290
+	 * @param string $key
290 291
 	 * @return mixed the viewstate value corresponding to $key
291 292
 	 */
292 293
 	protected function getViewState($key, $defaultValue = null)
@@ -301,6 +302,7 @@  discard block
 block discarded – undo
301 302
 	 * @param string the name of the viewstate value
302 303
 	 * @param mixed the viewstate value to be set
303 304
 	 * @param mixed default value. If $value===$defaultValue, the item will be cleared from the viewstate.
305
+	 * @param string $key
304 306
 	 */
305 307
 	protected function setViewState($key, $value, $defaultValue = null)
306 308
 	{
@@ -362,6 +364,7 @@  discard block
 block discarded – undo
362 364
 	 * If the data is a component, the field is used as the name of a property.
363 365
 	 * @param mixed data containing the field of value
364 366
 	 * @param string the data field
367
+	 * @param string $field
365 368
 	 * @return mixed data value at the specified field
366 369
 	 * @throws TInvalidDataValueException if the data or the field is invalid.
367 370
 	 */
@@ -521,6 +524,7 @@  discard block
 block discarded – undo
521 524
 	 * as the first and second parameters in {@link sprintf}.
522 525
 	 * @param string format string
523 526
 	 * @param mixed the data to be formatted
527
+	 * @param string $formatString
524 528
 	 * @return string the formatted result
525 529
 	 */
526 530
 	protected function formatDataValue($formatString, $value)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TFileUploadItem.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -91,6 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
   /**
93 93
    * @param string the local name of the file (where it is after being uploaded).
94
+   * @param string $value
94 95
    */
95 96
   public function setLocalName($value)
96 97
   {
@@ -110,6 +111,7 @@  discard block
 block discarded – undo
110 111
   /**
111 112
    * Sets the error code describing the status of this file uploading.
112 113
    * @param integer the error code
114
+   * @param integer $value
113 115
    * @see http://www.php.net/manual/en/features.file-upload.errors.php
114 116
    */
115 117
   public function setErrorCode($value)
@@ -130,6 +132,7 @@  discard block
 block discarded – undo
130 132
    * @param string the file name used to save the uploaded file
131 133
    * @param boolean whether to delete the temporary file after saving.
132 134
    * If true, you will not be able to save the uploaded file again.
135
+   * @param string $fileName
133 136
    * @return boolean true if the file saving is successful
134 137
    */
135 138
   public function saveAs($fileName, $deleteTempFile = true)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/THotSpot.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * that must be kept in viewstate.
37 37
 	 * @param string the name of the viewstate value to be returned
38 38
 	 * @param mixed the default value. If $key is not found in viewstate, $defaultValue will be returned
39
+	 * @param string $key
39 40
 	 * @return mixed the viewstate value corresponding to $key
40 41
 	 */
41 42
 	protected function getViewState($key, $defaultValue = null)
@@ -52,6 +53,7 @@  discard block
 block discarded – undo
52 53
 	 * @param string the name of the viewstate value
53 54
 	 * @param mixed the viewstate value to be set
54 55
 	 * @param mixed default value. If $value===$defaultValue, the item will be cleared from the viewstate.
56
+	 * @param string $key
55 57
 	 */
56 58
 	protected function setViewState($key, $value, $defaultValue = null)
57 59
 	{
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTabView.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	private $_active = false;
41 41
 
42 42
 	/**
43
-	 * @return the tag name for the view element
43
+	 * @return string tag name for the view element
44 44
 	 */
45 45
 	protected function getTagName()
46 46
 	{
Please login to merge, or discard this patch.