Skip to content

Commit

Permalink
Fixed formatting to one line.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaswel committed Nov 18, 2020
1 parent 8a0e07d commit 20351c0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions system/API/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,16 @@ public function respond($data = null, int $status = null, string $message = '')
{
if ($this->format === 'json')
{
return $this->response->setJSON($output)
->setStatusCode($status, $message);
return $this->response->setJSON($output)->setStatusCode($status, $message);
}

if ($this->format === 'xml')
{
return $this->response->setXML($output)
->setStatusCode($status, $message);
return $this->response->setXML($output)->setStatusCode($status, $message);
}
}

return $this->response->setBody($output)
->setStatusCode($status, $message);
return $this->response->setBody($output)->setStatusCode($status, $message);
}

//--------------------------------------------------------------------
Expand Down

0 comments on commit 20351c0

Please sign in to comment.