chore: use string and array classes instead of helpers (#2605)

This commit is contained in:
Alexis Saettler
2019-04-16 08:21:46 +02:00
committed by GitHub
parent 74070d84de
commit 536f34abd0
32 changed files with 96 additions and 119 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
use App\Helpers\DateHelper;
use App\Jobs\ResizeAvatars;
use App\Models\Contact\Tag;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use App\Helpers\AvatarHelper;
use App\Helpers\LocaleHelper;
@@ -538,7 +539,7 @@ class ContactsController extends Controller
return response($vcard->serialize())
->header('Content-type', 'text/x-vcard')
->header('Content-Disposition', 'attachment; filename='.str_slug($contact->name, '-', LocaleHelper::getLang()).'.vcf');
->header('Content-Disposition', 'attachment; filename='.Str::slug($contact->name, '-', LocaleHelper::getLang()).'.vcf');
}
/**