@@ -902,7 +902,7 @@ |
||
902 | 902 | * |
903 | 903 | * @param array $data |
904 | 904 | * @param Form $form |
905 | - * @return DBHTMLText|HTTPResponse |
|
905 | + * @return null|HTTPResponse |
|
906 | 906 | */ |
907 | 907 | public function addtocampaign($data, $form) |
908 | 908 | { |
@@ -208,7 +208,7 @@ |
||
208 | 208 | * |
209 | 209 | * @param int $parentID |
210 | 210 | * @param int $maxDepth Hard limit of max depth |
211 | - * @return array List of parent IDs, including $parentID |
|
211 | + * @return integer[] List of parent IDs, including $parentID |
|
212 | 212 | */ |
213 | 213 | public static function nestedFolderIDs($parentID, $maxDepth = 5) |
214 | 214 | { |
@@ -51,6 +51,9 @@ |
||
51 | 51 | ->setConnectionResolver(array($this, 'resolveConnection')); |
52 | 52 | } |
53 | 53 | |
54 | + /** |
|
55 | + * @param \GraphQL\Type\Definition\ResolveInfo $info |
|
56 | + */ |
|
54 | 57 | public function resolveConnection($object, array $args, $context, $info) |
55 | 58 | { |
56 | 59 | $filter = (!empty($args['filter'])) ? $args['filter'] : []; |
@@ -77,6 +77,10 @@ discard block |
||
77 | 77 | return ['type']; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param null|RequestHandler $controller |
|
82 | + * @param string $name |
|
83 | + */ |
|
80 | 84 | protected function getFormFields($controller, $name, $context) |
81 | 85 | { |
82 | 86 | $formType = $context['type']; |
@@ -90,6 +94,10 @@ discard block |
||
90 | 94 | } |
91 | 95 | } |
92 | 96 | |
97 | + /** |
|
98 | + * @param null|RequestHandler $controller |
|
99 | + * @param string $name |
|
100 | + */ |
|
93 | 101 | protected function getFormActions($controller, $name, $context) |
94 | 102 | { |
95 | 103 | $actions = []; |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * Get the validator for the form to be built |
101 | 101 | * |
102 | 102 | * @param RequestHandler $controller |
103 | - * @param $formName |
|
103 | + * @param string $formName |
|
104 | 104 | * @param $context |
105 | 105 | * @return RequiredFields |
106 | 106 | */ |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | |
173 | 173 | /** |
174 | 174 | * @param RequestHandler $controller |
175 | - * @param $formName |
|
175 | + * @param string $formName |
|
176 | 176 | * @param array $context |
177 | 177 | * @return FieldList |
178 | 178 | */ |