Completed
Pull Request — master (#5826)
by Damian
11:45
created
admin/code/CMSMenuItem.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 	/**
74 74
 	 * @param array
75 75
 	 *
76
-	 * @return HTML
76
+	 * @return DBField
77 77
 	 */
78 78
 	public function getAttributesHTML($attrs = null) {
79 79
 		$exclude = (is_string($attrs)) ? func_get_args() : null;
Please login to merge, or discard this patch.
forms/DatetimeField.php 1 patch
Doc Comments   +19 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,6 +68,10 @@  discard block
 block discarded – undo
68 68
 	 */
69 69
 	protected $config;
70 70
 
71
+	/**
72
+	 * @param string $name
73
+	 * @param string $title
74
+	 */
71 75
 	public function __construct($name, $title = null, $value = ""){
72 76
 		$this->config = $this->config()->default_config;
73 77
 
@@ -78,6 +82,9 @@  discard block
 block discarded – undo
78 82
 		parent::__construct($name, $title, $value);
79 83
 	}
80 84
 
85
+	/**
86
+	 * @param Form $form
87
+	 */
81 88
 	public function setForm($form) {
82 89
 		parent::setForm($form);
83 90
 
@@ -88,6 +95,9 @@  discard block
 block discarded – undo
88 95
 		return $this;
89 96
 	}
90 97
 
98
+	/**
99
+	 * @param string $name
100
+	 */
91 101
 	public function setName($name) {
92 102
 		parent::setName($name);
93 103
 
@@ -100,7 +110,7 @@  discard block
 block discarded – undo
100 110
 
101 111
 	/**
102 112
 	 * @param array $properties
103
-	 * @return string
113
+	 * @return DBHTMLText
104 114
 	 */
105 115
 	public function FieldHolder($properties = array()) {
106 116
 		$config = array(
@@ -114,7 +124,7 @@  discard block
 block discarded – undo
114 124
 
115 125
 	/**
116 126
 	 * @param array $properties
117
-	 * @return string
127
+	 * @return DBHTMLText
118 128
 	 */
119 129
 	public function Field($properties = array()) {
120 130
 		Requirements::css(FRAMEWORK_DIR . '/client/dist/styles/DatetimeField.css');
@@ -244,6 +254,7 @@  discard block
 block discarded – undo
244 254
 
245 255
 	/**
246 256
 	 * @param FormField
257
+	 * @param DateField $field
247 258
 	 */
248 259
 	public function setDateField($field) {
249 260
 		$expected = $this->getName() . '[date]';
@@ -269,6 +280,7 @@  discard block
 block discarded – undo
269 280
 
270 281
 	/**
271 282
 	 * @param FormField
283
+	 * @param TimeField $field
272 284
 	 */
273 285
 	public function setTimeField($field) {
274 286
 		$expected = $this->getName() . '[time]';
@@ -316,7 +328,7 @@  discard block
 block discarded – undo
316 328
 	 * to set field-specific config options.
317 329
 	 *
318 330
 	 * @param string $name
319
-	 * @param mixed $val
331
+	 * @param string $val
320 332
 	 */
321 333
 	public function setConfig($name, $val) {
322 334
 		$this->config[$name] = $val;
@@ -334,7 +346,7 @@  discard block
 block discarded – undo
334 346
 	 * to get field-specific config options.
335 347
 	 *
336 348
 	 * @param String $name Optional, returns the whole configuration array if empty
337
-	 * @return mixed
349
+	 * @return string|null
338 350
 	 */
339 351
 	public function getConfig($name = null) {
340 352
 		if($name) {
@@ -344,6 +356,9 @@  discard block
 block discarded – undo
344 356
 		}
345 357
 	}
346 358
 
359
+	/**
360
+	 * @param RequiredFields $validator
361
+	 */
347 362
 	public function validate($validator) {
348 363
 		$dateValid = $this->dateField->validate($validator);
349 364
 		$timeValid = $this->timeField->validate($validator);
Please login to merge, or discard this patch.