@@ -619,6 +619,11 @@ |
||
619 | 619 | 'ObjectTest_Extending_Extension' |
620 | 620 | ); |
621 | 621 | |
622 | + /** |
|
623 | + * @param integer $first |
|
624 | + * @param integer $second |
|
625 | + * @param integer $third |
|
626 | + */ |
|
622 | 627 | public function getResults(&$first, &$second, &$third) { |
623 | 628 | // Before extending should be invoked second |
624 | 629 | $this->beforeExtending('updateResult', function(&$first, &$second, &$third) { |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | * |
380 | 380 | * Note that columns may be double quoted as per ANSI sql standard |
381 | 381 | * |
382 | - * @return DataList |
|
382 | + * @return ArrayList |
|
383 | 383 | * @see SS_List::sort() |
384 | 384 | * @example $list->sort('Name'); // default ASC sorting |
385 | 385 | * @example $list->sort('Name DESC'); // DESC sorting |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | * $list = $list->filterAny(array('Name'=>array('bob','phil'), 'Age'=>array(21, 43))); |
516 | 516 | * |
517 | 517 | * @param string|array See {@link filter()} |
518 | - * @return DataList |
|
518 | + * @return ArrayList |
|
519 | 519 | */ |
520 | 520 | public function filterAny() { |
521 | 521 | $keepUs = call_user_func_array(array($this, 'normaliseFilterArgs'), func_get_args()); |
@@ -582,6 +582,9 @@ discard block |
||
582 | 582 | return $this->filter('ID', $ids); |
583 | 583 | } |
584 | 584 | |
585 | + /** |
|
586 | + * @param integer $id |
|
587 | + */ |
|
585 | 588 | public function byID($id) { |
586 | 589 | $firstElement = $this->filter("ID", $id)->first(); |
587 | 590 | |
@@ -666,7 +669,6 @@ discard block |
||
666 | 669 | /** |
667 | 670 | * Returns whether an item with $key exists |
668 | 671 | * |
669 | - * @param mixed $key |
|
670 | 672 | * @return bool |
671 | 673 | */ |
672 | 674 | public function offsetExists($offset) { |
@@ -676,7 +678,6 @@ discard block |
||
676 | 678 | /** |
677 | 679 | * Returns item stored in list with index $key |
678 | 680 | * |
679 | - * @param mixed $key |
|
680 | 681 | * @return DataObject |
681 | 682 | */ |
682 | 683 | public function offsetGet($offset) { |
@@ -686,7 +687,6 @@ discard block |
||
686 | 687 | /** |
687 | 688 | * Set an item with the key in $key |
688 | 689 | * |
689 | - * @param mixed $key |
|
690 | 690 | * @param mixed $value |
691 | 691 | */ |
692 | 692 | public function offsetSet($offset, $value) { |
@@ -700,7 +700,6 @@ discard block |
||
700 | 700 | /** |
701 | 701 | * Unset an item with the key in $key |
702 | 702 | * |
703 | - * @param mixed $key |
|
704 | 703 | */ |
705 | 704 | public function offsetUnset($offset) { |
706 | 705 | unset($this->items[$offset]); |
@@ -146,7 +146,7 @@ |
||
146 | 146 | * Add a number of items to the relation. |
147 | 147 | * |
148 | 148 | * @param array $items Items to add, as either DataObjects or IDs. |
149 | - * @return DataList |
|
149 | + * @return UnsavedRelationList |
|
150 | 150 | */ |
151 | 151 | public function addMany($items) { |
152 | 152 | foreach($items as $item) { |
@@ -111,6 +111,8 @@ discard block |
||
111 | 111 | |
112 | 112 | /** |
113 | 113 | * Override the function that constructs the result arrays to also prepare a 'php' item in the array |
114 | + * @param string $matchrule |
|
115 | + * @param string $name |
|
114 | 116 | */ |
115 | 117 | function construct($matchrule, $name, $arguments = null) { |
116 | 118 | $res = parent::construct($matchrule, $name, $arguments); |
@@ -172,9 +174,9 @@ discard block |
||
172 | 174 | |
173 | 175 | /** |
174 | 176 | * Ensures that the arguments to addOpenBlock and addClosedBlock are valid |
175 | - * @param $name |
|
176 | - * @param $callable |
|
177 | - * @param $type |
|
177 | + * @param string $name |
|
178 | + * @param callable $callable |
|
179 | + * @param string $type |
|
178 | 180 | * @throws InvalidArgumentException |
179 | 181 | */ |
180 | 182 | protected function validateExtensionBlock($name, $callable, $type) { |
@@ -737,6 +739,7 @@ discard block |
||
737 | 739 | * The basic generated PHP of LookupStep and LastLookupStep is the same, except that LookupStep calls 'obj' to |
738 | 740 | * get the next ViewableData in the sequence, and LastLookupStep calls different methods (XML_val, hasValue, obj) |
739 | 741 | * depending on the context the lookup is used in. |
742 | + * @param string $method |
|
740 | 743 | */ |
741 | 744 | function Lookup_AddLookupStep(&$res, $sub, $method) { |
742 | 745 | $res['LookupSteps'][] = $sub; |
@@ -4691,8 +4694,8 @@ discard block |
||
4691 | 4694 | * Compiles some passed template source code into the php code that will execute as per the template source. |
4692 | 4695 | * |
4693 | 4696 | * @throws SSTemplateParseException |
4694 | - * @param $string The source of the template |
|
4695 | - * @param string $templateName The name of the template, normally the filename the template source was loaded from |
|
4697 | + * @param string $string The source of the template |
|
4698 | + * @param string string The name of the template, normally the filename the template source was loaded from |
|
4696 | 4699 | * @param bool $includeDebuggingComments True is debugging comments should be included in the output |
4697 | 4700 | * @param bool $topTemplate True if this is a top template, false if it's just a template |
4698 | 4701 | * @return mixed|string The php that, when executed (via include or exec) will behave as per the template source |
@@ -4732,6 +4735,7 @@ discard block |
||
4732 | 4735 | |
4733 | 4736 | /** |
4734 | 4737 | * @param string $code |
4738 | + * @param string $templateName |
|
4735 | 4739 | * @return string $code |
4736 | 4740 | */ |
4737 | 4741 | protected function includeDebuggingComments($code, $templateName) { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | /** |
101 | 101 | * Get value of display_errors ini value |
102 | 102 | * |
103 | - * @return mixed |
|
103 | + * @return string |
|
104 | 104 | */ |
105 | 105 | protected function getDisplayErrors() { |
106 | 106 | return ini_get('display_errors'); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * Add this callback to the chain of callbacks to call along with the state |
111 | 111 | * that $error must be in this point in the chain for the callback to be called |
112 | 112 | * |
113 | - * @param $callback - The callback to call |
|
113 | + * @param callable $callback - The callback to call |
|
114 | 114 | * @param $onErrorState - false if only call if no errors yet, true if only call if already errors, null for either |
115 | 115 | * @return $this |
116 | 116 | */ |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | /** |
380 | 380 | * Return the IDs of all the marked nodes. |
381 | 381 | * |
382 | - * @return array |
|
382 | + * @return integer[] |
|
383 | 383 | */ |
384 | 384 | public function markedNodeIDs() { |
385 | 385 | return array_keys($this->markedNodes); |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | * Get the next node in the tree of the type. If there is no instance of the className descended from this node, |
757 | 757 | * then search the parents. |
758 | 758 | * @param string $className Class name of the node to find. |
759 | - * @param string|int $root ID/ClassName of the node to limit the search to |
|
759 | + * @param integer $root ID/ClassName of the node to limit the search to |
|
760 | 760 | * @param DataObject $afterNode Used for recursive calls to this function |
761 | 761 | * @return DataObject |
762 | 762 | */ |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * Modify method visibility to public for testing |
26 | 26 | * |
27 | - * @param mixed $errors |
|
27 | + * @param string $errors |
|
28 | 28 | */ |
29 | 29 | public function setDisplayErrors($errors) |
30 | 30 | { |
@@ -33,6 +33,10 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | // Change function visibility to be testable directly |
36 | + |
|
37 | + /** |
|
38 | + * @param string $memstring |
|
39 | + */ |
|
36 | 40 | public function translateMemstring($memstring) { |
37 | 41 | return parent::translateMemstring($memstring); |
38 | 42 | } |
@@ -200,7 +200,7 @@ |
||
200 | 200 | * |
201 | 201 | * @todo refactor this into GridFieldComponent |
202 | 202 | * |
203 | - * @param mixed $value |
|
203 | + * @param string $value |
|
204 | 204 | * @param string|array $castingDefinition |
205 | 205 | * |
206 | 206 | * @return mixed |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * |
212 | 212 | * @todo Mix in custom column mappings |
213 | 213 | * |
214 | - * @return array |
|
214 | + * @return string |
|
215 | 215 | **/ |
216 | 216 | public function getImportSpec() { |
217 | 217 | $spec = array(); |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * so this is mainly a customization method. |
238 | 238 | * |
239 | 239 | * @param mixed $val |
240 | - * @param string $field Name of the field as specified in the array-values for {@link self::$columnMap}. |
|
240 | + * @param string $fieldName Name of the field as specified in the array-values for {@link self::$columnMap}. |
|
241 | 241 | * @return boolean |
242 | 242 | */ |
243 | 243 | protected function isNullValue($val, $fieldName = null) { |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | |
362 | 362 | /** |
363 | 363 | * @param $obj DataObject |
364 | - * @param $message string |
|
364 | + * @param string $message string |
|
365 | 365 | */ |
366 | 366 | public function addCreated($obj, $message = null) { |
367 | 367 | $this->created[] = $this->lastChange = array( |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | |
375 | 375 | /** |
376 | 376 | * @param $obj DataObject |
377 | - * @param $message string |
|
377 | + * @param string $message string |
|
378 | 378 | */ |
379 | 379 | public function addUpdated($obj, $message = null) { |
380 | 380 | $this->updated[] = $this->lastChange = array( |
@@ -386,8 +386,8 @@ discard block |
||
386 | 386 | } |
387 | 387 | |
388 | 388 | /** |
389 | - * @param $obj DataObject |
|
390 | - * @param $message string |
|
389 | + * @param DataObject|null $obj DataObject |
|
390 | + * @param string $message string |
|
391 | 391 | */ |
392 | 392 | public function addDeleted($obj, $message = null) { |
393 | 393 | $data = $obj->toMap(); |