@@ -70,7 +70,7 @@ |
||
70 | 70 | $this->garbageCollection(); |
71 | 71 | } |
72 | 72 | |
73 | - public function get(string $key): ?Password |
|
73 | + public function get(string $key): ? Password |
|
74 | 74 | { |
75 | 75 | $password = null; |
76 | 76 |
@@ -16,10 +16,10 @@ |
||
16 | 16 | abstract class Storage |
17 | 17 | { |
18 | 18 | abstract public function store(Password $password, bool $allowOverwrite = false): void; |
19 | - abstract public function get(string $key): ?Password; |
|
19 | + abstract public function get(string $key): ? Password; |
|
20 | 20 | abstract public function delete(Password $password): void; |
21 | 21 | |
22 | - public function getPasswordFromJson(string $jsonData): ?Password |
|
22 | + public function getPasswordFromJson(string $jsonData): ? Password |
|
23 | 23 | { |
24 | 24 | $password = null; |
25 | 25 | if (($jsonObject = json_decode($jsonData)) |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $this->client->expireat($password->getId(), $password->getTtl()); |
37 | 37 | } |
38 | 38 | |
39 | - public function get(string $key): ?Password |
|
39 | + public function get(string $key): ? Password |
|
40 | 40 | { |
41 | 41 | $password = null; |
42 | 42 | if (($passwordData = $this->client->get($key))) { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $this->writeFile($password); |
56 | 56 | } |
57 | 57 | |
58 | - public function get(string $key): ?Password |
|
58 | + public function get(string $key): ? Password |
|
59 | 59 | { |
60 | 60 | $password = null; |
61 | 61 | if (file_exists($this->getFileNameFromKey($key)) |