@@ -802,6 +802,10 @@ |
||
802 | 802 | public $First; |
803 | 803 | public $Second; |
804 | 804 | |
805 | + /** |
|
806 | + * @param string $first |
|
807 | + * @param string $second |
|
808 | + */ |
|
805 | 809 | public function __construct($first, $second) { |
806 | 810 | $this->First = $first; |
807 | 811 | $this->Second = $second; |
@@ -1117,6 +1117,10 @@ |
||
1117 | 1117 | ); |
1118 | 1118 | } |
1119 | 1119 | |
1120 | + /** |
|
1121 | + * @param DataObjectTest_Team $object |
|
1122 | + * @param string $method |
|
1123 | + */ |
|
1120 | 1124 | protected function makeAccessible($object, $method) { |
1121 | 1125 | $reflectionMethod = new ReflectionMethod($object, $method); |
1122 | 1126 | $reflectionMethod->setAccessible(true); |
@@ -512,7 +512,7 @@ |
||
512 | 512 | * Get the HTML class attribute from a node in the sitetree |
513 | 513 | * |
514 | 514 | * @param $html |
515 | - * @param $node |
|
515 | + * @param DataObject|null $node |
|
516 | 516 | * @return string |
517 | 517 | */ |
518 | 518 | protected function getNodeClassFromTree($html, $node) { |
@@ -175,6 +175,10 @@ |
||
175 | 175 | |
176 | 176 | class GroupTest_MemberForm extends Form { |
177 | 177 | |
178 | + /** |
|
179 | + * @param GroupTest $controller |
|
180 | + * @param string $name |
|
181 | + */ |
|
178 | 182 | public function __construct($controller, $name) { |
179 | 183 | $fields = singleton('GroupTest_Member')->getCMSFields(); |
180 | 184 | $actions = new FieldList( |
@@ -913,6 +913,9 @@ |
||
913 | 913 | */ |
914 | 914 | class MemberTest_ValidatorExtension extends DataExtension implements TestOnly { |
915 | 915 | |
916 | + /** |
|
917 | + * @param Member_Validator $validator |
|
918 | + */ |
|
916 | 919 | public function updateValidator(&$validator) { |
917 | 920 | $validator->addRequiredField('Surname'); |
918 | 921 | $validator->removeRequiredField('FirstName'); |
@@ -580,6 +580,8 @@ discard block |
||
580 | 580 | /** |
581 | 581 | * Execute a log-in form using Director::test(). |
582 | 582 | * Helper method for the tests above |
583 | + * @param string $email |
|
584 | + * @param string $password |
|
583 | 585 | */ |
584 | 586 | public function doTestLoginForm($email, $password, $backURL = 'test/link') { |
585 | 587 | $this->get(Config::inst()->get('Security', 'logout_url')); |
@@ -600,6 +602,8 @@ discard block |
||
600 | 602 | |
601 | 603 | /** |
602 | 604 | * Helper method to execute a change password form |
605 | + * @param string $oldPassword |
|
606 | + * @param string $newPassword |
|
603 | 607 | */ |
604 | 608 | public function doTestChangepasswordForm($oldPassword, $newPassword) { |
605 | 609 | return $this->submitForm( |
@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | "Versioned('Stage', 'Live')" |
29 | 29 | ); |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $entropy |
|
33 | + */ |
|
31 | 34 | public function setEntropy($entropy) { |
32 | 35 | $this->entropy = $entropy; |
33 | 36 | } |
@@ -53,6 +56,9 @@ discard block |
||
53 | 56 | SS_Cache::set_cache_lifetime('cacheblock', $cacheOn ? 600 : -1); |
54 | 57 | } |
55 | 58 | |
59 | + /** |
|
60 | + * @param string $template |
|
61 | + */ |
|
56 | 62 | protected function _runtemplate($template, $data = null) { |
57 | 63 | if ($data === null) $data = $this->data; |
58 | 64 | if (is_array($data)) $data = $this->data->customise($data); |
@@ -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) { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * Set a different instance than {@link Upload_Validator} |
115 | 115 | * for this upload session. |
116 | 116 | * |
117 | - * @param object $validator |
|
117 | + * @param Upload_Validator $validator |
|
118 | 118 | */ |
119 | 119 | public function setValidator($validator) { |
120 | 120 | $this->validator = $validator; |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | /** |
364 | 364 | * Determines wether previous operations caused an error. |
365 | 365 | * |
366 | - * @return boolean |
|
366 | + * @return integer |
|
367 | 367 | */ |
368 | 368 | public function isError() { |
369 | 369 | return (count($this->errors)); |