Skip to content

Commit a879849

Browse files
irazasyedactions-user
authored andcommitted
Apply PHP CS Fixer changes
1 parent 6ae4b9d commit a879849

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Traits/HasSharedLogic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
trait HasSharedLogic
1111
{
1212
use Conditionable;
13-
13+
1414
/** @var string Bot Token. */
1515
public $token;
1616

tests/TelegramMessageTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,20 @@ public function itCanReturnThePayloadAsAnArray(): void
100100

101101
$this->assertEquals($expected, $message->toArray());
102102
}
103-
104-
103+
105104
/** @test */
106105
public function testLaravelConditionableTrait(): void
107106
{
108107
$message = new TelegramMessage();
109108
$message->button('Laravel', 'https://laravel.com');
110-
$message->when(true, fn($tg) => $tg->button('Github', 'https://github.com'));
109+
$message->when(true, fn ($tg) => $tg->button('Github', 'https://github.com'));
111110

112111
$this->assertEquals(
113112
'{"inline_keyboard":[[{"text":"Laravel","url":"https:\/\/laravel.com"},{"text":"Github","url":"https:\/\/github.com"}]]}',
114113
$message->getPayloadValue('reply_markup')
115114
);
116115

117-
$message->when(false, fn($tg) => $tg->button('Google', 'https://google.com'));
116+
$message->when(false, fn ($tg) => $tg->button('Google', 'https://google.com'));
118117

119118
$this->assertEquals(
120119
'{"inline_keyboard":[[{"text":"Laravel","url":"https:\/\/laravel.com"},{"text":"Github","url":"https:\/\/github.com"}]]}',

0 commit comments

Comments
 (0)