From 6acaae877aa196f8e312dc2205cd6c1b7fc6cf1f Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 5 Aug 2016 20:50:19 -0400 Subject: [PATCH] Applied fixes from StyleCI --- TL.php | 1 + mtproto.php | 2 +- prime.php | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TL.php b/TL.php index 0500ca03..420f295a 100644 --- a/TL.php +++ b/TL.php @@ -210,6 +210,7 @@ class TL } break; } + return $x; } } diff --git a/mtproto.php b/mtproto.php index 2155173f..e20e74b5 100755 --- a/mtproto.php +++ b/mtproto.php @@ -231,7 +231,7 @@ class Session pyjslib_printnl('Requesting pq'); $ResPQ = $this->method_call('req_pq', ['nonce' => $nonce]); $server_nonce = $ResPQ['server_nonce']; - $public_key_fingerprint = (int)$ResPQ['server_public_key_fingerprints'][0]; + $public_key_fingerprint = (int) $ResPQ['server_public_key_fingerprints'][0]; $pq_bytes = $ResPQ['pq']; $pq = new \phpseclib\Math\BigInteger($pq_bytes, 256); diff --git a/prime.php b/prime.php index 849fe4ee..2a821de1 100644 --- a/prime.php +++ b/prime.php @@ -183,7 +183,8 @@ class PrimeModule if (count($res) == 2) { return $res; } - } catch (ErrorException $e) { ; }; + } catch (ErrorException $e) { + } } // Else do factorization with wolfram alpha :))))) $query = 'Do prime factorization of '.$pq;