Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit f95eed6

Browse files
author
Sven Speckmaier
committed
removed unnecessary json_encode
1 parent 654f9e3 commit f95eed6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/Http/Controllers/Api/HealthController.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
class HealthController extends ApiController
66
{
7-
public function health() {
7+
public function health()
8+
{
89

910
if ( file_put_contents( storage_path('health.txt'), date('Y-m-d H:i:s') ) === FALSE)
1011
return $this->respond(503, 'storage unavailable' );
@@ -15,12 +16,13 @@ public function health() {
1516
/**
1617
*
1718
*/
18-
private function respond($code, $message) {
19+
private function respond($code, $message)
20+
{
1921

20-
$data = json_encode([
22+
$data = [
2123
'status' => $code,
2224
'message' => $message,
23-
]);
25+
];
2426

2527
return $this->respondData($data, $code);
2628
}

0 commit comments

Comments
 (0)