mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Small code quality things.
This commit is contained in:
		| @@ -68,7 +68,7 @@ class UpdateRequest extends Request | ||||
|     #[Override]
 | ||||
|     public function getAll(): array | ||||
|     { | ||||
|         app('log')->debug(sprintf('Now in %s', __METHOD__)); | ||||
|         Log::debug(sprintf('Now in %s', __METHOD__)); | ||||
|         $this->integerFields  = ['order', 'currency_id', 'foreign_currency_id', 'transaction_journal_id', 'source_id', 'destination_id', 'budget_id', 'category_id', 'bill_id', 'recurrence_id']; | ||||
|         $this->dateFields     = ['date', 'interest_date', 'book_date', 'process_date', 'due_date', 'payment_date', 'invoice_date']; | ||||
|         $this->textareaFields = ['notes']; | ||||
| @@ -101,7 +101,7 @@ class UpdateRequest extends Request | ||||
|      */ | ||||
|     private function getTransactionData(): array | ||||
|     { | ||||
|         app('log')->debug(sprintf('Now in %s', __METHOD__)); | ||||
|         Log::debug(sprintf('Now in %s', __METHOD__)); | ||||
|         $return       = []; | ||||
| 
 | ||||
|         /** @var null|array $transactions */ | ||||
| @@ -185,9 +185,9 @@ class UpdateRequest extends Request | ||||
|     private function getDateData(array $current, array $transaction): array | ||||
|     { | ||||
|         foreach ($this->dateFields as $fieldName) { | ||||
|             app('log')->debug(sprintf('Now at date field %s', $fieldName)); | ||||
|             Log::debug(sprintf('Now at date field %s', $fieldName)); | ||||
|             if (array_key_exists($fieldName, $transaction)) { | ||||
|                 app('log')->debug(sprintf('New value: "%s"', (string) $transaction[$fieldName])); | ||||
|                 Log::debug(sprintf('New value: "%s"', $transaction[$fieldName])); | ||||
|                 $current[$fieldName] = $this->dateFromValue((string) $transaction[$fieldName]); | ||||
|             } | ||||
|         } | ||||
| @@ -252,7 +252,7 @@ class UpdateRequest extends Request | ||||
|     #[Override]
 | ||||
|     public function rules(): array | ||||
|     { | ||||
|         app('log')->debug(sprintf('Now in %s', __METHOD__)); | ||||
|         Log::debug(sprintf('Now in %s', __METHOD__)); | ||||
|         $validProtocols = config('firefly.valid_url_protocols'); | ||||
| 
 | ||||
|         return [ | ||||
| @@ -336,7 +336,7 @@ class UpdateRequest extends Request | ||||
|     #[Override]
 | ||||
|     public function withValidator(Validator $validator): void | ||||
|     { | ||||
|         app('log')->debug('Now in withValidator'); | ||||
|         Log::debug('Now in withValidator'); | ||||
| 
 | ||||
|         /** @var TransactionGroup $transactionGroup */ | ||||
|         $transactionGroup = $this->route()->parameter('userGroupTransaction'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user