Completed
Push — master ( 4d7d7c...67f5f0 )
by Алексей
04:57
created
src/Base/BaseType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $map = $this->map;
49 49
 
50 50
         return collect($attributes)
51
-            ->mapWithKeys(function ($item, $key) use ($map) {
51
+            ->mapWithKeys(function($item, $key) use ($map) {
52 52
                 if (is_array($item) && $className = array_get($map, $key)) {
53 53
                     return new $className($item);
54 54
                 }
Please login to merge, or discard this patch.
src/Bot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         if (!$this->token) {
45 45
             throw new TelegramCoreException('Token must be defined');
46 46
         }
47
-        $baseOptions  = [
47
+        $baseOptions = [
48 48
             'base_uri'    => sprintf('https://api.telegram.org/bot%s/', $token),
49 49
             'verify'      => false,
50 50
             'http_errors' => false,
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $json = \GuzzleHttp\json_decode($response->getBody()->getContents(), true);
79 79
         if (array_get($json, 'ok') == false) {
80
-            throw new TelegramCoreException(array_get($json, 'description', 'error') . array_get($json, 'error_code'), array_get($json, 'error_code'));
80
+            throw new TelegramCoreException(array_get($json, 'description', 'error').array_get($json, 'error_code'), array_get($json, 'error_code'));
81 81
         }
82 82
 
83 83
         return $json;
Please login to merge, or discard this patch.