Minor style corrections.

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