reduce NoL in redirect method

This commit is contained in:
Jonny Barnes 2017-06-22 15:57:31 +01:00
parent 8477aba87b
commit 4b0a6cad1d

View file

@ -76,12 +76,7 @@ class NotesController extends Controller
*/
public function redirect($decId)
{
$numbers = new Numbers();
$realId = $numbers->numto60($decId);
$url = config('app.url') . '/notes/' . $realId;
return redirect($url);
return redirect(config('app.url') . '/notes/' . (new Numbers())->numto60($decId));
}
/**