@@ -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 | } |
@@ -2,8 +2,8 @@ |
||
2 | 2 | <?php |
3 | 3 | // set variables |
4 | 4 | $dir = dirname(__DIR__); |
5 | -$source = dirname(__DIR__) . '/source'; |
|
6 | -$file = $dir . '/threema_msgapi.phar'; |
|
5 | +$source = dirname(__DIR__).'/source'; |
|
6 | +$file = $dir.'/threema_msgapi.phar'; |
|
7 | 7 | |
8 | 8 | // preparation |
9 | 9 | if (!is_dir($dir)) { |
@@ -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; |