@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | if (isset($this->accounts[$alias])) { |
25 | 25 | return $this->accounts[$alias]; |
26 | 26 | } |
27 | - throw new AccountException('This account alias does not exists: ' . $alias); |
|
27 | + throw new AccountException('This account alias does not exists: '.$alias); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | /** @return FioAccount|FALSE */ |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | public function addAccount($alias, FioAccount $account) |
42 | 42 | { |
43 | 43 | if (isset($this->accounts[$alias])) { |
44 | - throw new AccountException('This alias already exists: ' . $alias); |
|
44 | + throw new AccountException('This alias already exists: '.$alias); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | $this->accounts[$alias] = $account; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** @return string */ |
51 | 51 | public function getAccount() |
52 | 52 | { |
53 | - return $this->prefix . $this->account; |
|
53 | + return $this->prefix.$this->account; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** @return string */ |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | public function getAccountAndCode() |
75 | 75 | { |
76 | - return $this->getAccount() . $this->bankCode; |
|
76 | + return $this->getAccount().$this->bankCode; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | public function __toString() |
@@ -194,7 +194,7 @@ |
||
194 | 194 | public function current() |
195 | 195 | { |
196 | 196 | $property = $this->key(); |
197 | - $method = 'get' . ucfirst($property); |
|
197 | + $method = 'get'.ucfirst($property); |
|
198 | 198 | if (method_exists($this, $method)) { |
199 | 199 | return $this->{$method}(); |
200 | 200 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | { |
36 | 36 | static $types = [self::PAYMENT_STANDARD, self::PAYMENT_FAST, self::PAYMENT_PRIORITY, self::PAYMENT_COLLECTION]; |
37 | 37 | if (!in_array($type, $types)) { |
38 | - throw new Fio\InvalidArgumentException('Unsupported payment type: ' . $type); |
|
38 | + throw new Fio\InvalidArgumentException('Unsupported payment type: '.$type); |
|
39 | 39 | } |
40 | 40 | $this->paymentType = $type; |
41 | 41 | return $this; |
@@ -159,7 +159,7 @@ |
||
159 | 159 | { |
160 | 160 | static $types = [self::PAYMENT_STANDARD, self::PAYMENT_PRIORITY]; |
161 | 161 | if (!in_array($type, $types)) { |
162 | - throw new Fio\InvalidArgumentException('Unsupported payment type: ' . $type); |
|
162 | + throw new Fio\InvalidArgumentException('Unsupported payment type: '.$type); |
|
163 | 163 | } |
164 | 164 | $this->paymentType = $type; |
165 | 165 | return $this; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | private function getValue($path) |
61 | 61 | { |
62 | - $val = $this->xml->xpath($path . '/text()'); |
|
62 | + $val = $this->xml->xpath($path.'/text()'); |
|
63 | 63 | return (string) $val[0]; |
64 | 64 | } |
65 | 65 |
@@ -93,7 +93,7 @@ |
||
93 | 93 | { |
94 | 94 | $args = func_get_args(); |
95 | 95 | $args[0] = $token = $this->account->getToken(); |
96 | - $this->requestUrl = self::REST_URL . vsprintf($apiUrl, $args); |
|
96 | + $this->requestUrl = self::REST_URL.vsprintf($apiUrl, $args); |
|
97 | 97 | return $this->queue->download($token, $this->requestUrl); |
98 | 98 | } |
99 | 99 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | if ($bankCode) { |
34 | 34 | $account .= '/'; |
35 | 35 | } |
36 | - return new Account\Bank($account . $bankCode); |
|
36 | + return new Account\Bank($account.$bankCode); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | { |
116 | 116 | $this->language = strtolower($lang); |
117 | 117 | if (!in_array($this->language, self::$langs)) { |
118 | - throw new InvalidArgumentException($this->language . ' avaible are ' . implode(', ', self::$langs)); |
|
118 | + throw new InvalidArgumentException($this->language.' avaible are '.implode(', ', self::$langs)); |
|
119 | 119 | } |
120 | 120 | return $this; |
121 | 121 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | /** @return string */ |
124 | 124 | private function getUrl() |
125 | 125 | { |
126 | - return self::REST_URL . 'import/'; |
|
126 | + return self::REST_URL.'import/'; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $extension = strtolower($extension); |
138 | 138 | static $extensions = ['xml', 'abo']; |
139 | 139 | if (!in_array($extension, $extensions)) { |
140 | - throw new InvalidArgumentException('Unsupported file upload format: ' . $extension . ' avaible are ' . implode(', ', $extensions)); |
|
140 | + throw new InvalidArgumentException('Unsupported file upload format: '.$extension.' avaible are '.implode(', ', $extensions)); |
|
141 | 141 | } |
142 | 142 | $this->uploadExtension = $extension; |
143 | 143 | return $this; |