@@ -231,19 +231,19 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter
231231 *
232232 * @var array<RSA>
233233 */
234- private array $ rsa_keys = [];
234+ private array $ rsaKeys = [];
235235 /**
236236 * RSA keys.
237237 *
238238 * @var array<RSA>
239239 */
240- private array $ test_rsa_keys = [];
240+ private array $ testRsaKeys = [];
241241 /**
242242 * CDN RSA keys.
243243 *
244244 * @var array<RSA>
245245 */
246- private array $ cdn_rsa_keys = [];
246+ private array $ cdnRsaKeys = [];
247247 /**
248248 * Diffie-hellman config.
249249 *
@@ -489,11 +489,11 @@ public function serializeSession(object $data)
489489 public function findRsaKey (array $ fps , bool $ test , bool $ cdn ): ?RSA
490490 {
491491 if ($ cdn ) {
492- $ list = $ this ->cdn_rsa_keys ;
492+ $ list = $ this ->cdnRsaKeys ;
493493 } elseif ($ test ) {
494- $ list = $ this ->test_rsa_keys ;
494+ $ list = $ this ->testRsaKeys ;
495495 } else {
496- $ list = $ this ->rsa_keys ;
496+ $ list = $ this ->rsaKeys ;
497497 }
498498
499499 foreach ($ list as $ curkey ) {
@@ -673,15 +673,15 @@ private function initialize(Settings|SettingsEmpty $settings): void
673673 // Actually instantiate needed classes like a boss
674674 $ this ->cleanupProperties ();
675675 // Load rsa keys
676- $ this ->rsa_keys = [];
676+ $ this ->rsaKeys = [];
677677 foreach ($ this ->settings ->getConnection ()->getRSAKeys () as $ key ) {
678678 $ key = RSA ::load ($ this ->TL , $ key );
679- $ this ->rsa_keys [$ key ->fp ] = $ key ;
679+ $ this ->rsaKeys [$ key ->fp ] = $ key ;
680680 }
681- $ this ->test_rsa_keys = [];
681+ $ this ->testRsaKeys = [];
682682 foreach ($ this ->settings ->getConnection ()->getTestRSAKeys () as $ key ) {
683683 $ key = RSA ::load ($ this ->TL , $ key );
684- $ this ->test_rsa_keys [$ key ->fp ] = $ key ;
684+ $ this ->testRsaKeys [$ key ->fp ] = $ key ;
685685 }
686686 // (re)-initialize TL
687687 $ callbacks = [$ this , $ this ->peerDatabase ];
@@ -795,8 +795,9 @@ public function __sleep(): array
795795 'loginState ' ,
796796
797797 // Authorization cache
798- 'rsa_keys ' ,
799- 'test_rsa_keys ' ,
798+ 'rsaKeys ' ,
799+ 'testRsaKeys ' ,
800+ 'cdnRsaKeys ' ,
800801 'dh_config ' ,
801802
802803 // Update state
@@ -1519,7 +1520,7 @@ public function getCdnConfig(): void
15191520 try {
15201521 foreach (($ this ->methodCallAsyncRead ('help.getCdnConfig ' , [], $ this ->loginState ->getState ()->authorizedDc ))['public_keys ' ] as $ curkey ) {
15211522 $ curkey = RSA ::load ($ this ->TL , $ curkey ['public_key ' ]);
1522- $ this ->cdn_rsa_keys [$ curkey ->fp ] = $ curkey ;
1523+ $ this ->cdnRsaKeys [$ curkey ->fp ] = $ curkey ;
15231524 }
15241525 } catch (\danog \MadelineProto \TL \Exception $ e ) {
15251526 $ this ->logger ->logger ($ e ->getMessage (), Logger::FATAL_ERROR );
0 commit comments