From 7bffa6bb8f417023d866570392e3bd0559c1cea3 Mon Sep 17 00:00:00 2001 From: Sokolovskyy Roman Date: Thu, 3 Aug 2017 09:26:09 +0200 Subject: [PATCH] Set of PHPDOC fixes --- phpseclib/Math/BigInteger/Engines/Engine.php | 18 +++++++++--------- phpseclib/Math/BigInteger/Engines/GMP.php | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/phpseclib/Math/BigInteger/Engines/Engine.php b/phpseclib/Math/BigInteger/Engines/Engine.php index 89787416..9f3dc497 100644 --- a/phpseclib/Math/BigInteger/Engines/Engine.php +++ b/phpseclib/Math/BigInteger/Engines/Engine.php @@ -396,7 +396,7 @@ abstract class Engine implements \Serializable /** * Logical Not * - * @return \phpseclib\Math\BigInteger\Engines\Engine + * @return Engine|string */ public function bitwise_not() { @@ -465,7 +465,7 @@ abstract class Engine implements \Serializable * Instead of the top x bits being dropped they're appended to the shifted bit string. * * @param int $shift - * @return \phpseclib\Math\BigInteger\Engine\Engines + * @return \phpseclib\Math\BigInteger\Engines\Engine */ public function bitwise_leftRotate($shift) { @@ -563,7 +563,7 @@ abstract class Engine implements \Serializable /** * Performs some pre-processing for powMod * - * @return \phpseclib\Math\BigInteger\Engines\Engine + * @return bool|Engine */ protected function powModOuter(Engine $e, Engine $n) { @@ -591,11 +591,11 @@ abstract class Engine implements \Serializable * however, this function performs a modular reduction after every multiplication and squaring operation. * As such, this function has the same preconditions that the reductions being used do. * - * @param \phpseclib\Math\BigInteger\Engine $x - * @param \phpseclib\Math\BigInteger\Engine $e - * @param \phpseclib\Math\BigInteger\Engine $n + * @param \phpseclib\Math\BigInteger\Engines\Engine $x + * @param \phpseclib\Math\BigInteger\Engines\Engine $e + * @param \phpseclib\Math\BigInteger\Engines\Engine $n * @param string $class - * @return \phpseclib\Math\BigInteger\Engine + * @return \phpseclib\Math\BigInteger\Engines\Engine */ protected static function slidingWindow(Engine $x, Engine $e, Engine $n, $class) { @@ -691,7 +691,7 @@ abstract class Engine implements \Serializable /** * Performs some pre-processing for randomRangePrime * - * @return \phpseclib\Math\BigInteger\Engines\Engine + * @return bool|Engine */ protected static function randomRangePrimeOuter(Engine $min, Engine $max) { @@ -781,7 +781,7 @@ abstract class Engine implements \Serializable /** * Performs some post-processing for randomRangePrime * - * @return \phpseclib\Math\BigInteger\Engine + * @return bool|Engine */ protected static function randomRangePrimeInner(Engine $x, Engine $min, Engine $max) { diff --git a/phpseclib/Math/BigInteger/Engines/GMP.php b/phpseclib/Math/BigInteger/Engines/GMP.php index 5e5a0197..9a406a27 100644 --- a/phpseclib/Math/BigInteger/Engines/GMP.php +++ b/phpseclib/Math/BigInteger/Engines/GMP.php @@ -546,7 +546,7 @@ class GMP extends Engine * * Returns the nth root of a positive biginteger, where n defaults to 2 * - * @return \phpseclib\Math\BigInteger\Engines\Engine\GMP + * @return \phpseclib\Math\BigInteger\Engines\GMP */ protected function rootInner($n) {