@@ -51,7 +51,7 @@ |
||
51 | 51 | $helper = new E2EHelper($privateKey, $connector); |
52 | 52 | $result = $helper->sendImageMessage($threemaId, $path); |
53 | 53 | |
54 | - if($result->isSuccess()) { |
|
54 | + if ($result->isSuccess()) { |
|
55 | 55 | Common::l('Message ID: '.$result->getMessageId()); |
56 | 56 | } |
57 | 57 | else { |
@@ -41,8 +41,7 @@ |
||
41 | 41 | $storeHandle = fopen($this->file, 'r'); |
42 | 42 | if(false === $storeHandle) { |
43 | 43 | throw new Exception('could not open file '.$this->file); |
44 | - } |
|
45 | - else { |
|
44 | + } else { |
|
46 | 45 | $threemaId = strtoupper($threemaId); |
47 | 46 | $publicKey = null; |
48 | 47 | while (!feof($storeHandle)) { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | Common::required($to, $from, $secret); |
37 | 37 | |
38 | 38 | $message = $this->readStdIn(); |
39 | - if(strlen($message) === 0) { |
|
39 | + if (strlen($message) === 0) { |
|
40 | 40 | throw new \InvalidArgumentException('please define a message'); |
41 | 41 | } |
42 | 42 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $receiver = new Receiver($to, Receiver::TYPE_ID); |
50 | 50 | |
51 | 51 | $result = $connector->sendSimple($receiver, $message); |
52 | - if($result->isSuccess()) { |
|
52 | + if ($result->isSuccess()) { |
|
53 | 53 | Common::l('Message ID: '.$result->getMessageId()); |
54 | 54 | } |
55 | 55 | else { |
@@ -41,8 +41,7 @@ |
||
41 | 41 | $storeHandle = fopen($this->file, 'r'); |
42 | 42 | if(false === $storeHandle) { |
43 | 43 | throw new Exception('could not open file '.$this->file); |
44 | - } |
|
45 | - else { |
|
44 | + } else { |
|
46 | 45 | $threemaId = strtoupper($threemaId); |
47 | 46 | $publicKey = null; |
48 | 47 | while (!feof($storeHandle)) { |
@@ -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: |
@@ -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: |
@@ -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: |
@@ -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: |
@@ -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: |
@@ -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: |
@@ -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: |