File tree Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 3
3
namespace BotMan \Drivers \Telegram \Extensions ;
4
4
use Illuminate \Support \Collection ;
5
5
6
-
7
6
/**
8
- * Class Keyboard
9
- * @package BotMan\Drivers\Telegram\Extensions
7
+ * Class Keyboard.
10
8
*/
11
9
class Keyboard
12
10
{
@@ -97,5 +95,4 @@ public function toArray()
97
95
])->filter ())
98
96
];
99
97
}
100
-
101
- }
98
+ }
Original file line number Diff line number Diff line change @@ -97,9 +97,8 @@ public function requestLocation($active = true)
97
97
return $ this ;
98
98
}
99
99
100
-
101
100
/**
102
- * Specify data which should be serialized to JSON
101
+ * Specify data which should be serialized to JSON.
103
102
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
104
103
* @return mixed data which can be serialized by <b>json_encode</b>,
105
104
* which is a value of any type other than a resource.
@@ -112,7 +111,7 @@ public function jsonSerialize()
112
111
'callback_data ' => $ this ->callbackData ,
113
112
'request_contact ' => $ this ->requestContact ,
114
113
'request_location ' => $ this ->requestLocation ,
115
- 'text ' => $ this ->text
114
+ 'text ' => $ this ->text ,
116
115
])->filter ()->toArray ();
117
116
}
118
- }
117
+ }
Original file line number Diff line number Diff line change 2
2
3
3
namespace Tests ;
4
4
5
- use BotMan \Drivers \Telegram \Extensions \KeyboardButton ;
6
5
use PHPUnit_Framework_TestCase ;
7
6
use BotMan \Drivers \Telegram \Extensions \Keyboard ;
7
+ use BotMan \Drivers \Telegram \Extensions \KeyboardButton ;
8
8
9
9
class TelegramKeyboardTest extends PHPUnit_Framework_TestCase
10
10
{
11
-
12
11
/** @test */
13
12
public function it_can_be_created ()
14
13
{
@@ -52,5 +51,4 @@ public function it_can_have_multiple_buttons_in_each_row()
52
51
53
52
$ this ->assertCount (2 , $ replyMarkup [Keyboard::TYPE_INLINE ][0 ]);
54
53
}
55
-
56
- }
54
+ }
You can’t perform that action at this time.
0 commit comments