This commit is contained in:
James Cole
2019-09-07 16:19:01 +02:00
parent cb9c59e5e3
commit c0fd371430

View File

@@ -158,17 +158,17 @@ class SummaryController extends Controller
* @param array $spentInfo * @param array $spentInfo
* @param TransactionCurrency $currency * @param TransactionCurrency $currency
* *
* @return float * @return string
*/ */
private function findInSpentArray(array $spentInfo, TransactionCurrency $currency): float private function findInSpentArray(array $spentInfo, TransactionCurrency $currency): string
{ {
foreach ($spentInfo as $array) { foreach ($spentInfo as $array) {
if ($array['currency_id'] === $currency->id) { if ($array['currency_id'] === $currency->id) {
return $array['amount']; return (string)$array['amount'];
} }
} }
return 0.0; // @codeCoverageIgnore return '0'; // @codeCoverageIgnore
} }
/** /**