Completed
Pull Request — master (#87)
by
unknown
07:31
created
src/Telegram/Types/Custom/MessageArray.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Exceptions/InvalidResultType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Exceptions/ClientException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Exceptions/MissingMandatoryField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Exceptions/FileNotReadable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/InternalFunctionality/TelegramResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/InternalFunctionality/TelegramDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/InternalFunctionality/PostOptionsConstructor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Abstracts/TelegramMethods.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.