@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Traverses through our $data, yielding the result set |
| 31 | 31 | * |
| 32 | - * @return Update[] |
|
| 32 | + * @return \Generator |
|
| 33 | 33 | */ |
| 34 | 34 | public function traverseObject() |
| 35 | 35 | { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace unreal4u\TelegramAPI\Telegram\Types\Custom; |
| 5 | 5 | |
@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -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\InternalFunctionality; |
| 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\InternalFunctionality; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace unreal4u\TelegramAPI\InternalFunctionality; |
| 6 | 6 | |
@@ -116,12 +116,12 @@ discard block |
||
| 116 | 116 | foreach ($data as $id => $value) { |
| 117 | 117 | if ($id === $fileKeyName) { |
| 118 | 118 | $data = new MultipartData( |
| 119 | - (string) $id, |
|
| 119 | + (string)$id, |
|
| 120 | 120 | stream_get_contents($stream), |
| 121 | 121 | pathinfo($filename, PATHINFO_BASENAME) |
| 122 | 122 | ); |
| 123 | 123 | } else { |
| 124 | - $data = new MultipartData((string) $id, (string) $value); |
|
| 124 | + $data = new MultipartData((string)$id, (string)$value); |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | $builder->append($data); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $body = $builder->buildAll(); |
| 131 | 131 | $array = [ |
| 132 | 132 | 'headers' => [ |
| 133 | - 'Content-Type' => 'multipart/form-data; boundary="' . $builder->getBoundary() . '"', |
|
| 133 | + 'Content-Type' => 'multipart/form-data; boundary="'.$builder->getBoundary().'"', |
|
| 134 | 134 | 'Content-Length' => \strlen($body) |
| 135 | 135 | ], |
| 136 | 136 | '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\Abstracts; |
| 6 | 6 | |