Skip to content

Commit

Permalink
Inline variables
Browse files Browse the repository at this point in the history
  • Loading branch information
amaelftah committed Oct 3, 2019
1 parent f790398 commit e24d4c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Http/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public function showSetForm(Request $request, $token)
]);
}

$translator = new Translator();
$translator->replaceFormLines();
(new Translator())->replaceFormLines();

return \View::make('auth.passwords.reset', [
'token' => $token,
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ protected function handleAfterRedirect($request, Closure $next)

protected function replaceLanguageStrings()
{
$translator = new Translator();
$translator->replaceResponseLines();
(new Translator())->replaceResponseLines();
}
}

0 comments on commit e24d4c0

Please sign in to comment.