Satisfy phpcs

parent 8a8291ac
......@@ -166,7 +166,9 @@ class Botan
}
// In case there is no from field assign id = 0
$uid = (isset($data['from']['id'])) ? $data['from']['id'] : 0;
$uid = isset($data['from']['id']) ? $data['from']['id'] : 0;
$result = null;
try {
$response = self::$client->post(
......
......@@ -144,9 +144,9 @@ class Conversation
*/
protected function start()
{
if ($this->command &&
!$this->exists() &&
ConversationDB::insertConversation(
if ($this->command
&& !$this->exists()
&& ConversationDB::insertConversation(
$this->user_id,
$this->chat_id,
$this->command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment