Skip to content

Commit

Permalink
[CLEANUP] Fix code style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
astehlik committed Dec 20, 2023
1 parent ec0094d commit 64d4236
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions Classes/Exception/MediaException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@
*
* @codeCoverageIgnore No code to test.
*/
class MediaException extends RuntimeException
{
}
class MediaException extends RuntimeException {}
2 changes: 1 addition & 1 deletion Configuration/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return function (ContainerConfigurator $configurator): void {
return static function (ContainerConfigurator $configurator): void {
$configurator->services()
->defaults()->autowire()->autoconfigure()->public()

Expand Down
4 changes: 2 additions & 2 deletions Configuration/TCA/tx_html5mediakit_domain_model_media.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
$languagePrefixCsh = 'LLL:EXT:html5mediakit/Resources/Private/Language/locallang_csh_media.xlf:';
$lllAddImageFileReference = 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference';

$buildFileFieldConfig = function (
string|array $allowedFileTypes,
$buildFileFieldConfig = static function (
array|string $allowedFileTypes,
int $maxitems = 1,
string $showitem = '',
string $createNewRelationLinkTitle = '',
Expand Down
2 changes: 1 addition & 1 deletion Tests/Unit/ViewHelpers/VideoViewHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private function assertRenderResult(string $expectedResult, ?Video $video = null
{
$this->arguments['video'] = $video ?: new Video();

$renderChildrenClosure = function () {
$renderChildrenClosure = static function () {
return 'children';
};

Expand Down

0 comments on commit 64d4236

Please sign in to comment.