Skip to content

Commit

Permalink
Merge pull request #2770 from mostafakhudair/develop
Browse files Browse the repository at this point in the history
fix json function clean useless variables
  • Loading branch information
MGatner authored Mar 28, 2020
2 parents 1dc6216 + 280c445 commit fa225ab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/_support/Controllers/Popcorn.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ public function goaway()
// @see https://github.com/codeigniter4/CodeIgniter4/issues/1834
public function index3()
{
$response = $this->response->setJSON([
'lang' => $this->request->getLocale(),
]);

return $response;
return $this->response->setJSON(['lang' => $this->request->getLocale()]);
}

public function canyon()
Expand All @@ -65,7 +61,7 @@ public function cat()

public function json()
{
$this->responsd(['answer' => 42]);
$this->respond(['answer' => 42]);
}

public function xml()
Expand Down

0 comments on commit fa225ab

Please sign in to comment.