Completed
Pull Request — develop (#291)
by Armando
03:42
created
src/Entities/InlineKeyboardButton.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         return is_array($data) &&
42 42
             array_key_exists('text', $data) && (
43
-                   array_key_exists('url', $data) ||
43
+                    array_key_exists('url', $data) ||
44 44
                    array_key_exists('callback_data', $data) ||
45 45
                    array_key_exists('switch_inline_query', $data)
46 46
             );
Please login to merge, or discard this patch.
src/Entities/Entity.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -278,8 +278,8 @@
 block discarded – undo
278 278
     public function stripMarkDown($string)
279 279
     {
280 280
         return str_replace(
281
-            ['[', '`', '*', '_',],
282
-            ['\[', '\`', '\*', '\_',],
281
+            ['[', '`', '*', '_', ],
282
+            ['\[', '\`', '\*', '\_', ],
283 283
             $string
284 284
         );
285 285
     }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * Reflect
68 68
      *
69
-     * @param null $object
69
+     * @param Entity $object
70 70
      *
71 71
      * @return array
72 72
      */
@@ -184,8 +184,8 @@  discard block
 block discarded – undo
184 184
     /**
185 185
      * Get a property from the current Entity
186 186
      *
187
-     * @param mixed $property
188
-     * @param mixed $default
187
+     * @param string $property
188
+     * @param string $default
189 189
      *
190 190
      * @return mixed
191 191
      */
Please login to merge, or discard this patch.
src/Entities/Keyboard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 
91 91
         $data = reset($args);
92 92
 
93
-        if ($from_data = array_key_exists($keyboard_type, (array)$data)) {
93
+        if ($from_data = array_key_exists($keyboard_type, (array) $data)) {
94 94
             $args = $data[$keyboard_type];
95 95
 
96 96
             // Make sure we're working with a proper row.
Please login to merge, or discard this patch.