Completed
Push — master ( 16129c...d528e9 )
by Danilo
05:45
created
src/Entities/InlineKeyboard.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 namespace PhpBotFramework\Entities;
20 20
 
21 21
 use PhpBotFramework\Exceptions\BotException;
22
-
23 22
 use PhpBotFramework\Localization\Button;
24 23
 
25 24
 /**
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@
 block discarded – undo
138 138
     {
139 139
         // If the user has already added a button in this row
140 140
         if ($this->column != 0) {
141
-             // Change row
142
-             $this->changeRow();
141
+                // Change row
142
+                $this->changeRow();
143 143
         }
144 144
 
145 145
         // Add buttons to the next row
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
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @param array $buttons Buttons passed as inizialization.
40 40
      */
41 41
     public function __construct(
42
-        CoreBot &$bot,
42
+        CoreBot & $bot,
43 43
         array $buttons = array()
44 44
     ) {
45 45
         // Set bot reference
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function getBackButton($json_serialized = true)
59 59
     {
60 60
         // Create the button
61
-        $inline_keyboard = [ 'inline_keyboard' =>
61
+        $inline_keyboard = ['inline_keyboard' =>
62 62
             [
63 63
                 [
64 64
                     [
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function getBackSkipKeyboard($json_serialized = true)
87 87
     {
88 88
         // Create the keyboard
89
-        $inline_keyboard = [ 'inline_keyboard' =>
89
+        $inline_keyboard = ['inline_keyboard' =>
90 90
             [
91 91
                 [
92 92
                     [
Please login to merge, or discard this patch.
src/Database/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     protected function addDefaultValue(array $params) : array
79 79
     {
80
-        static $defaults = [ 'adapter' => PDO_DEFAULT_ADAPTER, 'host' => 'localhost' ];
80
+        static $defaults = ['adapter' => PDO_DEFAULT_ADAPTER, 'host' => 'localhost'];
81 81
         return array_merge($defaults, $params);
82 82
     }
83 83
 
Please login to merge, or discard this patch.
src/Commands/CommandHandler.php 1 patch
Indentation   +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
-        * \brief (<i>Internal</i>) Sort an array based on <code>prior</code> index value.
89
+     * \brief (<i>Internal</i>) Sort an array based on <code>prior</code> index value.
90 90
      * @param array $a First array.
91 91
      * @param array $b Second array.
92 92
      * @return int 1 If $a > $b, -1 if $a < $b, 0 otherwise.
Please login to merge, or discard this patch.