1
0
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:
Daniil Gentili 2016-08-10 08:51:37 -04:00 committed by StyleCI Bot
parent e7487ab60c
commit bf218ae218

View File

@ -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;