Skip to content

Commit 0c7e829

Browse files
committed
fix
1 parent fd0752b commit 0c7e829

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Facades/System.php

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
/**
88
* @method static bool canPromptTouchID()
99
* @method static bool promptTouchID(string $reason)
10+
* @method static bool canEncrypt()
11+
* @method static string encrypt(string $string)
12+
* @method static string decrypt(string $string)
1013
* @method static array printers()
1114
* @method static void print(string $html, ?\Native\Laravel\DataObjects\Printer $printer = null)
1215
* @method static string printToPDF(string $reason)

src/System.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ public function canEncrypt(): bool
2727
return $this->client->get('system/can-encrypt')->json('result');
2828
}
2929

30-
public function encrypt(string $string): string
30+
public function encrypt(string $string): ?string
3131
{
32-
$this->client->post('system/encrypt', [
32+
return $this->client->post('system/encrypt', [
3333
'string' => $string,
3434
])->json('result');
3535
}
3636

37-
public function decrypt(string $string): string
37+
public function decrypt(string $string): ?string
3838
{
39-
$this->client->post('system/decrypt', [
39+
return $this->client->post('system/decrypt', [
4040
'string' => $string,
4141
])->json('result');
4242
}

0 commit comments

Comments
 (0)