diff --git a/src/danog/MadelineProto/DataCenter.php b/src/danog/MadelineProto/DataCenter.php index 9425b6a0d..e4ced9f3d 100644 --- a/src/danog/MadelineProto/DataCenter.php +++ b/src/danog/MadelineProto/DataCenter.php @@ -42,7 +42,7 @@ class DataCenter extends Tools public function dc_disconnect($dc_number) { if (isset($this->sockets[$dc_number])) { - \danog\MadelineProto\Logging::log("Disconnecting from DC ".$dc_number."..."); + \danog\MadelineProto\Logging::log('Disconnecting from DC '.$dc_number.'...'); unset($this->sockets[$dc_number]); unset($this->curdc); } @@ -53,7 +53,7 @@ class DataCenter extends Tools if (isset($this->sockets[$dc_number])) { return; } - \danog\MadelineProto\Logging::log("Connecting to DC ".$dc_number."..."); + \danog\MadelineProto\Logging::log('Connecting to DC '.$dc_number.'...'); if ($settings == []) { $settings = $this->settings[$dc_number]; diff --git a/src/danog/MadelineProto/Logging.php b/src/danog/MadelineProto/Logging.php index 011f011ab..3f3461175 100644 --- a/src/danog/MadelineProto/Logging.php +++ b/src/danog/MadelineProto/Logging.php @@ -20,6 +20,7 @@ class Logging public static $mode = null; public static $optional = null; public static $constructed = false; + /* * Constructor function * Accepts various logging modes: @@ -31,7 +32,7 @@ class Logging public static function constructor($mode, $optional = null) { if ($mode == null) { - throw new Exception("No mode was specified!"); + throw new Exception('No mode was specified!'); } self::$mode = (string) $mode; self::$optional = $optional; diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 8833c41b0..5801431a1 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -64,7 +64,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB 'test_mode' => true, 'port' => '443', ], - 'default_dc' => 2 + 'default_dc' => 2, ], 'app_info' => [ 'api_id' => 25628, @@ -152,7 +152,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB { \danog\MadelineProto\Logging::log('Writing client info...'); $nearestDc = $this->method_call( - 'invokeWithLayer', + 'invokeWithLayer', [ 'layer' => $this->settings['tl_schema']['layer'], 'query' => $this->tl->serialize_method('initConnection',