From 8986570e1d732ee7fb3099a1e4d28d5fd5dfd901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Sat, 14 Nov 2026 23:48:05 +0100 Subject: [PATCH] refactor(ToolboxHelper): remove unused method and import Cleaned up ToolboxHelper by removing the unused stripCkEditorSchemesOnMediaInputs method and its associated import, streamlining the code. --- app/Lib/Helpers/ToolboxHelper.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/Lib/Helpers/ToolboxHelper.php b/app/Lib/Helpers/ToolboxHelper.php index 0e53f5e4..9905caef 100644 --- a/app/Lib/Helpers/ToolboxHelper.php +++ b/app/Lib/Helpers/ToolboxHelper.php @@ -6,7 +6,6 @@ namespace App\Lib\Helpers; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Validator; -use Illuminate\Support\Str; use Illuminate\Validation\Rule; class ToolboxHelper extends ToolboxHelperCore @@ -30,20 +29,6 @@ class ToolboxHelper extends ToolboxHelperCore return $merged; } - /** - * Strip scheme (https) on oembed urls - * Only embed allowed are for MP4 self hosted videos right now - * - * https is force by ckeditor MediaElements which natively supports - * only cloud hosted medias (youtube, spotify etc..) - */ - public static function stripCkEditorSchemesOnMediaInputs(string $input): string - { - return Str::of($input) - ->replaceMatches('/(?<=)/m', '') - ->toString(); - } - /** * Asserts that the field is unique. *