@@ -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 |
@@ -40,9 +40,9 @@ |
||
40 | 40 | |
41 | 41 | public static function __callStatic($name, $arguments) |
42 | 42 | { |
43 | - $class = '\\Telegram\\Actions\\' . ucfirst($name); |
|
43 | + $class = '\\Telegram\\Actions\\'.ucfirst($name); |
|
44 | 44 | if (!class_exists($class)) { |
45 | - throw new TelegramCoreException('Action ' . $name . ' not exists'); |
|
45 | + throw new TelegramCoreException('Action '.$name.' not exists'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | return new $class; |