Completed
Pull Request — master (#135)
by
unknown
07:38
created
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/Interfaces/TelegramMethodDefinitions.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\Interfaces;
6 6
 
Please login to merge, or discard this patch.
src/HttpClientRequestHandlerAmp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 {
22 22
     $deferred = new Deferred();
23 23
 
24
-    $promise->onResolve(function ($error = null, $result = null) use ($deferred) {
24
+    $promise->onResolve(function($error = null, $result = null) use ($deferred) {
25 25
         if ($error) {
26 26
             $deferred->reject($error);
27 27
         } else {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function processRequest(Request $request)
90 90
     {
91
-        return reactAdapt(\Amp\call(function () use ($request) {
91
+        return reactAdapt(\Amp\call(function() use ($request) {
92 92
             /** @var Response $response */
93 93
             $response = yield $this->client->request($request);
94 94
 
Please login to merge, or discard this patch.
src/TgLog.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         $this->requestHandler = $handler;
72 72
         $this->formConstructor = new PostOptionsConstructor();
73
-        $this->apiUrl = 'https://api.telegram.org/bot' . $this->botToken . '/';
73
+        $this->apiUrl = 'https://api.telegram.org/bot'.$this->botToken.'/';
74 74
     }
75 75
 
76 76
     /**
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
         $this->resetObjectValues();
88 88
         $option = $this->formConstructor->constructOptions($method);
89 89
         return $this->sendRequestToTelegram($method, $option)
90
-            ->then(function (TelegramResponse $response) use ($method) {
90
+            ->then(function(TelegramResponse $response) use ($method) {
91 91
                 return $method::bindToObject($response, $this->logger);
92
-            }, function ($error) {
92
+            }, function($error) {
93 93
                 $this->logger->error($error);
94 94
                 throw $error;
95 95
             });
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function downloadFile(File $file): PromiseInterface
104 104
     {
105
-        $url = 'https://api.telegram.org/file/bot' . $this->botToken . '/' . $file->file_path;
105
+        $url = 'https://api.telegram.org/file/bot'.$this->botToken.'/'.$file->file_path;
106 106
         $this->logger->debug('About to perform request to begin downloading file');
107 107
 
108 108
         return $this->requestHandler->get($url)->then(
109
-            function (TelegramResponse $rawData) {
109
+            function(TelegramResponse $rawData) {
110 110
                 return new TelegramDocument($rawData);
111 111
             }
112 112
         );
@@ -154,6 +154,6 @@  discard block
 block discarded – undo
154 154
         $this->methodName = substr($completeClassName, strrpos($completeClassName, '\\') + 1);
155 155
         $this->logger->info('About to perform API request', ['method' => $this->methodName]);
156 156
 
157
-        return $this->apiUrl . $this->methodName;
157
+        return $this->apiUrl.$this->methodName;
158 158
     }
159 159
 }
Please login to merge, or discard this patch.
src/Telegram/Methods/GetUpdates.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\Methods;
6 6
 
Please login to merge, or discard this patch.
src/Telegram/Types/Location.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.
src/Telegram/Types/InputMessageContent/Location.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\InputMessageContent;
6 6
 
Please login to merge, or discard this patch.
src/Telegram/Types/Custom/UnsuccessfulRequest.php 1 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/Telegram/Types/Inline/Query/Result/Location.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\Inline\Query\Result;
6 6
 
Please login to merge, or discard this patch.