From ce2a18baae5832aaa5fdfd760ad6f1a22d61a45e Mon Sep 17 00:00:00 2001 From: MarkejN Date: Mon, 4 Mar 2024 16:05:25 +0100 Subject: [PATCH] CS --- contao/config/config.php | 4 ++-- contao/dca/tl_content.php | 11 +++++++++-- ecs.php | 3 +++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/contao/config/config.php b/contao/config/config.php index 1f062e8..e275593 100644 --- a/contao/config/config.php +++ b/contao/config/config.php @@ -3,9 +3,9 @@ declare(strict_types=1); /* - * This file is part of postyou/contao-abr-streaming-bundle + * This file is part of postyou/contao-abr-streaming-bundle. * - * (c) Postyou Werbeagentur + * (c) POSTYOU Werbeagentur * * @license MIT */ diff --git a/contao/dca/tl_content.php b/contao/dca/tl_content.php index 0a9ad75..7daeeec 100644 --- a/contao/dca/tl_content.php +++ b/contao/dca/tl_content.php @@ -2,6 +2,14 @@ declare(strict_types=1); +/* + * This file is part of postyou/contao-abr-streaming-bundle. + * + * (c) POSTYOU Werbeagentur + * + * @license MIT + */ + use Contao\CoreBundle\DataContainer\PaletteManipulator; /* @@ -15,7 +23,6 @@ $GLOBALS['TL_DCA']['tl_content']['palettes']['__selector__'][] = 'useVideoJs'; $GLOBALS['TL_DCA']['tl_content']['subpalettes']['useVideoJs'] = 'videoJsSetup'; - $GLOBALS['TL_DCA']['tl_content']['fields']['useVideoJs'] = [ 'inputType' => 'checkbox', 'eval' => ['submitOnChange' => true], @@ -37,7 +44,7 @@ 'explanation' => 'insertTags', 'sql' => 'text NULL', ]; - + PaletteManipulator::create() ->addLegend('videojs_legend', 'player_legend', PaletteManipulator::POSITION_BEFORE) ->addField('useVideoJs', 'videojs_legend', PaletteManipulator::POSITION_APPEND) diff --git a/ecs.php b/ecs.php index 976ec53..2eeabbe 100644 --- a/ecs.php +++ b/ecs.php @@ -32,6 +32,9 @@ MethodChainingIndentationFixer::class => [ 'config/*.php', ], + HeaderCommentFixer::class => [ + 'contao/elements/ContentVideoJsPlayer.php', + ], ]) ->withPaths([ __DIR__.'/config',