Commit 184504bd authored by MBoretto's avatar MBoretto

fix phpcs syntax

parent 64860c5f
......@@ -32,7 +32,7 @@ class ServerResponse extends Entity
$this->result = new Message($data['result'], $bot_name);
$this->error_code = null;
$this->description = null;
} elseif($data['ok'] & $data['result'] == 1) {
} elseif ($data['ok'] & $data['result'] == 1) {
//Response from setWebhook set
$this->ok = $data['ok'];
$this->result = $data['result'];
......
......@@ -76,7 +76,7 @@ class Request
$fake_response['ok'] = 1; // :)
//some fake data just to let iniatilize the class method SendMessage
if (isset( $data['chat_id'])) {
if (isset($data['chat_id'])) {
$data['message_id'] = '123';
$data['date'] = '123';
$data['chat'] = array('id'=> $data['chat_id'] );
......@@ -135,7 +135,6 @@ class Request
public static function setWebhook($url)
{
$result = self::send('setWebhook', array('url' => $url));
return $result;
}
......
......@@ -792,7 +792,9 @@ class Telegram
$result = Request::setWebhook($url);
if (!$result->isOk()) {
throw new TelegramException('Webhook was not set! Error: '.$result->getErrorCode().' '. $result->getDescription());
throw new TelegramException(
'Webhook was not set! Error: '.$result->getErrorCode().' '. $result->getDescription()
);
}
return $result;
......
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