@@ -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\Passport\ElementError; |
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\Passport\ElementError; |
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\Passport\ElementError; |
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\Passport; |
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\Passport; |
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\Passport; |
6 | 6 |
@@ -78,7 +78,7 @@ |
||
78 | 78 | /** |
79 | 79 | * Yields all local files (if present) |
80 | 80 | * |
81 | - * @return Generator|InputFile[] |
|
81 | + * @return Generator |
|
82 | 82 | */ |
83 | 83 | public function getLocalFiles(): Generator |
84 | 84 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | // If we are about to send a file, we must use the multipart/form-data way |
99 | 99 | $this->formType = 'multipart/form-data'; |
100 | 100 | foreach ($method->getLocalFiles() as $identifier => $localFile) { |
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 |
@@ -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\Exceptions; |
6 | 6 |