Completed
Push — master ( fee6ee...4d7d7c )
by Алексей
05:57
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
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Config/FileConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.