Completed
Pull Request — master (#22)
by
unknown
02:09
created
src/Entities/InlineKeyboard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                     [
Please login to merge, or discard this patch.
src/Utilities/DatabaseHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             $this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
19 19
 
20 20
             return true;
21
-        } catch(PDOException $e) {
21
+        } catch (PDOException $e) {
22 22
             echo 'Unable to connect to database, an error occured:' . $e->getMessage();
23 23
         }
24 24
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.