@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Threema GmbH |
|
| 4 | - * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | - */ |
|
| 3 | + * @author Threema GmbH |
|
| 4 | + * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | namespace Threema\MsgApi\Commands\Results; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * @return string |
| 35 | 35 | */ |
| 36 | 36 | protected function getErrorMessageByErrorCode($httpCode) { |
| 37 | - switch($httpCode) { |
|
| 37 | + switch ($httpCode) { |
|
| 38 | 38 | case 401: |
| 39 | 39 | return 'API identity or secret incorrect'; |
| 40 | 40 | case 404: |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | * @return string |
| 33 | 33 | */ |
| 34 | 34 | protected function getErrorMessageByErrorCode($httpCode) { |
| 35 | - switch($httpCode) { |
|
| 35 | + switch ($httpCode) { |
|
| 36 | 36 | case 401: |
| 37 | 37 | return 'API identity or secret incorrect'; |
| 38 | 38 | case 404: |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Threema GmbH |
|
| 4 | - * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | - */ |
|
| 3 | + * @author Threema GmbH |
|
| 4 | + * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | namespace Threema\MsgApi\Commands\Results; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | * @return string |
| 33 | 33 | */ |
| 34 | 34 | protected function getErrorMessageByErrorCode($httpCode) { |
| 35 | - switch($httpCode) { |
|
| 35 | + switch ($httpCode) { |
|
| 36 | 36 | case 400: |
| 37 | 37 | return 'Hash length is wrong'; |
| 38 | 38 | case 401: |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | * @return null|int |
| 37 | 37 | */ |
| 38 | 38 | final public function getErrorCode() { |
| 39 | - if(false === $this->isSuccess()) { |
|
| 39 | + if (false === $this->isSuccess()) { |
|
| 40 | 40 | return $this->httpCode; |
| 41 | 41 | } |
| 42 | 42 | return null; |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Threema GmbH |
|
| 4 | - * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | - */ |
|
| 3 | + * @author Threema GmbH |
|
| 4 | + * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | namespace Threema\MsgApi\Commands\Results; |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * @return string |
| 30 | 30 | */ |
| 31 | 31 | protected function getErrorMessageByErrorCode($httpCode) { |
| 32 | - switch($httpCode) { |
|
| 32 | + switch ($httpCode) { |
|
| 33 | 33 | case 400: |
| 34 | 34 | return 'The recipient identity is invalid or the account is not set up for E2E mode'; |
| 35 | 35 | case 401: |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Threema GmbH |
|
| 4 | - * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | - */ |
|
| 3 | + * @author Threema GmbH |
|
| 4 | + * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | namespace Threema\MsgApi\Commands\Results; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | * @return string |
| 33 | 33 | */ |
| 34 | 34 | protected function getErrorMessageByErrorCode($httpCode) { |
| 35 | - switch($httpCode) { |
|
| 35 | + switch ($httpCode) { |
|
| 36 | 36 | case 400: |
| 37 | 37 | return 'The recipient identity is invalid or the account is not set up for simple mode'; |
| 38 | 38 | case 401: |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Threema GmbH |
|
| 4 | - * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | - */ |
|
| 3 | + * @author Threema GmbH |
|
| 4 | + * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | namespace Threema\MsgApi\Commands\Results; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * @return string |
| 35 | 35 | */ |
| 36 | 36 | protected function getErrorMessageByErrorCode($httpCode) { |
| 37 | - switch($httpCode) { |
|
| 37 | + switch ($httpCode) { |
|
| 38 | 38 | case 401: |
| 39 | 39 | return 'API identity or secret incorrect or file is empty'; |
| 40 | 40 | case 402: |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Threema GmbH |
|
| 4 | - * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | - */ |
|
| 3 | + * @author Threema GmbH |
|
| 4 | + * @copyright Copyright (c) 2015 Threema GmbH |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | namespace Threema\MsgApi\Commands; |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | * @param object $res |
| 73 | 73 | * @return SendE2EResult |
| 74 | 74 | */ |
| 75 | - function parseResult($httpCode, $res){ |
|
| 75 | + function parseResult($httpCode, $res) { |
|
| 76 | 76 | return new SendE2EResult($httpCode, $res); |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | * @param object $res |
| 59 | 59 | * @return SendSimpleResult |
| 60 | 60 | */ |
| 61 | - function parseResult($httpCode, $res){ |
|
| 61 | + function parseResult($httpCode, $res) { |
|
| 62 | 62 | return new SendSimpleResult($httpCode, $res); |
| 63 | 63 | } |
| 64 | 64 | } |