Skip to content

Commit 08a3cee

Browse files
authored
Remove useless arrayflip (#365)
Signed-off-by: chadek <32199566+chadek@users.noreply.github.com>
1 parent e5b00c6 commit 08a3cee

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/JSONResponse.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ public function __construct($data = [], $statusCode = Http::STATUS_OK) {
4545
}
4646

4747
public function render() {
48-
// Convert the data to JSON format and return it
49-
$data = array_flip($this->data);
5048
return json_encode($this->data);
5149
}
5250

0 commit comments

Comments
 (0)