@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $annotatinons = AnnotationHelper::getAnnotations($this, $key); |
33 | 33 | |
34 | 34 | if ($annotatinons && array_key_exists('var', $annotatinons)) { |
35 | - $class = '\\Telegram\\Types\\' . $annotatinons['var']; |
|
35 | + $class = '\\Telegram\\Types\\'.$annotatinons['var']; |
|
36 | 36 | if (class_exists($class)) { |
37 | 37 | /** @var BaseType $class */ |
38 | 38 | $this->$key = $class::create($value); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | private function toCamelCase($key) |
73 | 73 | { |
74 | - return lcfirst(implode(array_map(function ($part) { |
|
74 | + return lcfirst(implode(array_map(function($part) { |
|
75 | 75 | return ucfirst($part); |
76 | 76 | }, explode('_', $key)))); |
77 | 77 |
@@ -51,6 +51,9 @@ |
||
51 | 51 | return $method(); |
52 | 52 | } |
53 | 53 | |
54 | + /** |
|
55 | + * @param string $method |
|
56 | + */ |
|
54 | 57 | public function send($method, $params = []) |
55 | 58 | { |
56 | 59 | $response = $this->client->post($method, ['body_params' => $params])->getBody()->__toString(); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function __construct($path) |
24 | 24 | { |
25 | - $this->path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
25 | + $this->path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function getValue($chatId, $value, $default) |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | private function getFileName($chatId) |
46 | 46 | { |
47 | - return $this->path . 'c' . $chatId; |
|
47 | + return $this->path.'c'.$chatId; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | public function setValue($chatId, $key, $value) |