reduce NoL in redirect method
This commit is contained in:
parent
8477aba87b
commit
4b0a6cad1d
1 changed files with 1 additions and 6 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue