Completed
Push — master ( 4dcabc...3436f3 )
by Camilo
15s queued 15s
created
src/Telegram/Types/Passport/PassportData.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\Telegram\Types\Passport;
6 6
 
Please login to merge, or discard this patch.
src/Telegram/Types/Passport/EncryptedCredentials.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\Telegram\Types\Passport;
6 6
 
Please login to merge, or discard this patch.
src/Telegram/Types/Passport/PassportElementError.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\Telegram\Types\Passport;
6 6
 
Please login to merge, or discard this patch.
src/Abstracts/TelegramMethods.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/InternalFunctionality/PostOptionsConstructor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Exceptions/InvalidMediaType.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/Telegram/Methods/SendMediaGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
             if (is_readable($fileLocation->media)) {
107 107
                 $this->localFiles[basename($fileLocation->media)] = new InputFile($fileLocation->media);
108
-                $fileLocation->media = 'attach://' . basename($fileLocation->media);
108
+                $fileLocation->media = 'attach://'.basename($fileLocation->media);
109 109
             }
110 110
         }
111 111
 
Please login to merge, or discard this patch.
src/HttpClientRequestHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
         $deferred = new Deferred();
65 65
 
66 66
         $receivedData = '';
67
-        $request->on('response', static function (Response $response) use ($deferred, &$receivedData) {
68
-            $response->on('data', static function ($chunk) use (&$receivedData) {
67
+        $request->on('response', static function(Response $response) use ($deferred, &$receivedData) {
68
+            $response->on('data', static function($chunk) use (&$receivedData) {
69 69
                 $receivedData .= $chunk;
70 70
             });
71 71
 
72
-            $response->on('end', static function () use (&$receivedData, $deferred, $response) {
72
+            $response->on('end', static function() use (&$receivedData, $deferred, $response) {
73 73
                 try {
74 74
                     $endResponse = new TelegramResponse($receivedData, $response->getHeaders());
75 75
                     $deferred->resolve($endResponse);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             });
81 81
         });
82 82
 
83
-        $request->on('error', static function (Exception $e) use ($deferred) {
83
+        $request->on('error', static function(Exception $e) use ($deferred) {
84 84
             $deferred->reject(new ClientException($e->getMessage(), $e->getCode(), $e));
85 85
         });
86 86
 
Please login to merge, or discard this patch.
src/Telegram/Types/ChatPermissions.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\Telegram\Types;
6 6
 
Please login to merge, or discard this patch.