@@ -56,7 +56,7 @@ |
||
56 | 56 | $jsonResponse = $this->getJsonResponse($result); |
57 | 57 | |
58 | 58 | return $jsonResponse; |
59 | - } catch(\GuzzleHttp\Exception\ClientException $e) { |
|
59 | + } catch (\GuzzleHttp\Exception\ClientException $e) { |
|
60 | 60 | return [ |
61 | 61 | 'code' => $e->getCode(), |
62 | 62 | 'message' => $e->getMessage() |
@@ -32,7 +32,9 @@ |
||
32 | 32 | public function get(): array |
33 | 33 | { |
34 | 34 | // No account has been set, return empty array. |
35 | - if (!isset($this->account)) return []; |
|
35 | + if (!isset($this->account)) { |
|
36 | + return []; |
|
37 | + } |
|
36 | 38 | |
37 | 39 | $url = $this->endpoint . 'pasteaccount/' . $this->account; |
38 | 40 | $pasteAccounts = $this->requestGet($url); |
@@ -36,7 +36,9 @@ |
||
36 | 36 | public function get(): array |
37 | 37 | { |
38 | 38 | // No account has been set, return empty array. |
39 | - if (!isset($this->account)) return []; |
|
39 | + if (!isset($this->account)) { |
|
40 | + return []; |
|
41 | + } |
|
40 | 42 | |
41 | 43 | $filters = []; |
42 | 44 | $url = $this->endpoint . 'breachedaccount/' . $this->account; |
@@ -30,7 +30,9 @@ |
||
30 | 30 | public function get(): array |
31 | 31 | { |
32 | 32 | // No domain has been set, return empty array. |
33 | - if (!isset($this->domain)) return []; |
|
33 | + if (!isset($this->domain)) { |
|
34 | + return []; |
|
35 | + } |
|
34 | 36 | |
35 | 37 | $url = $this->endpoint . 'breach/' . $this->domain; |
36 | 38 | $breaches = $this->requestGet($url); |
@@ -32,7 +32,9 @@ |
||
32 | 32 | public function get(): array |
33 | 33 | { |
34 | 34 | // No password has been set, return empty array. |
35 | - if (!isset($this->password)) return []; |
|
35 | + if (!isset($this->password)) { |
|
36 | + return []; |
|
37 | + } |
|
36 | 38 | |
37 | 39 | $url = $this->endpoint . 'pwnedpassword/' . $this->password; |
38 | 40 | $pwnedPasswords = $this->requestGet($url); |