Code Duplication    Length = 5-5 lines in 2 locations

code/model/MultiForm.php 2 locations

@@ 414-418 (lines=5) @@
411
			return false;
412
		}
413
414
		if(!$this->getCurrentStep()->validateStep($data, $form)) {
415
			Session::set("FormInfo.{$form->FormName()}.data", $form->getData());
416
			$this->controller->redirectBack();
417
			return false;
418
		}
419
420
	}
421
@@ 448-452 (lines=5) @@
445
		// Perform custom step validation (use MultiFormStep->getValidator() for
446
		// built-in functionality). The data needs to be manually saved on error
447
		// so the form is re-populated.
448
		if(!$this->getCurrentStep()->validateStep($data, $form)) {
449
			Session::set("FormInfo.{$form->FormName()}.data", $form->getData());
450
			$this->controller->redirectBack();
451
			return false;
452
		}
453
454
		// validation succeeded so we reset it to remove errors and messages
455
		$this->resetValidation();