Commit e986a12d authored by Avtandil Kikabidze's avatar Avtandil Kikabidze

Fixed minor code style issues

parent 613de34d
......@@ -195,7 +195,7 @@ class Botan
if (!filter_var($response, FILTER_VALIDATE_URL) === false) {
BotanDB::insertShortUrl($user_id, $url, $response);
} else {
// @FIXME: Add telegram log
// @TODO: Add telegram log
error_log('Botan.io API replied with error: ' . $response);
return $url;
}
......
......@@ -132,7 +132,7 @@ class ServerResponse extends Entity
*/
protected function isAssoc(array $array)
{
return (bool)count(array_filter(array_keys($array), 'is_string'));
return (bool) count(array_filter(array_keys($array), 'is_string'));
}
/**
......
......@@ -316,7 +316,7 @@ class Telegram
if ($response->isOk()) {
//Process all updates
foreach ((array)$response->getResult() as $result) {
foreach ((array) $response->getResult() as $result) {
$this->processUpdate($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