Minor style corrections.

parent 0d04d66a
......@@ -340,7 +340,7 @@ class SendtochannelCommand extends AdminCommand
$data = [
'chat_id' => $chat_id,
'text' => 'Usage: ' . $this->usage,
'text' => 'Usage: ' . $this->getUsage(),
];
if ($text !== '') {
......
......@@ -143,7 +143,7 @@ class WhoisCommand extends AdminCommand
//Code from Whoami command
$limit = 10;
$offset = null;
$ServerResponse = Request::getUserProfilePhotos(
$response = Request::getUserProfilePhotos(
[
'user_id' => $user_id,
'limit' => $limit,
......@@ -151,12 +151,12 @@ class WhoisCommand extends AdminCommand
]
);
if ($ServerResponse->isOk()) {
/** @var UserProfilePhotos $UserProfilePhoto */
$UserProfilePhoto = $ServerResponse->getResult();
if ($response->isOk()) {
/** @var UserProfilePhotos $user_profile_photos */
$user_profile_photos = $response->getResult();
if ($UserProfilePhoto->getTotalCount() > 0) {
$photos = $UserProfilePhoto->getPhotos();
if ($user_profile_photos->getTotalCount() > 0) {
$photos = $user_profile_photos->getPhotos();
/** @var PhotoSize $photo */
$photo = $photos[0][2];
......
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