mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Small code cleanup
This commit is contained in:
		| @@ -62,7 +62,7 @@ trait CurrencyValidation | ||||
|             } | ||||
|             // if foreign amount is present, then the currency must be as well.
 | ||||
|             if (!(array_key_exists('foreign_currency_id', $transaction) || array_key_exists('foreign_currency_code', $transaction)) && 0 !== bccomp('0', $transaction['foreign_amount'])) { | ||||
|                 $validator->errors()->add('transactions.' . $index . '.foreign_amount', (string) trans('validation.require_currency_info')); | ||||
|                 $validator->errors()->add('transactions.'.$index.'.foreign_amount', (string) trans('validation.require_currency_info')); | ||||
|             } | ||||
|             // if the currency is present, then the amount must be present as well.
 | ||||
|             if ((array_key_exists('foreign_currency_id', $transaction) || array_key_exists('foreign_currency_code', $transaction)) | ||||
| @@ -71,7 +71,7 @@ trait CurrencyValidation | ||||
|                     $transaction | ||||
|                 )) { | ||||
|                 $validator->errors()->add( | ||||
|                     'transactions.' . $index . '.foreign_amount', | ||||
|                     'transactions.'.$index.'.foreign_amount', | ||||
|                     (string) trans('validation.require_currency_amount') | ||||
|                 ); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user