Completed
Push — master ( a5d155...804a55 )
by Fabio
65:23
created
framework/Web/UI/JuiControls/TJuiControlOptions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
 
127 127
 	/**
128 128
 	 * Only serialize the options itself, not the corresponding parent control.
129
-	 * @return mixed array with the names of all variables of that object that should be serialized.
129
+	 * @return string[] array with the names of all variables of that object that should be serialized.
130 130
 	 */
131 131
 	public function __sleep()
132 132
 	{
Please login to merge, or discard this patch.
framework/Web/UI/TClientScriptManager.php 1 patch
Doc Comments   +20 added lines, -5 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 	}
222 222
 
223 223
 	/**
224
-	 * @param mixed $script
224
+	 * @param string $script
225 225
 	 * @return string Prado javascript library base asset url.
226 226
 	 */
227 227
 	public function getPradoScriptAssetUrl($script = 'prado')
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 	}
237 237
 
238 238
 	/**
239
-	 * @param mixed $script
239
+	 * @param string $script
240 240
 	 * @return string Prado javascript library base asset path in local filesystem.
241 241
 	 */
242 242
 	public function getPradoScriptAssetPath($script = 'prado')
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 
266 266
 	/**
267 267
 	 * @param string $base javascript or css package path.
268
-	 * @return array tuple($path,$url).
268
+	 * @return string[] tuple($path,$url).
269 269
 	 */
270 270
 	protected function getPackagePathUrl($base)
271 271
 	{
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
 
447 447
 	/**
448 448
 	 * Registers a Prado style library to be loaded.
449
-	 * @param mixed $name
449
+	 * @param string $name
450 450
 	 */
451 451
 	protected function registerPradoStyleInternal($name)
452 452
 	{
@@ -784,11 +784,17 @@  discard block
 block discarded – undo
784 784
 		$writer->write(TJavaScript::renderScriptBlocks($this->_headScripts));
785 785
 	}
786 786
 
787
+	/**
788
+	 * @param THtmlWriter $writer
789
+	 */
787 790
 	public function renderScriptFilesBegin($writer)
788 791
 	{
789 792
 		$this->renderAllPendingScriptFiles($writer);
790 793
 	}
791 794
 
795
+	/**
796
+	 * @param THtmlWriter $writer
797
+	 */
792 798
 	public function renderScriptFilesEnd($writer)
793 799
 	{
794 800
 		$this->renderAllPendingScriptFiles($writer);
@@ -801,6 +807,9 @@  discard block
 block discarded – undo
801 807
 		$this->_page->registerCachingAction('Page.ClientScript', 'markScriptFileAsRendered', $params);
802 808
 	}
803 809
 
810
+	/**
811
+	 * @param THtmlWriter $writer
812
+	 */
804 813
 	protected function renderScriptFiles($writer, array $scripts)
805 814
 	{
806 815
 		foreach ($scripts as $script) {
@@ -857,11 +866,17 @@  discard block
 block discarded – undo
857 866
 		$writer->write(TJavaScript::renderScriptBlocksCallback($this->_endScripts));
858 867
 	}
859 868
 
869
+	/**
870
+	 * @param THtmlWriter $writer
871
+	 */
860 872
 	public function renderHiddenFieldsBegin($writer)
861 873
 	{
862 874
 		$this->renderHiddenFieldsInt($writer, true);
863 875
 	}
864 876
 
877
+	/**
878
+	 * @param THtmlWriter $writer
879
+	 */
865 880
 	public function renderHiddenFieldsEnd($writer)
866 881
 	{
867 882
 		$this->renderHiddenFieldsInt($writer, false);
@@ -886,7 +901,7 @@  discard block
 block discarded – undo
886 901
 	 * Unfortunately this attribute is invalid for hidden fields, so text fields are
887 902
 	 * rendered instead (#642).
888 903
 	 * @param THtmlWriter $writer writer for the rendering purpose
889
-	 * @param mixed $initial
904
+	 * @param boolean $initial
890 905
 	 */
891 906
 
892 907
 	protected function renderHiddenFieldsInt($writer, $initial)
Please login to merge, or discard this patch.
framework/Web/UI/TControl.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	 * the control ID will take the precedence.
215 215
 	 *
216 216
 	 * @param string $name the property name or control ID
217
-	 * @return bool wether the control or property exists
217
+	 * @return boolean|null wether the control or property exists
218 218
 	 * @see __get
219 219
 	 */
220 220
 	public function __isset($name)
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
 	}
472 472
 
473 473
 	/**
474
-	 * @return bool if a skin is applied.
474
+	 * @return integer if a skin is applied.
475 475
 	 */
476 476
 	public function getIsSkinApplied()
477 477
 	{
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
 	}
649 649
 
650 650
 	/**
651
-	 * @param mixed $name
651
+	 * @param string $name
652 652
 	 * @return bool whether the named attribute exists
653 653
 	 */
654 654
 	public function hasAttribute($name)
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
 	}
662 662
 
663 663
 	/**
664
-	 * @param mixed $name
664
+	 * @param string $name
665 665
 	 * @return string attribute value, null if attribute does not exist
666 666
 	 */
667 667
 	public function getAttribute($name)
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
 	}
699 699
 
700 700
 	/**
701
-	 * @param mixed $checkParents
701
+	 * @param boolean $checkParents
702 702
 	 * @return bool whether viewstate is enabled
703 703
 	 */
704 704
 	public function getEnableViewState($checkParents = false)
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
 	 * This function is mainly used in defining getter functions for control properties
734 734
 	 * that must be kept in controlstate.
735 735
 	 * @param string $key the name of the controlstate value to be returned
736
-	 * @param mixed $defaultValue the default value. If $key is not found in controlstate, $defaultValue will be returned
736
+	 * @param integer|null $defaultValue the default value. If $key is not found in controlstate, $defaultValue will be returned
737 737
 	 * @return mixed the controlstate value corresponding to $key
738 738
 	 */
739 739
 	protected function getControlState($key, $defaultValue = null)
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
 	 * Make sure that the controlstate value must be serializable and unserializable.
750 750
 	 * @param string $key the name of the controlstate value
751 751
 	 * @param mixed $value the controlstate value to be set
752
-	 * @param null|mixed $defaultValue default value. If $value===$defaultValue, the item will be cleared from controlstate
752
+	 * @param integer $defaultValue default value. If $value===$defaultValue, the item will be cleared from controlstate
753 753
 	 */
754 754
 	protected function setControlState($key, $value, $defaultValue = null)
755 755
 	{
@@ -1084,7 +1084,7 @@  discard block
 block discarded – undo
1084 1084
 	 * A registered object can be accessed like a public member variable.
1085 1085
 	 * This method should only be used by framework and control developers.
1086 1086
 	 * @param string $name name of the object
1087
-	 * @param object $object object to be declared
1087
+	 * @param \Prado\TComponent $object object to be declared
1088 1088
 	 * @see __get
1089 1089
 	 */
1090 1090
 	public function registerObject($name, $object)
@@ -1160,7 +1160,7 @@  discard block
 block discarded – undo
1160 1160
 	 * A component with explicit ID on a template will be registered to
1161 1161
 	 * the template owner. This method allows you to obtain this component
1162 1162
 	 * with the ID.
1163
-	 * @param mixed $name
1163
+	 * @param string $name
1164 1164
 	 * @return mixed the named registered object. Null if object is not found.
1165 1165
 	 */
1166 1166
 	public function getRegisteredObject($name)
Please login to merge, or discard this patch.
framework/Web/UI/TPage.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -290,6 +290,9 @@  discard block
 block discarded – undo
290 290
 		$this->unloadRecursive();
291 291
 	}
292 292
 
293
+	/**
294
+	 * @param string $enc
295
+	 */
293 296
 	protected static function decodeUTF8($data, $enc)
294 297
 	{
295 298
 		if (is_array($data)) {
@@ -970,7 +973,7 @@  discard block
 block discarded – undo
970 973
 
971 974
 	/**
972 975
 	 * @internal This method is invoked by TForm at the beginning of its rendering
973
-	 * @param mixed $writer
976
+	 * @param THtmlWriter $writer
974 977
 	 */
975 978
 	public function beginFormRender($writer)
976 979
 	{
@@ -984,7 +987,7 @@  discard block
 block discarded – undo
984 987
 
985 988
 	/**
986 989
 	 * @internal This method is invoked by TForm  at the end of its rendering
987
-	 * @param mixed $writer
990
+	 * @param THtmlWriter $writer
988 991
 	 */
989 992
 	public function endFormRender($writer)
990 993
 	{
@@ -1003,7 +1006,7 @@  discard block
 block discarded – undo
1003 1006
 
1004 1007
 	/**
1005 1008
 	 * Sets input focus on a control after the page is rendered to users.
1006
-	 * @param string|TControl $value control to receive focus, or the ID of the element on the page to receive focus
1009
+	 * @param TControl $value control to receive focus, or the ID of the element on the page to receive focus
1007 1010
 	 */
1008 1011
 	public function setFocus($value)
1009 1012
 	{
Please login to merge, or discard this patch.
framework/Web/UI/TPageStateFormatter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 	/**
56 56
 	 * @param TPage $page
57 57
 	 * @param string $data serialized data
58
-	 * @return mixed unserialized state data, null if data is corrupted
58
+	 * @return string unserialized state data, null if data is corrupted
59 59
 	 */
60 60
 	public static function unserialize($page, $data)
61 61
 	{
Please login to merge, or discard this patch.
framework/Web/UI/TTemplate.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
 	 * Handles template parsing exception.
870 870
 	 * This method rethrows the exception caught during template parsing.
871 871
 	 * It adjusts the error location by giving out correct error line number and source file.
872
-	 * @param Exception $e template exception
872
+	 * @param \Exception $e template exception
873 873
 	 * @param int $line line number
874 874
 	 * @param null|string $input template string if no source file is used
875 875
 	 */
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
 
935 935
 	/**
936 936
 	 * Checks if the given method belongs to a previously attached class behavior.
937
-	 * @param ReflectionClass $class
937
+	 * @param \ReflectionClass $class
938 938
 	 * @param string $method
939 939
 	 * @return bool
940 940
 	 */
Please login to merge, or discard this patch.
framework/Web/UI/TTemplateManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 
71 71
 	/**
72 72
 	 * Loads the template from the specified file.
73
-	 * @param mixed $fileName
73
+	 * @param string $fileName
74 74
 	 * @return ITemplate template parsed from the specified file, null if the file doesn't exist.
75 75
 	 */
76 76
 	public function getTemplateByFileName($fileName)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TBaseDataList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
 	 * as the field name, the property value will be returned.
168 168
 	 * Otherwise, an exception will be raised.
169 169
 	 * @param mixed $data data item
170
-	 * @param mixed $field field name
170
+	 * @param string $field field name
171 171
 	 * @throws TInvalidDataValueException if the data is invalid
172 172
 	 * @return mixed data value at the specified field
173 173
 	 */
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TBaseValidator.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 	 * Gets the Control type for client-side validation. If new cases exists in
189 189
 	 * TBaseValidator::$_clientClass, be sure to update the corresponding
190 190
 	 * "Javascript/validation3.js" file as well.
191
-	 * @param TControl $control control to validate.
191
+	 * @param \Prado\Web\UI\TControl $control control to validate.
192 192
 	 * @return string control type for client-side validation.
193 193
 	 */
194 194
 	private function getClientControlClass($control)
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	/**
273 273
 	 * Update the ControlToValidate component's css class depending
274 274
 	 * if the ControlCssClass property is set, and whether this is valid.
275
-	 * @return bool true if change, false otherwise.
275
+	 * @return boolean|null true if change, false otherwise.
276 276
 	 */
277 277
 	protected function updateControlCssClass()
278 278
 	{
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 	/**
484 484
 	 * @throws TConfigurationException if {@link getControlToValidate
485 485
 	 * ControlToValidate} is empty or does not point to a valid control
486
-	 * @return TControl control to be validated. Null if no control is found.
486
+	 * @return \Prado\Web\UI\TControl control to be validated. Null if no control is found.
487 487
 	 */
488 488
 	public function getValidationTarget()
489 489
 	{
Please login to merge, or discard this patch.