Completed
Push — master ( d10e02...ddaff8 )
by
unknown
03:53
created
src/Utilities/Paginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public static function paginateItems(
47 47
         $items,
48 48
         int $index,
49
-        Keyboard &$keyboard,
49
+        Keyboard & $keyboard,
50 50
         callable $format_item,
51 51
         int $item_per_page = 3,
52 52
         string $prefix = 'list',
Please login to merge, or discard this patch.
src/Localization/Button.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                     [
Please login to merge, or discard this patch.
src/Utilities/BotState.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Localization/Localization.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Database/Database.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * \brief Create a Database handler object.
50 50
      * @param BasicBot $bot Reference to the bot that use this object.
51 51
      */
52
-    public function __construct(BasicBot &$bot)
52
+    public function __construct(BasicBot & $bot)
53 53
     {
54 54
         $this->bot = $bot;
55 55
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public static function addDefaultValue(array $params) : array
96 96
     {
97
-        static $defaults = [ 'adapter' => PDO_DEFAULT_ADAPTER, 'host' => 'localhost', 'options' => [] ];
97
+        static $defaults = ['adapter' => PDO_DEFAULT_ADAPTER, 'host' => 'localhost', 'options' => []];
98 98
         return array_merge($defaults, $params);
99 99
     }
100 100
 
Please login to merge, or discard this patch.
examples/WhoAmIBot/Bot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
 // Add a welcome message
31 31
 $start_command = new PhpBotFramework\Commands\MessageCommand('start',
32
-    function ($bot, $message) {
32
+    function($bot, $message) {
33 33
         $bot->sendMessage('<strong>Hey there!</strong> Send or forward me a text message :)');
34 34
     }
35 35
 );
Please login to merge, or discard this patch.