Completed
Push — master ( 2806d8...9dd462 )
by Camilo
03:35 queued 01:11
created
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/LoginUrl.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 {
18 18
     /**
19 19
      * An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. 
20
-	 * If the user refuses to provide authorization data, the original URL without information about the user will be opened. 
21
-	 * The data added is the same as described in Receiving authorization data (https://core.telegram.org/widgets/login#receiving-authorization-data).
20
+     * If the user refuses to provide authorization data, the original URL without information about the user will be opened. 
21
+     * The data added is the same as described in Receiving authorization data (https://core.telegram.org/widgets/login#receiving-authorization-data).
22 22
      * @var string
23 23
      */
24 24
     public $url = '';
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public $bot_username = '';
37 37
 	
38
-	/**
39
-     * Optional. Pass True to request the permission for your bot to send messages to the user.
40
-     * @var bool
41
-     */
38
+ /**
39
+  * Optional. Pass True to request the permission for your bot to send messages to the user.
40
+  * @var bool
41
+  */
42 42
     public $request_write_access = false;
43 43
 }
Please login to merge, or discard this 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.