@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | /** |
56 | 56 | * @param SS_HTTPRequest $request |
57 | - * @return null |
|
57 | + * @return SS_HTTPResponse|null |
|
58 | 58 | * @throws RestUserException |
59 | 59 | */ |
60 | 60 | public function head(SS_HTTPRequest $request) { |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * The given data will be serialized into an html string using a Silverstripe template. |
24 | 24 | * |
25 | 25 | * @param array $data |
26 | - * @return string an html string |
|
26 | + * @return \HTMLText an html string |
|
27 | 27 | */ |
28 | 28 | public function serialize($data) { |
29 | 29 | $list = $this->recursive($data, 1); |
@@ -34,6 +34,9 @@ discard block |
||
34 | 34 | return $this->contentType; |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param integer $level |
|
39 | + */ |
|
37 | 40 | private function recursive($data, $level) { |
38 | 41 | $list = []; |
39 | 42 | if(is_array($data)) { |