Skip to content

Commit a307e67

Browse files
committed
Fix phpcs
1 parent ad16cef commit a307e67

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Conversation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function getCommand()
237237
*
238238
* @return int
239239
*/
240-
public function getUserID()
240+
public function getUserId()
241241
{
242242
return $this->user_id;
243243
}
@@ -247,7 +247,7 @@ public function getUserID()
247247
*
248248
* @return int
249249
*/
250-
public function getChatID()
250+
public function getChatId()
251251
{
252252
return $this->chat_id;
253253
}

tests/Unit/ConversationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ protected function setUp(): void
5050
public function testConversationThatDoesntExistPropertiesSetCorrectly()
5151
{
5252
$conversation = new Conversation(123, 456);
53-
$this->assertEquals(123, $conversation->getUserID());
54-
$this->assertEquals(456, $conversation->getChatID());
53+
$this->assertEquals(123, $conversation->getUseriD());
54+
$this->assertEquals(456, $conversation->getChatId());
5555
$this->assertEquals(null, $conversation->getCommand());
5656
}
5757

5858
public function testConversationThatExistsPropertiesSetCorrectly()
5959
{
6060
$info = TestHelpers::startFakeConversation();
6161
$conversation = new Conversation($info['user_id'], $info['chat_id'], 'command');
62-
$this->assertEquals($info['user_id'], $conversation->getUserID());
63-
$this->assertEquals($info['chat_id'], $conversation->getChatID());
62+
$this->assertEquals($info['user_id'], $conversation->getUserId());
63+
$this->assertEquals($info['chat_id'], $conversation->getChatId());
6464
$this->assertEquals('command', $conversation->getCommand());
6565
}
6666

0 commit comments

Comments
 (0)