From 3d8acd1bd83c1e43d2d1e64355ed9f7f60a15667 Mon Sep 17 00:00:00 2001 From: Petri Asikainen Date: Tue, 6 Jul 2021 07:00:12 +0300 Subject: [PATCH] removed unused Bag-functions --- app/Http/Traits/ConvertsBase64ToFiles.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/app/Http/Traits/ConvertsBase64ToFiles.php b/app/Http/Traits/ConvertsBase64ToFiles.php index 793746dbb6..537d2788c0 100644 --- a/app/Http/Traits/ConvertsBase64ToFiles.php +++ b/app/Http/Traits/ConvertsBase64ToFiles.php @@ -6,8 +6,6 @@ use Illuminate\Http\UploadedFile; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Str; -use Symfony\Component\HttpFoundation\FileBag; -use Symfony\Component\HttpFoundation\ParameterBag; trait ConvertsBase64ToFiles { @@ -16,26 +14,6 @@ trait ConvertsBase64ToFiles return []; } - /** - * Helper method to get the body parameters bag. - * - * @return \Symfony\Component\HttpFoundation\ParameterBag - */ - private function bodyParametersBag(): ParameterBag - { - return $this->request; - } - - /** - * Helper method to get the uploaded files bag. - * - * @return FileBag - */ - private function uploadFilesBag(): FileBag - { - return $this->files; - } - /** * Pulls the Base64 contents for each file key and creates * an UploadedFile instance from it and sets it on the