mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Replace phpstan suggestions
This commit is contained in:
		| @@ -93,14 +93,14 @@ class StoreController extends Controller | ||||
|         try { | ||||
|             $transactionGroup = $this->groupRepository->store($data); | ||||
|         } catch (DuplicateTransactionException $e) { | ||||
|             Log::warning('Caught a duplicate transaction. Return error message.'); | ||||
|             app('log')->warning('Caught a duplicate transaction. Return error message.'); | ||||
|             $validator = Validator::make( | ||||
|                 ['transactions' => [['description' => $e->getMessage()]]], | ||||
|                 ['transactions.0.description' => new IsDuplicateTransaction()] | ||||
|             ); | ||||
|             throw new ValidationException($validator, 0, $e); | ||||
|         } catch (FireflyException $e) { | ||||
|             Log::warning('Caught an exception. Return error message.'); | ||||
|             app('log')->warning('Caught an exception. Return error message.'); | ||||
|             Log::error($e->getMessage()); | ||||
|             $message   = sprintf('Internal exception: %s', $e->getMessage()); | ||||
|             $validator = Validator::make(['transactions' => [['description' => $message]]], ['transactions.0.description' => new IsDuplicateTransaction()]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user