Some code cleanup and reordering

This commit is contained in:
James Cole
2016-01-24 15:58:16 +01:00
parent 2832d308f1
commit 97db618cd8
10 changed files with 453 additions and 458 deletions

View File

@@ -80,23 +80,6 @@ class ProfileController extends Controller
return redirect(route('profile'));
}
/**
*
* @param string $old
* @param string $new1
*
* @return string|bool
*/
protected function validatePassword($old, $new1)
{
if ($new1 == $old) {
return trans('firefly.should_change');
}
return true;
}
/**
* @param DeleteAccountFormRequest $request
*
@@ -132,5 +115,22 @@ class ProfileController extends Controller
return redirect(route('index'));
}
/**
*
* @param string $old
* @param string $new1
*
* @return string|bool
*/
protected function validatePassword($old, $new1)
{
if ($new1 == $old) {
return trans('firefly.should_change');
}
return true;
}
}