Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2018-08-28 18:58:20 +00:00 committed by StyleCI Bot
parent 41c682a12d
commit 837c541ea7
3 changed files with 3 additions and 4 deletions

View File

@ -150,8 +150,8 @@ trait CallHandler
$response_tries = $this->settings['max_tries']['response'] + 1; $response_tries = $this->settings['max_tries']['response'] + 1;
if ($last_recv) { if ($last_recv) {
$additional = (int) floor((time() - $last_recv) / 10); $additional = (int) floor((time() - $last_recv) / 10);
if ($additional > $this->settings['max_tries']['response']*2) { if ($additional > $this->settings['max_tries']['response'] * 2) {
$additional = $this->settings['max_tries']['response']*2; $additional = $this->settings['max_tries']['response'] * 2;
} }
$response_tries += $additional; $response_tries += $additional;
} }

View File

@ -717,7 +717,7 @@ trait PeerHandler
} }
$res['participants'][$participant['user_id']] = $newres; $res['participants'][$participant['user_id']] = $newres;
} }
$this->logger->logger("Fetched ".count($gres['participants'])." channel participants with filter $filter, query $q, offset $offset, limit $limit, hash $hash: ".($cached ? 'cached' : 'not cached').', '.($offset + count($gres['participants'])).' participants out of '.$gres['count'].', in total fetched '.count($res['participants']).' out of '.$total_count); $this->logger->logger('Fetched '.count($gres['participants'])." channel participants with filter $filter, query $q, offset $offset, limit $limit, hash $hash: ".($cached ? 'cached' : 'not cached').', '.($offset + count($gres['participants'])).' participants out of '.$gres['count'].', in total fetched '.count($res['participants']).' out of '.$total_count);
$offset += count($gres['participants']); $offset += count($gres['participants']);
} while (count($gres['participants'])); } while (count($gres['participants']));

View File

@ -77,7 +77,6 @@ if ($MadelineProto->get_self() === false) {
\danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::ERROR); \danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::ERROR);
\danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::FATAL_ERROR); \danog\MadelineProto\Logger::log('hey', \danog\MadelineProto\Logger::FATAL_ERROR);
/** /**
* A small example message to use for tests. * A small example message to use for tests.
*/ */