mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 08:34:41 +01:00
Applied fixes from StyleCI
This commit is contained in:
parent
e7487ab60c
commit
bf218ae218
@ -166,7 +166,9 @@ class PrimeModule
|
||||
while (true) {
|
||||
$ys = Tools::posmod(Tools::posmod(pow($ys, 2), $n) + $c, $n);
|
||||
$g = $this->gcd(abs($x - $ys), $n);
|
||||
if ($g > 1) break;
|
||||
if ($g > 1) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -215,7 +217,9 @@ class PrimeModule
|
||||
}
|
||||
if (is_object($pq)) {
|
||||
$n = $pq->toString();
|
||||
} else $n = $pq;
|
||||
} else {
|
||||
$n = $pq;
|
||||
}
|
||||
$n = (int) $n;
|
||||
$factors = [];
|
||||
$limit = sqrt($n) + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user