Skip to content

Commit

Permalink
Update HealthChecks.php
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Oct 2, 2024
1 parent 63cac8a commit 141d0db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HealthChecks.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private function checkHeaders(): void
if ($this->headersSet) {
return;
}
$this->headers = ["User-Agent: Pancake/0.11 (+https://github.com/guibranco/pancake)", "Content-Type: application/json; charset=utf-8"];
$this->headers = [Constants::USER_AGENT_HEADER, Constants::CONTENT_TYPE_JSON_HEADER];

Check warning

Code scanning / Phpcs (reported by Codacy)

Array with multiple values cannot be declared on a single line Warning

Array with multiple values cannot be declared on a single line
}

public function setHeaders($headers): void
Expand Down

0 comments on commit 141d0db

Please sign in to comment.