@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * @param $buttons Buttons passed as inizialization. |
34 | 34 | * @return The object created with the buttons passed. |
35 | 35 | */ |
36 | - public function __construct(\PhpBotFramework\Bot &$bot = null, |
|
36 | + public function __construct(\PhpBotFramework\Bot & $bot = null, |
|
37 | 37 | array $buttons = array()) { |
38 | 38 | |
39 | 39 | // Get bot reference |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | public function getBackButton($json_serialized = true) { |
211 | 211 | |
212 | 212 | // Create the button |
213 | - $inline_keyboard = [ 'inline_keyboard' => |
|
213 | + $inline_keyboard = ['inline_keyboard' => |
|
214 | 214 | [ |
215 | 215 | [ |
216 | 216 | [ |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | public function getBackSkipKeyboard($json_serialized = true) { |
244 | 244 | |
245 | 245 | // Create the keyboard |
246 | - $inline_keyboard = [ 'inline_keyboard' => |
|
246 | + $inline_keyboard = ['inline_keyboard' => |
|
247 | 247 | [ |
248 | 248 | [ |
249 | 249 | [ |
@@ -5,15 +5,15 @@ |
||
5 | 5 | // Use to sort _command_types based on prior |
6 | 6 | function sortingPrior($a, $b) { |
7 | 7 | |
8 | - if($a['prior'] > $b['prior']) |
|
8 | + if ($a['prior'] > $b['prior']) |
|
9 | 9 | |
10 | 10 | return 1; |
11 | 11 | |
12 | - if($a['prior'] < $b['prior']) |
|
12 | + if ($a['prior'] < $b['prior']) |
|
13 | 13 | |
14 | 14 | return -1; |
15 | 15 | |
16 | - if($a['prior'] == $b['prior']) |
|
16 | + if ($a['prior'] == $b['prior']) |
|
17 | 17 | |
18 | 18 | return 0; |
19 | 19 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | protected function mergeWithDefaults($params) { |
29 | - $DEFAULTS = [ 'adapter' => 'mysql', 'host' => 'localhost' ]; |
|
29 | + $DEFAULTS = ['adapter' => 'mysql', 'host' => 'localhost']; |
|
30 | 30 | return array_merge($DEFAULTS, $params); |
31 | 31 | } |
32 | 32 |