@@ -145,16 +145,16 @@ public function returnPaginated(
145
145
/**
146
146
* Returns a HTTP response with the provided data encoded as JSON.
147
147
*/
148
- public function returnArray (array $ data, $ flags = null ): HTTPResponse
148
+ public function returnArray (array $ data ): HTTPResponse
149
149
{
150
- return $ this ->getResponse ()->setBody (json_encode ($ data, $ flags ));
150
+ return $ this ->getResponse ()->setBody (json_encode ($ data ));
151
151
}
152
152
153
153
154
154
/**
155
155
* Convert a provided DataList to a PaginatedList and return the source.
156
156
*/
157
- public function prepList (SS_List $ list , ?callable $ keyFunc = null , ?callable $ dataFunc = null , ): array
157
+ public function prepList (SS_List $ list , ?callable $ keyFunc = null , ?callable $ dataFunc = null ): array
158
158
{
159
159
$ output = [];
160
160
@@ -184,7 +184,12 @@ public function prepList(SS_List $list, ?callable $keyFunc = null, ?callable $da
184
184
/**
185
185
* Convert a provided List to a PaginatedList and return the source.
186
186
*/
187
- public function prepPaginatedOutput (SS_List $ list , ?callable $ keyFunc = null , ?callable $ dataFunc = null , ?int $ pageLength = null ): array
187
+ public function prepPaginatedOutput (
188
+ SS_List $ list ,
189
+ ?callable $ keyFunc = null ,
190
+ ?callable $ dataFunc = null ,
191
+ ?int $ pageLength = null
192
+ ): array {
188
193
{
189
194
$ list = PaginatedList::create ($ list , $ this ->request );
190
195
0 commit comments