From 9948d895438eb5e9f044f5df011539283e14b6b9 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 14 Jan 2015 16:20:31 +0000 Subject: [PATCH] Clean up line lengths --- src/Http/Controllers/DashTeamController.php | 28 ++++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/Http/Controllers/DashTeamController.php b/src/Http/Controllers/DashTeamController.php index a288c04d..b3533a4f 100644 --- a/src/Http/Controllers/DashTeamController.php +++ b/src/Http/Controllers/DashTeamController.php @@ -61,11 +61,21 @@ class DashTeamController extends Controller if (! $user->isValid()) { return Redirect::back()->withInput(Binput::except('password')) - ->with('title', sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.team.add.failure'))) + ->with('title', sprintf( + '%s %s', + trans('dashboard.notifications.whoops'), + trans('dashboard.team.add.failure') + )) ->with('errors', $user->getErrors()); } - return Redirect::back()->with('success', sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.team.add.success'))); + $successMsg = sprintf( + '%s %s', + trans('dashboard.notifications.awesome'), + trans('dashboard.team.add.success') + ); + + return Redirect::back()->with('success', $successMsg); } /** @@ -89,10 +99,20 @@ class DashTeamController 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); } }