Completed
Push — master ( c130e5...a809e8 )
by Sam
10:09
created
view/SSViewer.php 1 patch
Doc Comments   +14 added lines, -5 removed lines patch added patch discarded remove patch
@@ -369,7 +369,6 @@  discard block
 block discarded – undo
369 369
 	/**
370 370
 	 * Returns the modulus of the numerical position of the item in the data set.
371 371
 	 * The count starts from $startIndex, which defaults to 1.
372
-	 * @param int $Mod The number to perform Mod operation to.
373 372
 	 * @param int $startIndex Number to start count from.
374 373
 	 * @return int
375 374
 	 */
@@ -443,6 +442,10 @@  discard block
 block discarded – undo
443 442
 		$this->underlay = $underlay ? $underlay : array();
444 443
 	}
445 444
 
445
+	/**
446
+	 * @param string $interfaceToQuery
447
+	 * @param string $variableMethod
448
+	 */
446 449
 	protected function createCallableArray(&$extraArray, $interfaceToQuery, $variableMethod, $createObject = false) {
447 450
 		$implementers = ClassInfo::implementorsOf($interfaceToQuery);
448 451
 		if($implementers) foreach($implementers as $implementer) {
@@ -843,7 +846,7 @@  discard block
 block discarded – undo
843 846
 	 *
844 847
 	 * @param $className string - valid class name
845 848
 	 * @param $suffix string
846
-	 * @param $baseClass string
849
+	 * @param string $baseClass string
847 850
 	 *
848 851
 	 * @return array
849 852
 	 */
@@ -873,7 +876,7 @@  discard block
 block discarded – undo
873 876
 	}
874 877
 
875 878
 	/**
876
-	 * @param string|array $templateList If passed as a string with .ss extension, used as the "main" template.
879
+	 * @param string|array $templates If passed as a string with .ss extension, used as the "main" template.
877 880
 	 *  If passed as an array, it can be used for template inheritance (first found template "wins").
878 881
 	 *  Usually the array values are PHP class names, which directly correlate to template names.
879 882
 	 *  <code>
@@ -1227,7 +1230,7 @@  discard block
 block discarded – undo
1227 1230
 	 * @param string $template Template name
1228 1231
 	 * @param mixed $data Data context
1229 1232
 	 * @param array $arguments Additional arguments
1230
-	 * @return string Evaluated result
1233
+	 * @return DBHTMLText Evaluated result
1231 1234
 	 */
1232 1235
 	public static function execute_template($template, $data, $arguments = null, $scope = null) {
1233 1236
 		$v = new SSViewer($template);
@@ -1253,6 +1256,9 @@  discard block
 block discarded – undo
1253 1256
 		return $v->process($data, $arguments);
1254 1257
 	}
1255 1258
 
1259
+	/**
1260
+	 * @param string $content
1261
+	 */
1256 1262
 	public function parseTemplateContent($content, $template="") {
1257 1263
 		return $this->getParser()->compileString(
1258 1264
 			$content,
@@ -1282,7 +1288,7 @@  discard block
 block discarded – undo
1282 1288
 	 * Return an appropriate base tag for the given template.
1283 1289
 	 * It will be closed on an XHTML document, and unclosed on an HTML document.
1284 1290
 	 *
1285
-	 * @param $contentGeneratedSoFar The content of the template generated so far; it should contain
1291
+	 * @param string $contentGeneratedSoFar The content of the template generated so far; it should contain
1286 1292
 	 * the DOCTYPE declaration.
1287 1293
 	 */
1288 1294
 	public static function get_base_tag($contentGeneratedSoFar) {
@@ -1323,6 +1329,9 @@  discard block
 block discarded – undo
1323 1329
 	 */
1324 1330
 	protected $cacheTemplate;
1325 1331
 
1332
+	/**
1333
+	 * @param string $content
1334
+	 */
1326 1335
 	public function __construct($content, TemplateParser $parser = null) {
1327 1336
 		if ($parser) {
1328 1337
 			$this->setParser($parser);
Please login to merge, or discard this patch.
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   +22 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,6 +64,10 @@  discard block
 block discarded – undo
64 64
 	 */
65 65
 	protected $config;
66 66
 
67
+	/**
68
+	 * @param string $name
69
+	 * @param string $title
70
+	 */
67 71
 	public function __construct($name, $title = null, $value = ""){
68 72
 		$this->config = $this->config()->default_config;
69 73
 
@@ -74,6 +78,9 @@  discard block
 block discarded – undo
74 78
 		parent::__construct($name, $title, $value);
75 79
 	}
76 80
 
81
+	/**
82
+	 * @param Form $form
83
+	 */
77 84
 	public function setForm($form) {
78 85
 		parent::setForm($form);
79 86
 
@@ -84,6 +91,9 @@  discard block
 block discarded – undo
84 91
 		return $this;
85 92
 	}
86 93
 
94
+	/**
95
+	 * @param string $name
96
+	 */
87 97
 	public function setName($name) {
88 98
 		parent::setName($name);
89 99
 
@@ -96,7 +106,7 @@  discard block
 block discarded – undo
96 106
 
97 107
 	/**
98 108
 	 * @param array $properties
99
-	 * @return string
109
+	 * @return DBHTMLText
100 110
 	 */
101 111
 	public function FieldHolder($properties = array()) {
102 112
 		$config = array(
@@ -110,7 +120,7 @@  discard block
 block discarded – undo
110 120
 
111 121
 	/**
112 122
 	 * @param array $properties
113
-	 * @return string
123
+	 * @return DBHTMLText
114 124
 	 */
115 125
 	public function Field($properties = array()) {
116 126
 		Requirements::css(FRAMEWORK_DIR . '/client/dist/styles/DatetimeField.css');
@@ -223,6 +233,9 @@  discard block
 block discarded – undo
223 233
 		return $this;
224 234
 	}
225 235
 
236
+	/**
237
+	 * @param boolean $bool
238
+	 */
226 239
 	public function setReadonly($bool) {
227 240
 		parent::setReadonly($bool);
228 241
 		$this->dateField->setReadonly($bool);
@@ -240,6 +253,7 @@  discard block
 block discarded – undo
240 253
 
241 254
 	/**
242 255
 	 * @param FormField
256
+	 * @param DateField $field
243 257
 	 */
244 258
 	public function setDateField($field) {
245 259
 		$expected = $this->getName() . '[date]';
@@ -265,6 +279,7 @@  discard block
 block discarded – undo
265 279
 
266 280
 	/**
267 281
 	 * @param FormField
282
+	 * @param TimeField $field
268 283
 	 */
269 284
 	public function setTimeField($field) {
270 285
 		$expected = $this->getName() . '[time]';
@@ -312,7 +327,7 @@  discard block
 block discarded – undo
312 327
 	 * to set field-specific config options.
313 328
 	 *
314 329
 	 * @param string $name
315
-	 * @param mixed $val
330
+	 * @param string $val
316 331
 	 */
317 332
 	public function setConfig($name, $val) {
318 333
 		$this->config[$name] = $val;
@@ -330,7 +345,7 @@  discard block
 block discarded – undo
330 345
 	 * to get field-specific config options.
331 346
 	 *
332 347
 	 * @param String $name Optional, returns the whole configuration array if empty
333
-	 * @return mixed
348
+	 * @return string|null
334 349
 	 */
335 350
 	public function getConfig($name = null) {
336 351
 		if($name) {
@@ -340,6 +355,9 @@  discard block
 block discarded – undo
340 355
 		}
341 356
 	}
342 357
 
358
+	/**
359
+	 * @param RequiredFields $validator
360
+	 */
343 361
 	public function validate($validator) {
344 362
 		$dateValid = $this->dateField->validate($validator);
345 363
 		$timeValid = $this->timeField->validate($validator);
Please login to merge, or discard this patch.
admin/code/LeftAndMain.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	/**
208 208
 	 * Gets the combined configuration of all LeafAndMain subclasses required by the client app.
209 209
 	 *
210
-	 * @return array
210
+	 * @return string
211 211
 	 *
212 212
 	 * WARNING: Experimental API
213 213
 	 */
@@ -639,6 +639,9 @@  discard block
 block discarded – undo
639 639
 		}
640 640
 	}
641 641
 
642
+	/**
643
+	 * @param SS_HTTPRequest $request
644
+	 */
642 645
 	public function index($request) {
643 646
 		return $this->getResponseNegotiator()->respond($request);
644 647
 	}
@@ -1953,7 +1956,7 @@  discard block
 block discarded – undo
1953 1956
 	}
1954 1957
 
1955 1958
 	/**
1956
-	 * @return String
1959
+	 * @return DBField
1957 1960
 	 */
1958 1961
 	public function Locale() {
1959 1962
 		return DBField::create_field('Locale', i18n::get_locale());
@@ -2119,6 +2122,9 @@  discard block
 block discarded – undo
2119 2122
 		return (parent::isFinished() || $this->isFinished);
2120 2123
 	}
2121 2124
 
2125
+	/**
2126
+	 * @param boolean $bool
2127
+	 */
2122 2128
 	public function setIsFinished($bool) {
2123 2129
 		$this->isFinished = $bool;
2124 2130
 	}
Please login to merge, or discard this patch.
forms/CompositeField.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -214,6 +214,9 @@  discard block
 block discarded – undo
214 214
 
215 215
 
216 216
 
217
+	/**
218
+	 * @param boolean $disabled
219
+	 */
217 220
 	public function setDisabled($disabled) {
218 221
 		parent::setDisabled($disabled);
219 222
 		foreach($this->getChildren() as $child) {
@@ -222,6 +225,9 @@  discard block
 block discarded – undo
222 225
 		return $this;
223 226
 	}
224 227
 
228
+	/**
229
+	 * @param boolean $readonly
230
+	 */
225 231
 	public function setReadonly($readonly)
226 232
 	{
227 233
 		parent::setReadonly($readonly);
@@ -367,6 +373,9 @@  discard block
 block discarded – undo
367 373
 		return $clone;
368 374
 	}
369 375
 
376
+	/**
377
+	 * @return boolean
378
+	 */
370 379
 	public function IsReadonly() {
371 380
 		return $this->readonly;
372 381
 	}
@@ -376,6 +385,7 @@  discard block
 block discarded – undo
376 385
 	 * the children collection. Doesn't work recursively.
377 386
 	 *
378 387
 	 * @param string|FormField
388
+	 * @param string $field
379 389
 	 * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't
380 390
 	 *             be found.
381 391
 	 */
Please login to merge, or discard this patch.
forms/MoneyField.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,6 +60,10 @@  discard block
 block discarded – undo
60 60
 		return $this->fieldAmount;
61 61
 	}
62 62
 
63
+	/**
64
+	 * @param string $name
65
+	 * @param string $title
66
+	 */
63 67
 	public function __construct($name, $title = null, $value = "") {
64 68
 		$this->setName($name);
65 69
 
@@ -132,7 +136,7 @@  discard block
 block discarded – undo
132 136
 	 *
133 137
 	 * (see @link MoneyFieldTest_CustomSetter_Object for more information)
134 138
 	 *
135
-	 * @param DataObjectInterface|Object $dataObject
139
+	 * @param DataObjectInterface $dataObject
136 140
 	 */
137 141
 	public function saveInto(DataObjectInterface $dataObject) {
138 142
 		$fieldName = $this->getName();
@@ -161,6 +165,9 @@  discard block
 block discarded – undo
161 165
 		return $clone;
162 166
 	}
163 167
 
168
+	/**
169
+	 * @param boolean $bool
170
+	 */
164 171
 	public function setReadonly($bool) {
165 172
 		parent::setReadonly($bool);
166 173
 
Please login to merge, or discard this patch.