Skip to content

Commit bd7fb0f

Browse files
NinerianOpencodeGitHub Copilot
committed
fix: apply operator_linebreak cs-fixer rule and fix phpstan warnings
- Fix operator_linebreak style in AbstractToken.php - Fix implicitly nullable parameters in PluginSessionTest.php - Fix array.invalidKey phpstan ignore in SSODataTest.php Co-Authored-By: Opencode <opencode@noreply.opencode.ai> Co-Authored-By: GitHub Copilot <copilot@noreply.github.com>
1 parent 084a076 commit bd7fb0f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/AbstractToken.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ public static function base64ToPEMPublicKey(string $data): string
157157
}
158158

159159
return
160-
"-----BEGIN PUBLIC KEY-----\n" .
161-
chunk_split($data, 64) .
162-
"-----END PUBLIC KEY-----\n";
160+
"-----BEGIN PUBLIC KEY-----\n"
161+
. chunk_split($data, 64)
162+
. "-----END PUBLIC KEY-----\n";
163163
}
164164

165165
/**

test/PluginSessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function tearDown(): void
7878
/**
7979
* @return void
8080
*/
81-
private function setupEnvironment(string $queryParamPid = null, string $queryParamJwt = null, bool $clearSession = true): void
81+
private function setupEnvironment(?string $queryParamPid = null, ?string $queryParamJwt = null, bool $clearSession = true): void
8282
{
8383

8484
$_REQUEST[PluginSession::QUERY_PARAM_PID] = $queryParamPid;

test/SSOData/SSODataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testAccessorsGiveCorrectValues(): void
5151
public function testIsEditorReturnsCorrectValues(): void
5252
{
5353
$map = [
54-
/** @phpstan-ignore array.duplicateKey */
54+
/** @phpstan-ignore array.invalidKey, array.duplicateKey */
5555
null => false,
5656
'' => false,
5757
'use' => false,

0 commit comments

Comments
 (0)