8000 Fixes in ResponsesHelper · sablesoft/laravel-json-api@23f7eba · GitHub
[go: up one dir, main page]

Skip to content

Commit 23f7eba

Browse files
committed
Fixes in ResponsesHelper
1 parent 93a55f0 commit 23f7eba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Http/Responses/ResponsesHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ public function meta($meta, $statusCode = Response::HTTP_OK, array $headers = []
7373

7474
/**
7575
* @param mixed $data
76-
* @param int $statusCode
7776
* @param array $links
7877
* @param mixed|null $meta
78+
* @param int $statusCode
7979
* @param array $headers
8080
* @return Response
8181
*/
82-
public function content($data, $statusCode = Response::HTTP_OK, $links = [], $meta = null, array $headers = [])
82+
public function content($data, array $links = [], $meta = null, $statusCode = Response::HTTP_OK, array $headers = [])
8383
{
8484
if ($data instanceof Collection) {
8585
$data = $data->all();
@@ -101,7 +101,7 @@ public function content($data, $statusCode = Response::HTTP_OK, $links = [], $me
101101
* @param array $headers
102102
* @return mixed
103103
*/
104-
public function created($resource, $links = [], $meta = null, array $headers = [])
104+
public function created($resource, array $links = [], $meta = null, array $headers = [])
105105
{
106106
$encoder = $this->getEncoder();
107107
$options = $encoder->getEncoderOptions();

0 commit comments

Comments
 (0)
0