Completed
Pull Request — master (#48)
by Milan
41s
created
src/FioRead.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 	 * Movements in date range.
25 25
 	 */
26 26
 	public function movements(
27
-		int|string|\DateTimeInterface $from = '-1 week',
28
-		int|string|\DateTimeInterface $to = 'now',
27
+		int | string | \DateTimeInterface $from = '-1 week',
28
+		int | string | \DateTimeInterface $to = 'now',
29 29
 	): TransactionList
30 30
 	{
31 31
 		$data = $this->download('periods/%s/%s/%s/transactions.%s', Utils\Fio::date($from), Utils\Fio::date($to), $this->readerFactory->getExtension());
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	/**
73 73
 	 * Set breakpoint to date.
74 74
 	 */
75
-	public function setLastDate(int|string|\DateTimeInterface $date): void
75
+	public function setLastDate(int | string | \DateTimeInterface $date): void
76 76
 	{
77 77
 		$this->download('set-last-date/%s/%s/', Utils\Fio::date($date));
78 78
 	}
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	private function download(string $apiUrl, string ...$args): string
88 88
 	{
89 89
 		$token = $this->account->getToken();
90
-		$requestUrl = Utils\Fio::REST_URL . sprintf($apiUrl, $token, ...$args);
90
+		$requestUrl = Utils\Fio::REST_URL.sprintf($apiUrl, $token, ...$args);
91 91
 
92 92
 		return $this->queue->download($token, $requestUrl);
93 93
 	}
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\InvalidArgumentException('This account alias does not exists: ' . $alias);
31
+		throw new Exceptions\InvalidArgumentException('This account alias does not exists: '.$alias);
32 32
 	}
33 33
 
34 34
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	public function addAccount(string $alias, FioAccount $account): AccountCollection
46 46
 	{
47 47
 		if (isset($this->accounts[$alias])) {
48
-			throw new Exceptions\InvalidArgumentException('This alias already exists: ' . $alias);
48
+			throw new Exceptions\InvalidArgumentException('This alias already exists: '.$alias);
49 49
 		}
50 50
 
51 51
 		$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
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 	public function getAccount(): string
17 17
 	{
18
-		return $this->prefix() . $this->account;
18
+		return $this->prefix().$this->account;
19 19
 	}
20 20
 
21 21
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
 	public function getAccountAndCode(): string
35 35
 	{
36
-		return $this->getAccount() . $this->bankCode();
36
+		return $this->getAccount().$this->bankCode();
37 37
 	}
38 38
 
39 39
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	private function bankCode(): string
47 47
 	{
48 48
 		if ($this->bankCode !== '') {
49
-			return '/' . $this->bankCode;
49
+			return '/'.$this->bankCode;
50 50
 		}
51 51
 
52 52
 		return $this->bankCode;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	private function prefix(): string
57 57
 	{
58 58
 		if ($this->prefix !== '') {
59
-			return $this->prefix . '-';
59
+			return $this->prefix.'-';
60 60
 		}
61 61
 
62 62
 		return $this->prefix;
Please login to merge, or discard this patch.
src/FioPay.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	}
90 90
 
91 91
 
92
-	public function send(string|Pay\Payment\Property|null $filename = null): IResponse
92
+	public function send(string | Pay\Payment\Property | null $filename = null): IResponse
93 93
 	{
94 94
 		if ($filename instanceof Pay\Payment\Property) {
95 95
 			$this->xmlFile->setData($filename);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
 	private static function getUrl(): string
136 136
 	{
137
-		return Fio::REST_URL . 'import/';
137
+		return Fio::REST_URL.'import/';
138 138
 	}
139 139
 
140 140
 
Please login to merge, or discard this patch.
src/Utils/Fio.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	}
25 25
 
26 26
 
27
-	public static function date(int|string|\DateTimeInterface $date, string $format = 'Y-m-d'): string
27
+	public static function date(int | string | \DateTimeInterface $date, string $format = 'Y-m-d'): string
28 28
 	{
29 29
 		return DateTime::from($date)->format($format);
30 30
 	}
Please login to merge, or discard this patch.