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

Commit 53bcdc1

Browse files
author
Robert Kummer
authored
Merge pull request #23 from ipunkt/analysis-zDbmEL
Apply fixes from StyleCI
2 parents 00b8175 + 59dbb5a commit 53bcdc1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/Http/Controllers/Api/HealthController.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class HealthController extends ApiController
88
{
99
public function health()
1010
{
11-
$healthCheckFile = storage_path('health.txt');
11+
$healthCheckFile = storage_path('health.txt');
1212

13-
if (@file_put_contents($healthCheckFile, date('Y-m-d H:i:s')) === false)
14-
return $this->respond(503, 'storage unavailable');
13+
if (@file_put_contents($healthCheckFile, date('Y-m-d H:i:s')) === false) {
14+
return $this->respond(503, 'storage unavailable');
15+
}
1516

17+
@unlink($healthCheckFile);
1618

17-
@unlink($healthCheckFile);
18-
19-
return $this->respond(200, 'healthy');
19+
return $this->respond(200, 'healthy');
2020
}
2121

2222
/**

0 commit comments

Comments
 (0)