From 3af4d8fb3ad3175d874be85dc9a7e534341906df Mon Sep 17 00:00:00 2001 From: Andreu Correa Casablanca Date: Mon, 20 Jan 2014 01:39:48 +0100 Subject: [PATCH] Applied patch from Scrutinizer --- src/Decimal.php | 2 +- tests/Decimal/DecimalAbsTest.php | 2 +- tests/Decimal/DecimalAddTest.php | 4 ++-- tests/Decimal/DecimalAdditiveInverseTest.php | 2 +- tests/Decimal/DecimalCompTest.php | 2 +- tests/Decimal/DecimalCreateTest.php | 2 +- tests/Decimal/DecimalDivTest.php | 4 ++-- tests/Decimal/DecimalEqualsTest.php | 2 +- tests/Decimal/DecimalFromDecimalTest.php | 2 +- tests/Decimal/DecimalFromFloatTest.php | 5 ++--- tests/Decimal/DecimalFromIntegerTest.php | 2 +- tests/Decimal/DecimalInternalValidationTest.php | 2 +- tests/Decimal/DecimalLog10Test.php | 2 +- tests/Decimal/DecimalMulTest.php | 4 ++-- tests/Decimal/DecimalPowTest.php | 2 +- tests/Decimal/DecimalSqrtTest.php | 2 +- tests/Decimal/DecimalSubTest.php | 4 ++-- tests/Infinite/InfiniteAddTest.php | 4 ++-- tests/Infinite/InfiniteDivTest.php | 4 ++-- tests/Infinite/InfiniteMulTest.php | 4 ++-- tests/Infinite/InfiniteSubTest.php | 4 ++-- 21 files changed, 30 insertions(+), 31 deletions(-) diff --git a/src/Decimal.php b/src/Decimal.php index dbe5c43..f39d2c2 100644 --- a/src/Decimal.php +++ b/src/Decimal.php @@ -739,7 +739,7 @@ private static function innerPowWithLittleExponent($base, $exponent, $exp_scale, * @param integer $actual_index * @param integer $exp_scale Number of $exponent's significative digits * @param integer $inner_scale ceil($exp_scale*log(10)/log(2))+1; - * @return array + * @return string */ private static function computeSquareIndex($exponent_remaining, $actual_index, $exp_scale, $inner_scale) { diff --git a/tests/Decimal/DecimalAbsTest.php b/tests/Decimal/DecimalAbsTest.php index eda7075..62c312f 100644 --- a/tests/Decimal/DecimalAbsTest.php +++ b/tests/Decimal/DecimalAbsTest.php @@ -1,6 +1,6 @@