@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function setVersion($version) |
41 | 41 | { |
42 | - $this->version = (string) $version; |
|
42 | + $this->version = (string)$version; |
|
43 | 43 | return $this; |
44 | 44 | } |
45 | 45 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | const PARAM_MAX_MESSAGE_SIZE = 'PARAM_MAX_MESSAGE_SIZE'; |
14 | 14 | //(int) max send retry time, default DEFAULT_RETRY_TIMES |
15 | 15 | const PARAM_MAX_SEND_RETRY_TIME = 'PARAM_MAX_SEND_RETRY_TIME'; |
16 | - const PARAM_CONSUMER_NAME = 'PARAM_CONSUMER_NAME';//(string) define consumer name - default empty |
|
16 | + const PARAM_CONSUMER_NAME = 'PARAM_CONSUMER_NAME'; //(string) define consumer name - default empty |
|
17 | 17 | |
18 | 18 | //(bool) if process must wait to be sure the message is sent (default false) |
19 | 19 | const PARAM_BLOCK_SEND = 'PARAM_BLOCK_SEND'; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public function __construct($filePath, $section = null) |
17 | 17 | { |
18 | 18 | $this->filePath = (string)$filePath; |
19 | - $this->section = is_null($section) ? null : (string) $section; |
|
19 | + $this->section = is_null($section) ? null : (string)$section; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -183,7 +183,7 @@ |
||
183 | 183 | */ |
184 | 184 | public function getSetting($setting) |
185 | 185 | { |
186 | - $setting = (string) $setting; |
|
186 | + $setting = (string)$setting; |
|
187 | 187 | return isset($this->settings[$setting]) ? $this->settings[$setting] : null; |
188 | 188 | } |
189 | 189 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | if (is_float($value) && ((int)$value === 0)) { |
32 | 32 | return false; |
33 | 33 | } |
34 | - $valueTest = (int) $value; |
|
34 | + $valueTest = (int)$value; |
|
35 | 35 | return ($valueTest === 0) ? is_numeric($value) : ($valueTest == $value); |
36 | 36 | } |
37 | 37 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function format($value) |
29 | 29 | { |
30 | - $value = (string) $value; |
|
30 | + $value = (string)$value; |
|
31 | 31 | if ($value == "") { |
32 | 32 | $this->hasError = true; |
33 | 33 | return ""; |
@@ -68,7 +68,7 @@ |
||
68 | 68 | */ |
69 | 69 | public function getValue() |
70 | 70 | { |
71 | - return $this->getAuthorizationType() . ' ' . ($this->getToken() ? : ''); |
|
71 | + return $this->getAuthorizationType() . ' ' . ($this->getToken() ?: ''); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function setFileName($fileName = null) |
45 | 45 | { |
46 | - $this->fileName = is_null($fileName) ? null : (string) $fileName; |
|
46 | + $this->fileName = is_null($fileName) ? null : (string)$fileName; |
|
47 | 47 | return $this; |
48 | 48 | } |
49 | 49 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | const VALUE_OK = '200 OK'; |
16 | 16 | |
17 | - const VALUE_BAD_REQUEST= '400 Bad Request'; |
|
17 | + const VALUE_BAD_REQUEST = '400 Bad Request'; |
|
18 | 18 | const VALUE_UNAUTHORIZED = '401 Unauthorized'; |
19 | 19 | const VALUE_PAYMENT_REQUIRED = '402 Payment Required'; |
20 | 20 | const VALUE_FORBIDDEN = '403 Forbidden'; |