Completed
Pull Request — official (#17)
by rugk
02:34
created
source/Threema/MsgApi/Commands/Results/DownloadFileResult.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.
source/Threema/MsgApi/Commands/Results/FetchPublicKeyResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.
source/Threema/MsgApi/Commands/Results/LookupIdResult.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.
source/Threema/MsgApi/Commands/Results/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
source/Threema/MsgApi/Commands/Results/SendE2EResult.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.
source/Threema/MsgApi/Commands/Results/SendSimpleResult.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.
source/Threema/MsgApi/Commands/Results/UploadFileResult.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.
source/Threema/MsgApi/Commands/SendE2E.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
source/Threema/MsgApi/Commands/SendSimple.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.