Completed
Push — master ( ffa897...a71648 )
by Алексей
03:11
created
src/Base/BaseType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
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
@@ -40,9 +40,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.