Completed
Push — master ( 5b9919...1161ba )
by Milan
38s
created
src/Request/Pay/Payment/Property.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
src/FioRead.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Request/Pay/XMLFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
src/Request/Pay/Payment/National.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	/** @return static */
29 29
 	public function setPaymentType(int $type)
30 30
 	{
31
-		$this->paymentType = Exceptions\InvalidArgument::checkIsInList($type, self::TYPES_PAYMENT);;
31
+		$this->paymentType = Exceptions\InvalidArgument::checkIsInList($type, self::TYPES_PAYMENT); ;
32 32
 		return $this;
33 33
 	}
34 34
 
Please login to merge, or discard this patch.
src/Request/Queue.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Response/Read/JsonTransactionFactory.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
 	{
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;
Please login to merge, or discard this patch.
src/Account/AccountCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Account/Bank.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
src/FioPay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.