Completed
Push — master ( 589fec...539028 )
by Milan
07:58
created
src/Request/Pay/Payment/Property.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 
93 93
 
94 94
 	/**
95
-	 * @param int|string|\DateTimeInterface $date
95
+	 * @param string $date
96 96
 	 * @return static
97 97
 	 */
98 98
 	public function setDate($date)
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/Pay/XMLResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
 	private function getValue(string $path): string
74 74
 	{
75
-		$val = $this->getXml()->xpath($path . '/text()');
75
+		$val = $this->getXml()->xpath($path.'/text()');
76 76
 		return (string) $val[0];
77 77
 	}
78 78
 
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/Response/Read/TransactionAbstract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 		if (array_key_exists($name, $this->properties)) {
30 30
 			return $this->properties[$name];
31 31
 		}
32
-		throw new Exceptions\Runtime('Property does not exists. ' . $name);
32
+		throw new Exceptions\Runtime('Property does not exists. '.$name);
33 33
 	}
34 34
 
35 35
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 	public function bindProperty(string $name, string $type, $value): void
43 43
 	{
44
-		$method = 'set' . ucfirst($name);
44
+		$method = 'set'.ucfirst($name);
45 45
 		if (method_exists($this, $method)) {
46 46
 			$value = $this->{$method}($value);
47 47
 		} elseif ($value !== null) {
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.