@@ -130,6 +130,9 @@ |
||
130 | 130 | return false; |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param string $data |
|
135 | + */ |
|
133 | 136 | static function base64_url_encode($data) { |
134 | 137 | return rtrim(base64_encode($data), '='); |
135 | 138 | } |
@@ -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)) { |
@@ -28,10 +28,16 @@ |
||
28 | 28 | |
29 | 29 | class PaginationTestController extends SS_Object implements TestOnly { |
30 | 30 | |
31 | + /** |
|
32 | + * @param SS_HTTPRequest $request |
|
33 | + */ |
|
31 | 34 | public function getLimit($request) { |
32 | 35 | return $this->limit($request); |
33 | 36 | } |
34 | 37 | |
38 | + /** |
|
39 | + * @param SS_HTTPRequest $request |
|
40 | + */ |
|
35 | 41 | public function getOffset($request) { |
36 | 42 | return $this->offset($request); |
37 | 43 | } |