Completed
Pull Request — master (#5653)
by Damian
12:06
created
forms/ConfirmedPasswordField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -409,7 +409,7 @@
 block discarded – undo
409 409
 	 *
410 410
 	 * @param DataObjectInterface $record
411 411
 	 *
412
-	 * @return boolean
412
+	 * @return false|null
413 413
 	 */
414 414
 	public function saveInto(DataObjectInterface $record) {
415 415
 		if(!$this->isSaveable()) {
Please login to merge, or discard this patch.
forms/DatetimeField.php 1 patch
Doc Comments   +17 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,6 +56,10 @@  discard block
 block discarded – undo
56 56
 	 */
57 57
 	protected $config;
58 58
 		
59
+	/**
60
+	 * @param string $name
61
+	 * @param string $title
62
+	 */
59 63
 	public function __construct($name, $title = null, $value = ""){
60 64
 		$this->config = $this->config()->default_config;
61 65
 		
@@ -68,6 +72,9 @@  discard block
 block discarded – undo
68 72
 		parent::__construct($name, $title, $value);
69 73
 	}
70 74
 		
75
+	/**
76
+	 * @param Form $form
77
+	 */
71 78
 	public function setForm($form) {
72 79
 		parent::setForm($form);
73 80
 		
@@ -78,6 +85,9 @@  discard block
 block discarded – undo
78 85
 		return $this;
79 86
 	}
80 87
 
88
+	/**
89
+	 * @param string $name
90
+	 */
81 91
 	public function setName($name) {
82 92
 		parent::setName($name);
83 93
 
@@ -229,6 +239,7 @@  discard block
 block discarded – undo
229 239
 
230 240
 	/**
231 241
 	 * @param FormField
242
+	 * @param DateField $field
232 243
 	 */
233 244
 	public function setDateField($field) {
234 245
 		$expected = $this->getName() . '[date]';
@@ -254,6 +265,7 @@  discard block
 block discarded – undo
254 265
 
255 266
 	/**
256 267
 	 * @param FormField
268
+	 * @param TimeField $field
257 269
 	 */
258 270
 	public function setTimeField($field) {
259 271
 		$expected = $this->getName() . '[time]';
@@ -292,7 +304,7 @@  discard block
 block discarded – undo
292 304
 	 * to set field-specific config options.
293 305
 	 * 
294 306
 	 * @param string $name
295
-	 * @param mixed $val
307
+	 * @param string $val
296 308
 	 */
297 309
 	public function setConfig($name, $val) {
298 310
 		$this->config[$name] = $val;
@@ -310,7 +322,7 @@  discard block
 block discarded – undo
310 322
 	 * to get field-specific config options.
311 323
 	 * 
312 324
 	 * @param String $name Optional, returns the whole configuration array if empty
313
-	 * @return mixed
325
+	 * @return string|null
314 326
 	 */
315 327
 	public function getConfig($name = null) {
316 328
 		if($name) {
@@ -320,6 +332,9 @@  discard block
 block discarded – undo
320 332
 		}
321 333
 	}
322 334
 	
335
+	/**
336
+	 * @param RequiredFields $validator
337
+	 */
323 338
 	public function validate($validator) {
324 339
 		$dateValid = $this->dateField->validate($validator);
325 340
 		$timeValid = $this->timeField->validate($validator);
Please login to merge, or discard this patch.
forms/FormAction.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -89,6 +89,7 @@
 block discarded – undo
89 89
 	 * Determines if the field should render open or closed by default.
90 90
 	 * 
91 91
 	 * @param boolean
92
+	 * @param boolean $bool
92 93
 	 */
93 94
 	public function startClosed($bool) {
94 95
 		($bool) ? $this->addExtraClass('startClosed') : $this->removeExtraClass('startClosed');
Please login to merge, or discard this patch.
forms/MoneyField.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@  discard block
 block discarded – undo
32 32
 	 */
33 33
 	protected $fieldCurrency = null;
34 34
 
35
+	/**
36
+	 * @param string $name
37
+	 * @param string $title
38
+	 */
35 39
 	public function __construct($name, $title = null, $value = "") {
36 40
 		// naming with underscores to prevent values from actually being saved somewhere
37 41
 		$this->fieldAmount = new NumericField("{$name}[Amount]", _t('MoneyField.FIELDLABELAMOUNT', 'Amount'));
@@ -135,6 +139,7 @@  discard block
 block discarded – undo
135 139
 	/**
136 140
 	 * @todo Implement removal of readonly state with $bool=false
137 141
 	 * @todo Set readonly state whenever field is recreated, e.g. in setAllowedCurrencies()
142
+	 * @param boolean $bool
138 143
 	 */
139 144
 	public function setReadonly($bool) {
140 145
 		parent::setReadonly($bool);
Please login to merge, or discard this patch.
api/RSSFeed.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -223,6 +223,7 @@
 block discarded – undo
223 223
 	 * via the standard template inclusion process.
224 224
 	 *
225 225
 	 * @param string
226
+	 * @param string $template
226 227
 	 */
227 228
 	public function setTemplate($template) {
228 229
 		$this->template = $template;
Please login to merge, or discard this patch.
control/Controller.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,6 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * {@inheritdoc}
134 134
 	 *
135 135
 	 * Also set the URLParams
136
+	 * @param SS_HTTPRequest $request
136 137
 	 */
137 138
 	public function setRequest($request) {
138 139
 		$return = parent::setRequest($request);
@@ -509,7 +510,7 @@  discard block
 block discarded – undo
509 510
 	 *
510 511
 	 * @param array $params
511 512
 	 *
512
-	 * @return string
513
+	 * @return DBHTMLText
513 514
 	 */
514 515
 	public function render($params = null) {
515 516
 		$template = $this->getViewer($this->getAction());
@@ -674,7 +675,7 @@  discard block
 block discarded – undo
674 675
 	 * Tests whether a redirection has been requested. If redirect() has been called, it will return
675 676
 	 * the URL redirected to. Otherwise, it will return null.
676 677
 	 *
677
-	 * @return null|string
678
+	 * @return boolean
678 679
 	 */
679 680
 	public function redirectedTo() {
680 681
 		return $this->getResponse() && $this->getResponse()->getHeader('Location');
Please login to merge, or discard this patch.
core/CustomMethods.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
 	/**
145 145
 	 * Get meta-data details on a named method
146 146
 	 *
147
-	 * @param array $method
147
+	 * @param string $method
148 148
 	 * @return array List of custom method details, if defined for this method
149 149
 	 */
150 150
 	protected function getExtraMethodConfig($method) {
Please login to merge, or discard this patch.
filesystem/flysystem/AssetAdapter.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
         ]
39 39
 	);
40 40
 
41
+	/**
42
+	 * @param string $root
43
+	 */
41 44
 	public function __construct($root = null, $writeFlags = LOCK_EX, $linkHandling = self::DISALLOW_LINKS) {
42 45
 		// Get root path
43 46
 		$root = $this->findRoot($root);
@@ -118,7 +121,7 @@  discard block
 block discarded – undo
118 121
 	 * Render server configuration file from a template file
119 122
 	 *
120 123
 	 * @param string $template
121
-	 * @return DBHTMLText Rendered results
124
+	 * @return string Rendered results
122 125
 	 */
123 126
 	protected function renderTemplate($template) {
124 127
 		// Build allowed extensions
Please login to merge, or discard this patch.
forms/FileField.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,6 @@
 block discarded – undo
249 249
 	 * for each of these categories
250 250
 	 *
251 251
 	 * @param string $category Category name
252
-	 * @param string,... $categories Additional category names
253 252
 	 * @return $this
254 253
 	 */
255 254
 	public function setAllowedFileCategories($category) {
Please login to merge, or discard this patch.