diff --git a/src/Http/Controllers/DashUserController.php b/src/Http/Controllers/DashUserController.php
index 1b69209d..bf95039b 100644
--- a/src/Http/Controllers/DashUserController.php
+++ b/src/Http/Controllers/DashUserController.php
@@ -52,11 +52,21 @@ class DashUserController extends Controller
if (! $user->isValid()) {
return Redirect::back()->withInput(Binput::except('password'))
- ->with('title', sprintf("%s %s", trans('dashboard.notifications.whoops'), trans('dashboard.team.edit.failure')))
+ ->with('title', sprintf(
+ '%s %s',
+ trans('dashboard.notifications.whoops'),
+ trans('dashboard.team.edit.failure')
+ ))
->with('errors', $user->getErrors());
}
- return Redirect::back()->with('success', sprintf("%s %s", trans('dashboard.notifications.awesome'), trans('dashboard.team.edit.success')));
+ $successMsg = sprintf(
+ '%s %s',
+ trans('dashboard.notifications.awesome'),
+ trans('dashboard.team.edit.success')
+ );
+
+ return Redirect::back()->with('success', $successMsg);
}
/**