@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $bot = new WhoAmIBot('YOUR_BOT_TOKEN'); |
| 30 | 30 | |
| 31 | 31 | // Add a welcome message |
| 32 | -$bot->addMessageCommand('start', function ($bot, $message) { |
|
| 32 | +$bot->addMessageCommand('start', function($bot, $message) { |
|
| 33 | 33 | $bot->sendMessage('<strong>Hey there!</strong> Send or forward me a text message :)'); |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | namespace PhpBotFramework\Utilities; |
| 20 | 20 | |
| 21 | -<<<<<<< HEAD |
|
| 21 | +<< << <<< HEAD |
|
| 22 | 22 | /** |
| 23 | 23 | * \addtogroup Modules |
| 24 | 24 | * @{ |
@@ -102,10 +102,4 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - return $message; |
|
| 106 | - } |
|
| 107 | -} |
|
| 108 | - |
|
| 109 | -/* |
|
| 110 | - * @} |
|
| 111 | - */ |
|
| 105 | + return $message |
|
| 112 | 106 | \ No newline at end of file |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param CoreBot $bot References to the bot that's using the inline keyboard. |
| 39 | 39 | * @param array $buttons Buttons passed as inizialization. |
| 40 | 40 | */ |
| 41 | - public function __construct(CoreBot &$bot, array $buttons = array()) |
|
| 41 | + public function __construct(CoreBot & $bot, array $buttons = array()) |
|
| 42 | 42 | { |
| 43 | 43 | $this->bot = $bot; |
| 44 | 44 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | public function getBackButton(bool $json_serialized = true) |
| 56 | 56 | { |
| 57 | 57 | // Create the button |
| 58 | - $inline_keyboard = [ 'inline_keyboard' => |
|
| 58 | + $inline_keyboard = ['inline_keyboard' => |
|
| 59 | 59 | [ |
| 60 | 60 | [ |
| 61 | 61 | [ |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | public function getBackSkipKeyboard(bool $json_serialized = true) |
| 91 | 91 | { |
| 92 | 92 | // Create the keyboard |
| 93 | - $inline_keyboard = [ 'inline_keyboard' => |
|
| 93 | + $inline_keyboard = ['inline_keyboard' => |
|
| 94 | 94 | [ |
| 95 | 95 | [ |
| 96 | 96 | [ |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** \brief Check that the given offset exists or not */ |
| 42 | 42 | public function offsetExists($offset) |
| 43 | 43 | { |
| 44 | -<<<<<<< HEAD |
|
| 44 | +<< << <<< HEAD |
|
| 45 | 45 | return isset($this->container[$offset]); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -63,6 +63,4 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | // If not return the data from the array after checking it is set |
| 66 | - return isset($this->container[$offset]) ? $this->container[$offset] : null; |
|
| 67 | - } |
|
| 68 | -} |
|
| 66 | + return isset($this->container[$offset]) ? $this->container[$offset |
|
| 69 | 67 | \ No newline at end of file |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | * @{ |
| 87 | 87 | */ |
| 88 | 88 | |
| 89 | - public function __construct(BasicBot &$bot) |
|
| 89 | + public function __construct(BasicBot & $bot) |
|
| 90 | 90 | { |
| 91 | 91 | $this->bot = $bot; |
| 92 | 92 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | /** \brief Current user/group language. */ |
| 48 | 48 | public $language; |
| 49 | 49 | |
| 50 | - public function __construct(BasicBot &$bot) |
|
| 50 | + public function __construct(BasicBot & $bot) |
|
| 51 | 51 | { |
| 52 | 52 | $this->bot = $bot; |
| 53 | 53 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * \brief Create a Database handler object. |
| 48 | 48 | * @param BasicBot $bot Reference to the bot that use this object. |
| 49 | 49 | */ |
| 50 | - public function __construct(BasicBot &$bot) |
|
| 50 | + public function __construct(BasicBot & $bot) |
|
| 51 | 51 | { |
| 52 | 52 | $this->bot = $bot; |
| 53 | 53 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | protected function addDefaultValue(array $params) : array |
| 94 | 94 | { |
| 95 | - static $defaults = [ 'adapter' => PDO_DEFAULT_ADAPTER, 'host' => 'localhost', 'options' => [] ]; |
|
| 95 | + static $defaults = ['adapter' => PDO_DEFAULT_ADAPTER, 'host' => 'localhost', 'options' => []]; |
|
| 96 | 96 | return array_merge($defaults, $params); |
| 97 | 97 | } |
| 98 | 98 | |