Completed
Push — master ( 384d9c...589fec )
by Milan
06:11
created
src/Response/Read/JsonTransactionFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	public function __construct($transactionClass = null)
27 27
 	{
28 28
 		if ($transactionClass === null) {
29
-			$transactionClass = __NAMESPACE__ . '\Transaction';
29
+			$transactionClass = __NAMESPACE__.'\Transaction';
30 30
 		}
31 31
 		$this->transactionClass = $transactionClass;
32 32
 	}
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	{
43 43
 		$transaction = $this->createTransactionObject($dateFormat);
44 44
 		foreach (self::metaProperty($transaction) as $id => $meta) {
45
-			$value = isset($data->{'column' . $id}) ? $data->{'column' . $id}->value : null;
45
+			$value = isset($data->{'column'.$id}) ? $data->{'column'.$id}->value : null;
46 46
 			$transaction->bindProperty($meta['name'], $meta['type'], $value);
47 47
 		}
48 48
 		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
@@ -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) {
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
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	 */
67 67
 	public function download($token, $url)
68 68
 	{
69
-		$response = $this->request($token, function (GuzzleHttp\Client $client) use ($url) {
69
+		$response = $this->request($token, function(GuzzleHttp\Client $client) use ($url) {
70 70
 			return $client->request('GET', $url, $this->downloadOptions);
71 71
 		});
72 72
 		self::detectDownloadResponse($response);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 		}
86 86
 		$newPost[] = ['name' => 'file', 'contents' => fopen($filename, 'r')];
87 87
 
88
-		$response = $this->request($token, function (GuzzleHttp\Client $client) use ($url, $newPost) {
88
+		$response = $this->request($token, function(GuzzleHttp\Client $client) use ($url, $newPost) {
89 89
 			return $client->request('POST', $url, [GuzzleHttp\RequestOptions::MULTIPART => $newPost]);
90 90
 		});
91 91
 		return self::createXmlResponse($response);
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
 					throw $e;
116 116
 				} elseif ($i >= $this->limitLoop) {
117 117
 					fclose($file);
118
-					throw new Fio\QueueLimitException('You have limit up requests to server ' . $this->limitLoop);
118
+					throw new Fio\QueueLimitException('You have limit up requests to server '.$this->limitLoop);
119 119
 				}
120 120
 				self::sleep($tempFile);
121 121
 				$next = true;
122 122
 			} catch (GuzzleHttp\Exception\ServerException $e) {
123
-				if($e->hasResponse()) {
123
+				if ($e->hasResponse()) {
124 124
 					self::detectDownloadResponse($e->getResponse());
125 125
 				}
126 126
 				throw self::createServiceUnavailableException();
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	{
168 168
 		$key = substr($token, 10, -10);
169 169
 		if (!isset(self::$tokens[$key])) {
170
-			self::$tokens[$key] = $this->tempDir . DIRECTORY_SEPARATOR . md5($key);
170
+			self::$tokens[$key] = $this->tempDir.DIRECTORY_SEPARATOR.md5($key);
171 171
 		}
172 172
 
173 173
 		return self::$tokens[$key];
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
 	private static function safeProtocol($filename)
177 177
 	{
178
-		return Utils\SafeStream::PROTOCOL . '://' . $filename;
178
+		return Utils\SafeStream::PROTOCOL.'://'.$filename;
179 179
 	}
180 180
 
181 181
 	/**
Please login to merge, or discard this patch.