Completed
Branch master (203d4a)
by Avtandil
06:25
created
src/Commands/AdminCommands/WhoisCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $command = $message->getCommand();
44 44
         $text = trim($message->getText(true));
45 45
 
46
-        $data = [ 'chat_id' => $chat_id ];
46
+        $data = ['chat_id' => $chat_id];
47 47
 
48 48
         //No point in replying to messages in private chats
49 49
         if (!$message->getChat()->isPrivateChat()) {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                     $limit = 10;
118 118
                     $offset = null;
119 119
                     $ServerResponse = Request::getUserProfilePhotos([
120
-                        'user_id' => $user_id ,
120
+                        'user_id' => $user_id,
121 121
                         'limit'   => $limit,
122 122
                         'offset'  => $offset,
123 123
                     ]);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                         return Request::sendPhoto($data);
141 141
                     }
142 142
                 } elseif ($chat->isGroupChat()) {
143
-                    $text = 'Chat ID: ' . $user_id . (!empty($old_id) ? ' (previously: '.$old_id.')' : ''). "\n";
143
+                    $text = 'Chat ID: ' . $user_id . (!empty($old_id) ? ' (previously: ' . $old_id . ')' : '') . "\n";
144 144
                     $text .= 'Type: ' . ucfirst($chat->getType()) . "\n";
145 145
                     $text .= 'Title: ' . $chat->getTitle() . "\n";
146 146
                     $text .= 'First time added to group: ' . $created_at . "\n";
Please login to merge, or discard this patch.
src/Commands/AdminCommands/ChatsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
             $text_back .= "\n" . 'Total: ' . ($user_chats + $group_chats + $super_group_chats);
103 103
 
104 104
             if ($text === '') {
105
-                $text_back .= "\n\n" . 'List all chats: /' . $this->name .' *' . "\n" . 'Search for chats: /' . $this->name .' <search string>';
105
+                $text_back .= "\n\n" . 'List all chats: /' . $this->name . ' *' . "\n" . 'Search for chats: /' . $this->name . ' <search string>';
106 106
             }
107 107
         }
108 108
 
Please login to merge, or discard this patch.
src/ConversationDB.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
         //Where
161 161
         $a = 0;
162
-        $where  = '';
162
+        $where = '';
163 163
         foreach ($where_fields_values as $field => $value) {
164 164
             if ($a) {
165 165
                 $where .= ' AND ';
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                 $where .= 'WHERE ';
169 169
             }
170 170
             ++$tokens_counter;
171
-            $where .= '`' . $field .'`= :' . $tokens_counter;
171
+            $where .= '`' . $field . '`= :' . $tokens_counter;
172 172
             $tokens[':' . $tokens_counter] = $value;
173 173
         }
174 174
 
Please login to merge, or discard this patch.
src/Entities/Chat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,11 +118,11 @@
 block discarded – undo
118 118
         if ($this->isPrivateChat()) {
119 119
             if (is_null($this->username)) {
120 120
                 if (!is_null($this->last_name)) {
121
-                    return $this->first_name.' '.$this->last_name;
121
+                    return $this->first_name . ' ' . $this->last_name;
122 122
                 }
123 123
                 return $this->first_name;
124 124
             }
125
-            return '@'.$this->username;
125
+            return '@' . $this->username;
126 126
         }
127 127
         return $this->getTitle();
128 128
     }
Please login to merge, or discard this patch.
src/Entities/Sticker.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,26 +62,26 @@
 block discarded – undo
62 62
 
63 63
     public function getWidth()
64 64
     {
65
-         return $this->width;
65
+            return $this->width;
66 66
     }
67 67
 
68 68
     public function getHeight()
69 69
     {
70
-         return $this->height;
70
+            return $this->height;
71 71
     }
72 72
 
73 73
     public function getThumb()
74 74
     {
75
-         return $this->thumb;
75
+            return $this->thumb;
76 76
     }
77 77
 
78 78
     public function getEmoji()
79 79
     {
80
-         return $this->emoji;
80
+            return $this->emoji;
81 81
     }
82 82
 
83 83
     public function getFileSize()
84 84
     {
85
-         return $this->file_size;
85
+            return $this->file_size;
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
src/Entities/ServerResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,6 +134,6 @@
 block discarded – undo
134 134
     }
135 135
     public function printError()
136 136
     {
137
-        return 'Error N: '.$this->getErrorCode().' Description: '.$this->getDescription();
137
+        return 'Error N: ' . $this->getErrorCode() . ' Description: ' . $this->getDescription();
138 138
     }
139 139
 }
Please login to merge, or discard this patch.
src/Entities/Audio.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function getDuration()
54 54
     {
55
-         return $this->duration;
55
+            return $this->duration;
56 56
     }
57 57
 
58 58
     public function getPerformer()
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
 
68 68
     public function getMimeType()
69 69
     {
70
-         return $this->mime_type;
70
+            return $this->mime_type;
71 71
     }
72 72
 
73 73
     public function getFileSize()
74 74
     {
75
-         return $this->file_size;
75
+            return $this->file_size;
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
src/Entities/Video.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,27 +65,27 @@
 block discarded – undo
65 65
 
66 66
     public function getWidth()
67 67
     {
68
-         return $this->width;
68
+            return $this->width;
69 69
     }
70 70
 
71 71
     public function getHeight()
72 72
     {
73
-         return $this->height;
73
+            return $this->height;
74 74
     }
75 75
     public function getDuration()
76 76
     {
77
-         return $this->duration;
77
+            return $this->duration;
78 78
     }
79 79
     public function getThumb()
80 80
     {
81
-         return $this->thumb;
81
+            return $this->thumb;
82 82
     }
83 83
     public function getMimeType()
84 84
     {
85
-         return $this->mime_type;
85
+            return $this->mime_type;
86 86
     }
87 87
     public function getFileSize()
88 88
     {
89
-         return $this->file_size;
89
+            return $this->file_size;
90 90
     }
91 91
 }
Please login to merge, or discard this patch.
src/Entities/Voice.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,16 +47,16 @@
 block discarded – undo
47 47
 
48 48
     public function getDuration()
49 49
     {
50
-         return $this->duration;
50
+            return $this->duration;
51 51
     }
52 52
 
53 53
     public function getMimeType()
54 54
     {
55
-         return $this->mime_type;
55
+            return $this->mime_type;
56 56
     }
57 57
 
58 58
     public function getFileSize()
59 59
     {
60
-         return $this->file_size;
60
+            return $this->file_size;
61 61
     }
62 62
 }
Please login to merge, or discard this patch.