@@ -59,7 +59,7 @@ |
||
59 | 59 | * @param object $res |
60 | 60 | * @return SendSimpleResult |
61 | 61 | */ |
62 | - public function parseResult($httpCode, $res){ |
|
62 | + public function parseResult($httpCode, $res) { |
|
63 | 63 | return new SendSimpleResult($httpCode, $res); |
64 | 64 | } |
65 | 65 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @param object $res |
44 | 44 | * @return UploadFileResult |
45 | 45 | */ |
46 | - public function parseResult($httpCode, $res){ |
|
46 | + public function parseResult($httpCode, $res) { |
|
47 | 47 | return new DownloadFileResult($httpCode, $res); |
48 | 48 | } |
49 | 49 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * @param object $res |
43 | 43 | * @return FetchPublicKeyResult |
44 | 44 | */ |
45 | - public function parseResult($httpCode, $res){ |
|
45 | + public function parseResult($httpCode, $res) { |
|
46 | 46 | return new FetchPublicKeyResult($httpCode, $res); |
47 | 47 | } |
48 | 48 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * @param object $res |
50 | 50 | * @return UploadFileResult |
51 | 51 | */ |
52 | - public function parseResult($httpCode, $res){ |
|
52 | + public function parseResult($httpCode, $res) { |
|
53 | 53 | return new UploadFileResult($httpCode, $res); |
54 | 54 | } |
55 | 55 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * @param object $res |
40 | 40 | * @return CapabilityResult |
41 | 41 | */ |
42 | - public function parseResult($httpCode, $res){ |
|
42 | + public function parseResult($httpCode, $res) { |
|
43 | 43 | return new CapabilityResult($httpCode, $res); |
44 | 44 | } |
45 | 45 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * @param object $res |
28 | 28 | * @return CreditsResult |
29 | 29 | */ |
30 | - public function parseResult($httpCode, $res){ |
|
30 | + public function parseResult($httpCode, $res) { |
|
31 | 31 | return new CreditsResult($httpCode, $res); |
32 | 32 | } |
33 | 33 | } |
@@ -76,7 +76,7 @@ |
||
76 | 76 | * @param object $res |
77 | 77 | * @return SendE2EResult |
78 | 78 | */ |
79 | - public function parseResult($httpCode, $res){ |
|
79 | + public function parseResult($httpCode, $res) { |
|
80 | 80 | return new SendE2EResult($httpCode, $res); |
81 | 81 | } |
82 | 82 | } |
@@ -121,7 +121,7 @@ |
||
121 | 121 | * @throws Exception |
122 | 122 | */ |
123 | 123 | public function validate() { |
124 | - if(false === $this->isSupported()) { |
|
124 | + if (false === $this->isSupported()) { |
|
125 | 125 | throw new Exception('Sodium implementation not supported'); |
126 | 126 | } |
127 | 127 | return true; |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @return string |
61 | 61 | */ |
62 | 62 | public function getReceiptTypeName() { |
63 | - if(true === array_key_exists($this->receiptType, self::$receiptTypesToNames)) { |
|
63 | + if (true === array_key_exists($this->receiptType, self::$receiptTypesToNames)) { |
|
64 | 64 | return self::$receiptTypesToNames[$this->receiptType]; |
65 | 65 | } |
66 | 66 | return null; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function __toString() { |
83 | 83 | $cryptTool = CryptTool::getInstance(); |
84 | - $str = "Delivery receipt (" . $this->getReceiptTypeName() . "): "; |
|
84 | + $str = "Delivery receipt (".$this->getReceiptTypeName()."): "; |
|
85 | 85 | $hexMessageIds = array(); |
86 | 86 | foreach ($this->ackedMessageIds as $messageId) { |
87 | 87 | $hexMessageIds[] = $cryptTool->bin2hex($messageId); |