Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacastelnuovo authored and github-actions[bot] committed May 1, 2024
1 parent 52c5cf2 commit 32f012c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PrivateKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PrivateKey

public function __construct(string $privateKey = '')
{
if (!$privateKey) {
if (! $privateKey) {
$result = Process::pipe([
'age-keygen',
'grep -E "^AGE-SECRET-KEY-[A-Za-z0-9]{59}$"',
Expand All @@ -29,7 +29,7 @@ public function __construct(string $privateKey = '')

$privateKey = str($privateKey)->trim();

if (!$privateKey->startsWith('AGE-SECRET-KEY-') || $privateKey->length() !== 74) {
if (! $privateKey->startsWith('AGE-SECRET-KEY-') || $privateKey->length() !== 74) {
throw new Exception('Invalid private key provided!');
}

Expand Down

0 comments on commit 32f012c

Please sign in to comment.