Completed
Push — master ( ecc9d6...65ba70 )
by Sam
11:30
created
api/RSSFeed.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 	 *
192 192
 	 * TODO: Pass $response object to ->outputToBrowser() to loosen dependence on global state for easier testing/prototyping so dev can inject custom SS_HTTPResponse instance.
193 193
 	 *
194
-	 * @return	HTMLText
194
+	 * @return	DBField
195 195
 	 */
196 196
 	public function outputToBrowser() {
197 197
 		$prevState = Config::inst()->get('SSViewer', 'source_file_comments');
@@ -222,6 +222,7 @@  discard block
 block discarded – undo
222 222
 	 * via the standard template inclusion process.
223 223
 	 *
224 224
 	 * @param string
225
+	 * @param string $template
225 226
 	 */
226 227
 	public function setTemplate($template) {
227 228
 		$this->template = $template;
@@ -318,6 +319,7 @@  discard block
 block discarded – undo
318 319
 	/**
319 320
 	 * Return the named field as an obj() call from $this->failover.
320 321
 	 * Default to the given class if there's no casting information.
322
+	 * @param string $fieldName
321 323
 	 */
322 324
 	public function rssField($fieldName, $defaultClass = 'Varchar') {
323 325
 		if($fieldName) {
Please login to merge, or discard this patch.
model/DataObject.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -558,8 +558,8 @@  discard block
 block discarded – undo
558 558
 
559 559
 	/**
560 560
 	 * Helper function to duplicate relations from one object to another
561
-	 * @param $sourceObject the source object to duplicate from
562
-	 * @param $destinationObject the destination object to populate with the duplicated relations
561
+	 * @param DataObject $sourceObject the source object to duplicate from
562
+	 * @param DataObject $destinationObject the destination object to populate with the duplicated relations
563 563
 	 * @param $name the name of the relation to duplicate (e.g. members)
564 564
 	 */
565 565
 	private function duplicateRelations($sourceObject, $destinationObject, $name) {
@@ -957,6 +957,7 @@  discard block
 block discarded – undo
957 957
 	 * @param $includeRelations Boolean Merge any existing relations (optional)
958 958
 	 * @param $overwriteWithEmpty Boolean Overwrite existing left values with empty right values.
959 959
 	 *                            Only applicable with $priority='right'. (optional)
960
+	 * @param DataObject|null $rightObj
960 961
 	 * @return Boolean
961 962
 	 */
962 963
 	public function merge($rightObj, $priority = 'right', $includeRelations = true, $overwriteWithEmpty = false) {
@@ -2243,6 +2244,7 @@  discard block
 block discarded – undo
2243 2244
 	 *
2244 2245
 	 * This is experimental, and is currently only a Postgres-specific enhancement.
2245 2246
 	 *
2247
+	 * @param string $class
2246 2248
 	 * @return array or false
2247 2249
 	 */
2248 2250
 	public function database_extensions($class){
@@ -2721,6 +2723,7 @@  discard block
 block discarded – undo
2721 2723
 
2722 2724
 	/**
2723 2725
 	 * {@inheritdoc}
2726
+	 * @param string $field
2724 2727
 	 */
2725 2728
 	public function castingHelper($field) {
2726 2729
 		if ($fieldSpec = $this->db($field)) {
@@ -3067,7 +3070,7 @@  discard block
 block discarded – undo
3067 3070
 	 * Traverses to a field referenced by relationships between data objects, returning the value
3068 3071
 	 * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
3069 3072
 	 *
3070
-	 * @param $fieldName string
3073
+	 * @param string $fieldName string
3071 3074
 	 * @return string | null - will return null on a missing value
3072 3075
 	 */
3073 3076
 	public function relField($fieldName) {
@@ -3136,7 +3139,7 @@  discard block
 block discarded – undo
3136 3139
 	 * @param string $callerClass The class of objects to be returned
3137 3140
 	 * @param string|array $filter A filter to be inserted into the WHERE clause.
3138 3141
 	 * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples.
3139
-	 * @param string|array $sort A sort expression to be inserted into the ORDER
3142
+	 * @param string $sort A sort expression to be inserted into the ORDER
3140 3143
 	 * BY clause.  If omitted, self::$default_sort will be used.
3141 3144
 	 * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
3142 3145
 	 * @param string|array $limit A limit expression to be inserted into the LIMIT clause.
@@ -3346,6 +3349,8 @@  discard block
 block discarded – undo
3346 3349
 	/**
3347 3350
 	 * @see $sourceQueryParams
3348 3351
 	 * @param array
3352
+	 * @param string $key
3353
+	 * @param string $value
3349 3354
 	 */
3350 3355
 	public function setSourceQueryParam($key, $value) {
3351 3356
 		$this->sourceQueryParams[$key] = $value;
@@ -3353,6 +3358,7 @@  discard block
 block discarded – undo
3353 3358
 
3354 3359
 	/**
3355 3360
 	 * @see $sourceQueryParams
3361
+	 * @param string $key
3356 3362
 	 * @return Mixed
3357 3363
 	 */
3358 3364
 	public function getSourceQueryParam($key) {
Please login to merge, or discard this patch.
control/Controller.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,6 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * {@inheritdoc}
133 133
 	 *
134 134
 	 * Also set the URLParams
135
+	 * @param SS_HTTPRequest $request
135 136
 	 */
136 137
 	public function setRequest($request) {
137 138
 		$return = parent::setRequest($request);
@@ -372,7 +373,7 @@  discard block
 block discarded – undo
372 373
 	 *
373 374
 	 * @param string $action
374 375
 	 *
375
-	 * @return HTMLText
376
+	 * @return DBField
376 377
 	 */
377 378
 	public function defaultAction($action) {
378 379
 		return $this->getViewer($action)->process($this);
@@ -508,7 +509,7 @@  discard block
 block discarded – undo
508 509
 	 *
509 510
 	 * @param array $params
510 511
 	 *
511
-	 * @return string
512
+	 * @return DBField
512 513
 	 */
513 514
 	public function render($params = null) {
514 515
 		$template = $this->getViewer($this->getAction());
@@ -673,7 +674,7 @@  discard block
 block discarded – undo
673 674
 	 * Tests whether a redirection has been requested. If redirect() has been called, it will return
674 675
 	 * the URL redirected to. Otherwise, it will return null.
675 676
 	 *
676
-	 * @return null|string
677
+	 * @return boolean
677 678
 	 */
678 679
 	public function redirectedTo() {
679 680
 		return $this->getResponse() && $this->getResponse()->getHeader('Location');
Please login to merge, or discard this patch.
control/RequestHandler.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,6 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
 	/**
123 123
 	 * Set the DataModel for this request.
124
+	 * @param DataModel $model
124 125
 	 */
125 126
 	public function setDataModel($model) {
126 127
 		$this->model = $model;
@@ -238,6 +239,9 @@  discard block
 block discarded – undo
238 239
 		return $this;
239 240
 	}
240 241
 
242
+	/**
243
+	 * @param SS_HTTPRequest $request
244
+	 */
241 245
 	protected function findAction($request) {
242 246
 		$handlerClass = ($this->class) ? $this->class : get_class($this);
243 247
 
@@ -271,7 +275,7 @@  discard block
 block discarded – undo
271 275
 	 *
272 276
 	 * Must not raise SS_HTTPResponse_Exceptions - instead it should return
273 277
 	 *
274
-	 * @param $request
278
+	 * @param SS_HTTPRequest $request
275 279
 	 * @param $action
276 280
 	 * @return SS_HTTPResponse
277 281
 	 */
@@ -384,6 +388,7 @@  discard block
 block discarded – undo
384 388
 
385 389
 	/**
386 390
 	 * Return the class that defines the given action, so that we know where to check allowed_actions.
391
+	 * @return string|null
387 392
 	 */
388 393
 	protected function definingClassForAction($actionOrigCasing) {
389 394
 		$action = strtolower($actionOrigCasing);
Please login to merge, or discard this patch.