Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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