Skip to content

Commit

Permalink
Snake case runtimeInMilliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrig committed Dec 29, 2023
1 parent 277811f commit bdd34a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Request info in response.

### Changed
- **BREAKING**: Snake case `runtimeInMilliseconds`.

## [0.5.1] - 2023-03-10
### Added
- Uniqueness to custom "about" information.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The endpoint will return data in JSON.
"slug": "database",
"group": "core",
"description": "Check all database connections.",
"runtimeInMilliseconds": 10,
"runtime_in_milliseconds": 10,
"result": {
"value": 1,
"message": "Connected to all databases.",
Expand Down
2 changes: 1 addition & 1 deletion src/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private function checkToArray(Check $check): array
'group' => $check->group ?? 'other',
'description' => $check->description,
'result' => $check->run()->toArray(),
'runtimeInMilliseconds' => $start->diffInMilliseconds(),
'runtime_in_milliseconds' => $start->diffInMilliseconds(),
];
}

Expand Down
2 changes: 1 addition & 1 deletion tests/RepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function test_invoke_returns_correct_default_information()
'slug' => 'test-check',
'group' => 'other',
'description' => 'A test check',
'runtimeInMilliseconds' => 100,
'runtime_in_milliseconds' => 100,
'result' => [
'value' => null,
'message' => 'Looking good.',
Expand Down

0 comments on commit bdd34a3

Please sign in to comment.