Skip to content

Commit

Permalink
Update OneSignal.php
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Oct 2, 2024
1 parent 1ac7a03 commit 36f24a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OneSignal.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public function __construct($token, $logger = null, $customUserAgent = null, $cu
$this->request = new Request();
$this->logger = $logger;
$this->headers = array(
"User-Agent: " . ($customUserAgent ?? "Pancake/0.11 (+https://github.com/guibranco/pancake)"),
"Content-Type: application/json; charset=utf-8",
"Authorization: Basic " . $token
"User-Agent: ".($customUserAgent ?? Constants::USER_AGENT_VENDOR),

Check warning

Code scanning / Phpcs (reported by Codacy)

Array value not aligned correctly; expected 26 spaces but found 12 Warning

Array value not aligned correctly; expected 26 spaces but found 12
Constants::CONTENT_TYPE_JSON_HEADER,

Check warning

Code scanning / Phpcs (reported by Codacy)

Array value not aligned correctly; expected 26 spaces but found 12 Warning

Array value not aligned correctly; expected 26 spaces but found 12
"Authorization: Basic ".$token

Check warning

Code scanning / Phpcs (reported by Codacy)

Comma required after last value in array declaration Warning

Comma required after last value in array declaration
);
$this->endpoint = $customEndpoint ?? self::BASE_URL;
}
Expand Down

0 comments on commit 36f24a0

Please sign in to comment.