@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace unreal4u\TelegramAPI\Telegram\Methods; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace unreal4u\TelegramAPI\Telegram\Types; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace unreal4u\TelegramAPI\Telegram\Methods; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace unreal4u\TelegramAPI\Telegram\Methods; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace unreal4u\TelegramAPI\Telegram\Types; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace unreal4u\TelegramAPI\Telegram\Methods; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace unreal4u\TelegramAPI\Telegram\Types; |
6 | 6 |
@@ -84,14 +84,14 @@ |
||
84 | 84 | { |
85 | 85 | return $request->then( |
86 | 86 | // Promise fulfilled |
87 | - static function (ResponseInterface $response) { |
|
87 | + static function(ResponseInterface $response) { |
|
88 | 88 | return new TelegramResponse( |
89 | 89 | $response->getBody()->getContents(), |
90 | 90 | $response->getHeaders() |
91 | 91 | ); |
92 | 92 | }, |
93 | 93 | // Promise rejected |
94 | - static function (Exception $e) { |
|
94 | + static function(Exception $e) { |
|
95 | 95 | if ($e instanceof ResponseException) { |
96 | 96 | throw ClientException::fromResponseException($e); |
97 | 97 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $this->formType = 'multipart/form-data'; |
99 | 99 | foreach ($method->getLocalFiles() as $identifier => $localFile) { |
100 | 100 | if ($localFile instanceof InputFile) { |
101 | - $return[$identifier . '~' . $this->numberOfLocalFiles] = [ |
|
101 | + $return[$identifier.'~'.$this->numberOfLocalFiles] = [ |
|
102 | 102 | 'id' => $this->numberOfLocalFiles, |
103 | 103 | 'filename' => basename($localFile->path), |
104 | 104 | 'stream' => $localFile->getStream(), |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $body = $builder->buildAll(); |
125 | 125 | $completeRequest = [ |
126 | 126 | 'headers' => [ |
127 | - 'Content-Type' => 'multipart/form-data; boundary="' . $builder->getBoundary() . '"', |
|
127 | + 'Content-Type' => 'multipart/form-data; boundary="'.$builder->getBoundary().'"', |
|
128 | 128 | 'Content-Length' => strlen($body) |
129 | 129 | ], |
130 | 130 | 'body' => $body |