From 041dbb11453186346e664dda24b252d02388be8e Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Wed, 11 Dec 2024 07:30:51 -0600 Subject: [PATCH] Fix remaining warnings --- .../behaviors/importexportcontroller/TranscodeFilter.php | 2 ++ modules/backend/tests/models/ExportModelTest.php | 4 ---- modules/backend/tests/models/ImportModelTest.php | 4 ---- phpcs.xml | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/modules/backend/behaviors/importexportcontroller/TranscodeFilter.php b/modules/backend/behaviors/importexportcontroller/TranscodeFilter.php index 95c4678c1e..d25ff53916 100644 --- a/modules/backend/behaviors/importexportcontroller/TranscodeFilter.php +++ b/modules/backend/behaviors/importexportcontroller/TranscodeFilter.php @@ -4,7 +4,9 @@ use php_user_filter; +// phpcs:disable stream_filter_register(TranscodeFilter::FILTER_NAME . "*", TranscodeFilter::class); +// phpcs:enable /** * Transcode stream filter. diff --git a/modules/backend/tests/models/ExportModelTest.php b/modules/backend/tests/models/ExportModelTest.php index d89b43381e..43c1bc305f 100644 --- a/modules/backend/tests/models/ExportModelTest.php +++ b/modules/backend/tests/models/ExportModelTest.php @@ -6,10 +6,6 @@ use Illuminate\Http\Request; use System\Tests\Bootstrap\TestCase; -if (!class_exists('Model')) { - class_alias('Winter\Storm\Database\Model', 'Model'); -} - class ExampleExportModel extends ExportModel { public function exportData($columns, $sessionKey = null) diff --git a/modules/backend/tests/models/ImportModelTest.php b/modules/backend/tests/models/ImportModelTest.php index c57dce1c05..86f59ee7dc 100644 --- a/modules/backend/tests/models/ImportModelTest.php +++ b/modules/backend/tests/models/ImportModelTest.php @@ -6,10 +6,6 @@ use System\Models\File as FileModel; use System\Tests\Bootstrap\PluginTestCase; -if (!class_exists('Model')) { - class_alias('Winter\Storm\Database\Model', 'Model'); -} - class ExampleImportModel extends ImportModel { public $rules = []; diff --git a/phpcs.xml b/phpcs.xml index 62ac10089b..feb43bb07e 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -8,7 +8,6 @@ - bootstrap/ config/ modules/ plugins/winter/demo/