Completed
Push — master ( e9d5f3...8f69c0 )
by Milan
06:19
created
src/Account/AccountCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Account/Bank.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/FioPay.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	{
118 118
 		$lang = strtolower($lang);
119 119
 		if (!in_array($lang, self::$langs)) {
120
-			throw new InvalidArgumentException($lang . ' avaible are ' . implode(', ', self::$langs));
120
+			throw new InvalidArgumentException($lang.' avaible are '.implode(', ', self::$langs));
121 121
 		}
122 122
 		$this->language = $lang;
123 123
 		return $this;
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	/** @return string */
127 127
 	private function getUrl()
128 128
 	{
129
-		return self::REST_URL . 'import/';
129
+		return self::REST_URL.'import/';
130 130
 	}
131 131
 
132 132
 	/**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 		$extension = strtolower($extension);
141 141
 		static $extensions = ['xml', 'abo'];
142 142
 		if (!in_array($extension, $extensions)) {
143
-			throw new InvalidArgumentException('Unsupported file upload format: ' . $extension . ' avaible are ' . implode(', ', $extensions));
143
+			throw new InvalidArgumentException('Unsupported file upload format: '.$extension.' avaible are '.implode(', ', $extensions));
144 144
 		}
145 145
 		$this->uploadExtension = $extension;
146 146
 		return $this;
Please login to merge, or discard this patch.
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/Request/Pay/Payment/National.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Request/Pay/Payment/Euro.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Request/Pay/XMLFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	/** @return string  */
41 41
 	public function getPathname()
42 42
 	{
43
-		$filename = $this->temp . DIRECTORY_SEPARATOR . md5(microtime(TRUE)) . '.xml';
43
+		$filename = $this->temp.DIRECTORY_SEPARATOR.md5(microtime(TRUE)).'.xml';
44 44
 		file_put_contents($filename, $this->getXml());
45 45
 		register_shutdown_function(function() use ($filename) {
46 46
 			@unlink($filename);
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
@@ -59,7 +59,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Response/Read/TransactionAbstract.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		if (array_key_exists($name, $this->properties)) {
28 28
 			return $this->properties[$name];
29 29
 		}
30
-		throw new Fio\TransactionPropertyException('Property does not exists. ' . $name);
30
+		throw new Fio\TransactionPropertyException('Property does not exists. '.$name);
31 31
 	}
32 32
 
33 33
 	public function clearTemporaryValues()
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
 	public function bindProperty($name, $type, $value)
39 39
 	{
40
-		$method = 'set' . ucfirst($name);
40
+		$method = 'set'.ucfirst($name);
41 41
 		if (method_exists($this, $method)) {
42 42
 			$value = $this->{$method}($value);
43 43
 		} elseif ($value !== NULL) {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 				}
94 94
 				return intval($value);
95 95
 			case 'string|null':
96
-				return trim($value) ? : NULL;
96
+				return trim($value) ?: NULL;
97 97
 		}
98 98
 		return $value;
99 99
 	}
Please login to merge, or discard this patch.