mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Code cleanup
This commit is contained in:
		| @@ -58,8 +58,8 @@ class RuleGroupFormRequest extends Request | ||||
|         /** @var RuleGroupRepositoryInterface $repository */ | ||||
|         $repository = app(RuleGroupRepositoryInterface::class); | ||||
|         $titleRule  = 'required|between:1,100|uniqueObjectForUser:rule_groups,title'; | ||||
|         if (null !== $repository->find(intval($this->get('id')))->id) { | ||||
|             $titleRule = 'required|between:1,100|uniqueObjectForUser:rule_groups,title,' . intval($this->get('id')); | ||||
|         if (null !== $repository->find((int)$this->get('id'))->id) { | ||||
|             $titleRule = 'required|between:1,100|uniqueObjectForUser:rule_groups,title,' . (int)$this->get('id'); | ||||
|         } | ||||
|  | ||||
|         return [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user