diff --git a/tests/_support/Controllers/Popcorn.php b/tests/_support/Controllers/Popcorn.php index 1e4cc232a99f..6178c828388f 100644 --- a/tests/_support/Controllers/Popcorn.php +++ b/tests/_support/Controllers/Popcorn.php @@ -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() @@ -65,7 +61,7 @@ public function cat() public function json() { - $this->responsd(['answer' => 42]); + $this->respond(['answer' => 42]); } public function xml()