@@ -99,7 +99,7 @@  | 
                                                    ||
| 99 | 99 | private function download(string $apiUrl, string ...$args): string  | 
                                                        
| 100 | 100 |  	{ | 
                                                        
| 101 | 101 | $token = $this->account->getToken();  | 
                                                        
| 102 | - $this->requestUrl = self::REST_URL . sprintf($apiUrl, $token, ...$args);  | 
                                                        |
| 102 | + $this->requestUrl = self::REST_URL.sprintf($apiUrl, $token, ...$args);  | 
                                                        |
| 103 | 103 | return $this->queue->download($token, $this->requestUrl);  | 
                                                        
| 104 | 104 | }  | 
                                                        
| 105 | 105 | |
@@ -33,10 +33,10 @@  | 
                                                    ||
| 33 | 33 | |
| 34 | 34 | public function getPathname(bool $keepFile = false): string  | 
                                                        
| 35 | 35 |  	{ | 
                                                        
| 36 | - $filename = $this->temp . DIRECTORY_SEPARATOR . md5((string) microtime(true)) . '.xml';  | 
                                                        |
| 36 | + $filename = $this->temp.DIRECTORY_SEPARATOR.md5((string) microtime(true)).'.xml';  | 
                                                        |
| 37 | 37 | file_put_contents($filename, $this->getXml());  | 
                                                        
| 38 | 38 |  		if ($keepFile === false) { | 
                                                        
| 39 | -			register_shutdown_function(function () use ($filename) { | 
                                                        |
| 39 | +			register_shutdown_function(function() use ($filename) { | 
                                                        |
| 40 | 40 | @unlink($filename);  | 
                                                        
| 41 | 41 | });  | 
                                                        
| 42 | 42 | }  | 
                                                        
@@ -62,7 +62,7 @@ discard block  | 
                                                    ||
| 62 | 62 | */  | 
                                                        
| 63 | 63 | public function download(string $token, string $url): string  | 
                                                        
| 64 | 64 |  	{ | 
                                                        
| 65 | -		$response = $this->request($token, function (GuzzleHttp\ClientInterface $client) use ($url) { | 
                                                        |
| 65 | +		$response = $this->request($token, function(GuzzleHttp\ClientInterface $client) use ($url) { | 
                                                        |
| 66 | 66 |  			return $client->request('GET', $url, $this->downloadOptions); | 
                                                        
| 67 | 67 | });  | 
                                                        
| 68 | 68 | $this->detectDownloadResponse($response);  | 
                                                        
@@ -82,7 +82,7 @@ discard block  | 
                                                    ||
| 82 | 82 | }  | 
                                                        
| 83 | 83 | $newPost[] = ['name' => 'file', 'contents' => fopen($filename, 'r')];  | 
                                                        
| 84 | 84 | |
| 85 | -		$response = $this->request($token, function (GuzzleHttp\ClientInterface $client) use ($url, $newPost) { | 
                                                        |
| 85 | +		$response = $this->request($token, function(GuzzleHttp\ClientInterface $client) use ($url, $newPost) { | 
                                                        |
| 86 | 86 |  			return $client->request('POST', $url, [GuzzleHttp\RequestOptions::MULTIPART => $newPost]); | 
                                                        
| 87 | 87 | });  | 
                                                        
| 88 | 88 | return $this->createXmlResponse($response);  | 
                                                        
@@ -113,7 +113,7 @@ discard block  | 
                                                    ||
| 113 | 113 | throw $e;  | 
                                                        
| 114 | 114 |  				} elseif ($i >= $this->limitLoop) { | 
                                                        
| 115 | 115 | fclose($file);  | 
                                                        
| 116 | -					throw new Exceptions\QueueLimit('You have limit up requests to server ' . $this->limitLoop); | 
                                                        |
| 116 | +					throw new Exceptions\QueueLimit('You have limit up requests to server '.$this->limitLoop); | 
                                                        |
| 117 | 117 | }  | 
                                                        
| 118 | 118 | self::sleep($tempFile);  | 
                                                        
| 119 | 119 | $next = true;  | 
                                                        
@@ -128,7 +128,7 @@ discard block  | 
                                                    ||
| 128 | 128 |  	{ | 
                                                        
| 129 | 129 | $file = fopen(self::safeProtocol($filePath), 'w');  | 
                                                        
| 130 | 130 |  		if ($file === false) { | 
                                                        
| 131 | -			throw new Exceptions\InvalidState('Open file is failed ' . $filePath); | 
                                                        |
| 131 | +			throw new Exceptions\InvalidState('Open file is failed '.$filePath); | 
                                                        |
| 132 | 132 | }  | 
                                                        
| 133 | 133 | return $file;  | 
                                                        
| 134 | 134 | }  | 
                                                        
@@ -164,7 +164,7 @@ discard block  | 
                                                    ||
| 164 | 164 |  	{ | 
                                                        
| 165 | 165 | $key = substr($token, 10, -10);  | 
                                                        
| 166 | 166 |  		if (!isset(self::$tokens[$key])) { | 
                                                        
| 167 | - self::$tokens[$key] = $this->tempDir . DIRECTORY_SEPARATOR . md5($key);  | 
                                                        |
| 167 | + self::$tokens[$key] = $this->tempDir.DIRECTORY_SEPARATOR.md5($key);  | 
                                                        |
| 168 | 168 | }  | 
                                                        
| 169 | 169 | |
| 170 | 170 | return self::$tokens[$key];  | 
                                                        
@@ -173,7 +173,7 @@ discard block  | 
                                                    ||
| 173 | 173 | |
| 174 | 174 | private static function safeProtocol(string $filename): string  | 
                                                        
| 175 | 175 |  	{ | 
                                                        
| 176 | - return Utils\SafeStream::PROTOCOL . '://' . $filename;  | 
                                                        |
| 176 | + return Utils\SafeStream::PROTOCOL.'://'.$filename;  | 
                                                        |
| 177 | 177 | }  | 
                                                        
| 178 | 178 | |
| 179 | 179 | |
@@ -36,7 +36,7 @@  | 
                                                    ||
| 36 | 36 |  	{ | 
                                                        
| 37 | 37 | $transaction = $this->createTransactionObject($dateFormat);  | 
                                                        
| 38 | 38 |  		foreach ($this->metaProperty($transaction) as $id => $meta) { | 
                                                        
| 39 | -			$value = isset($data->{'column' . $id}) ? $data->{'column' . $id}->value : null; | 
                                                        |
| 39 | +			$value = isset($data->{'column'.$id}) ? $data->{'column'.$id}->value : null; | 
                                                        |
| 40 | 40 | $transaction->bindProperty($meta['name'], $meta['type'], $value);  | 
                                                        
| 41 | 41 | }  | 
                                                        
| 42 | 42 | return $transaction;  | 
                                                        
@@ -28,7 +28,7 @@ discard block  | 
                                                    ||
| 28 | 28 |  		if (isset($this->accounts[$alias])) { | 
                                                        
| 29 | 29 | return $this->accounts[$alias];  | 
                                                        
| 30 | 30 | }  | 
                                                        
| 31 | -		throw new Exceptions\InvalidArgument('This account alias does not exists: ' . $alias); | 
                                                        |
| 31 | +		throw new Exceptions\InvalidArgument('This account alias does not exists: '.$alias); | 
                                                        |
| 32 | 32 | }  | 
                                                        
| 33 | 33 | |
| 34 | 34 | |
@@ -44,7 +44,7 @@ discard block  | 
                                                    ||
| 44 | 44 | public function addAccount(string $alias, FioAccount $account): AccountCollection  | 
                                                        
| 45 | 45 |  	{ | 
                                                        
| 46 | 46 |  		if (isset($this->accounts[$alias])) { | 
                                                        
| 47 | -			throw new Exceptions\InvalidArgument('This alias already exists: ' . $alias); | 
                                                        |
| 47 | +			throw new Exceptions\InvalidArgument('This alias already exists: '.$alias); | 
                                                        |
| 48 | 48 | }  | 
                                                        
| 49 | 49 | |
| 50 | 50 | $this->accounts[$alias] = $account;  | 
                                                        
@@ -27,7 +27,7 @@ discard block  | 
                                                    ||
| 27 | 27 | |
| 28 | 28 | public function getAccount(): string  | 
                                                        
| 29 | 29 |  	{ | 
                                                        
| 30 | - return $this->prefix() . $this->account;  | 
                                                        |
| 30 | + return $this->prefix().$this->account;  | 
                                                        |
| 31 | 31 | }  | 
                                                        
| 32 | 32 | |
| 33 | 33 | |
@@ -45,7 +45,7 @@ discard block  | 
                                                    ||
| 45 | 45 | |
| 46 | 46 | public function getAccountAndCode(): string  | 
                                                        
| 47 | 47 |  	{ | 
                                                        
| 48 | - return $this->getAccount() . $this->bankCode();  | 
                                                        |
| 48 | + return $this->getAccount().$this->bankCode();  | 
                                                        |
| 49 | 49 | }  | 
                                                        
| 50 | 50 | |
| 51 | 51 | |
@@ -58,7 +58,7 @@ discard block  | 
                                                    ||
| 58 | 58 | private function bankCode(): string  | 
                                                        
| 59 | 59 |  	{ | 
                                                        
| 60 | 60 |  		if ($this->bankCode !== '') { | 
                                                        
| 61 | - return '/' . $this->bankCode;  | 
                                                        |
| 61 | + return '/'.$this->bankCode;  | 
                                                        |
| 62 | 62 | }  | 
                                                        
| 63 | 63 | return $this->bankCode;  | 
                                                        
| 64 | 64 | }  | 
                                                        
@@ -67,7 +67,7 @@ discard block  | 
                                                    ||
| 67 | 67 | private function prefix(): string  | 
                                                        
| 68 | 68 |  	{ | 
                                                        
| 69 | 69 |  		if ($this->prefix !== '') { | 
                                                        
| 70 | - return $this->prefix . '-';  | 
                                                        |
| 70 | + return $this->prefix.'-';  | 
                                                        |
| 71 | 71 | }  | 
                                                        
| 72 | 72 | return $this->prefix;  | 
                                                        
| 73 | 73 | }  | 
                                                        
@@ -151,7 +151,7 @@  | 
                                                    ||
| 151 | 151 | |
| 152 | 152 | private static function getUrl(): string  | 
                                                        
| 153 | 153 |  	{ | 
                                                        
| 154 | - return self::REST_URL . 'import/';  | 
                                                        |
| 154 | + return self::REST_URL.'import/';  | 
                                                        |
| 155 | 155 | }  | 
                                                        
| 156 | 156 | |
| 157 | 157 | |
@@ -74,7 +74,7 @@  | 
                                                    ||
| 74 | 74 | |
| 75 | 75 | private function getValue(string $path): string  | 
                                                        
| 76 | 76 |  	{ | 
                                                        
| 77 | - $val = $this->getXml()->xpath($path . '/text()');  | 
                                                        |
| 77 | + $val = $this->getXml()->xpath($path.'/text()');  | 
                                                        |
| 78 | 78 |  		if ($val === false || !isset($val[0])) { | 
                                                        
| 79 | 79 | return '';  | 
                                                        
| 80 | 80 | }  | 
                                                        
@@ -30,7 +30,7 @@ discard block  | 
                                                    ||
| 30 | 30 |  		if (array_key_exists($name, $this->properties)) { | 
                                                        
| 31 | 31 | return $this->properties[$name];  | 
                                                        
| 32 | 32 | }  | 
                                                        
| 33 | -		throw new Exceptions\Runtime('Property does not exists. ' . $name); | 
                                                        |
| 33 | +		throw new Exceptions\Runtime('Property does not exists. '.$name); | 
                                                        |
| 34 | 34 | }  | 
                                                        
| 35 | 35 | |
| 36 | 36 | |
@@ -42,7 +42,7 @@ discard block  | 
                                                    ||
| 42 | 42 | |
| 43 | 43 | public function bindProperty(string $name, string $type, mixed $value): void  | 
                                                        
| 44 | 44 |  	{ | 
                                                        
| 45 | - $method = 'set' . ucfirst($name);  | 
                                                        |
| 45 | + $method = 'set'.ucfirst($name);  | 
                                                        |
| 46 | 46 |  		if (method_exists($this, $method)) { | 
                                                        
| 47 | 47 |  			$value = $this->{$method}($value); | 
                                                        
| 48 | 48 |  		} elseif ($value !== null) { |