@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function download($token, $url) |
| 67 | 67 | { |
| 68 | - return $this->request($token, function (GuzzleHttp\Client $client) use ($url) { |
|
| 68 | + return $this->request($token, function(GuzzleHttp\Client $client) use ($url) { |
|
| 69 | 69 | return $client->request('GET', $url, $this->downloadOptions); |
| 70 | 70 | }, 'download'); |
| 71 | 71 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | $newPost[] = ['name' => 'file', 'contents' => fopen($filename, 'r')]; |
| 85 | 85 | |
| 86 | - $response = $this->request($token, function (GuzzleHttp\Client $client) use ($url, $newPost) { |
|
| 86 | + $response = $this->request($token, function(GuzzleHttp\Client $client) use ($url, $newPost) { |
|
| 87 | 87 | return $client->request('POST', $url, [GuzzleHttp\RequestOptions::MULTIPART => $newPost]); |
| 88 | 88 | }, 'upload'); |
| 89 | 89 | return self::createXmlResponse($response); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | throw $e; |
| 115 | 115 | } elseif ($i >= $this->limitLoop) { |
| 116 | 116 | fclose($file); |
| 117 | - throw new Fio\QueueLimitException('You have limit up requests to server ' . $this->limitLoop); |
|
| 117 | + throw new Fio\QueueLimitException('You have limit up requests to server '.$this->limitLoop); |
|
| 118 | 118 | } |
| 119 | 119 | self::sleep($tempFile); |
| 120 | 120 | $next = true; |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | { |
| 160 | 160 | $key = substr($token, 10, -10); |
| 161 | 161 | if (!isset(self::$tokens[$key])) { |
| 162 | - self::$tokens[$key] = $this->tempDir . DIRECTORY_SEPARATOR . md5($key); |
|
| 162 | + self::$tokens[$key] = $this->tempDir.DIRECTORY_SEPARATOR.md5($key); |
|
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | return self::$tokens[$key]; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | private static function safeProtocol($filename) |
| 169 | 169 | { |
| 170 | - return Utils\SafeStream::PROTOCOL . '://' . $filename; |
|
| 170 | + return Utils\SafeStream::PROTOCOL.'://'.$filename; |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |