diff --git a/core/modules/media_library/src/MediaLibraryState.php b/core/modules/media_library/src/MediaLibraryState.php index dd1878c58b..e93d7da24e 100644 --- a/core/modules/media_library/src/MediaLibraryState.php +++ b/core/modules/media_library/src/MediaLibraryState.php @@ -146,11 +146,11 @@ public static function fromRequest(Request $request) { * The allowed media type IDs. * @param string $selected_type_id * The selected media type ID. - * @param string $form_mode - * The form_mode machine name for the add media form. * @param int $remaining_slots * The number of remaining items the user is allowed to select or add in the * library. + * @param string $form_mode + * The form_mode machine name for the add media form. * * @throws \InvalidArgumentException * If one of the passed arguments is missing or does not pass the diff --git a/core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php b/core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php index 4ee1c27267..9ac79c2c14 100644 --- a/core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php +++ b/core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php @@ -114,7 +114,7 @@ public function testFieldWidgetEntityCreateAccess() { // Create a media library state to test access. $state = MediaLibraryState::create('media_library.opener.field_widget', [ 'file', - 'image' + 'image', ], 'file', 2, [ 'entity_type_id' => 'entity_test', 'bundle' => 'test', diff --git a/core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php b/core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php index ea381c7c3f..6b315dbd5f 100644 --- a/core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php +++ b/core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php @@ -378,7 +378,7 @@ public function providerFromRequest() { * @covers ::getOpenerParameters */ public function testOpenerParameters() { - $state = MediaLibraryState::create('test', ['file'], 'file', -1, ['foo' => 'baz',], $this->form_mode); + $state = MediaLibraryState::create('test', ['file'], 'file', -1, ['foo' => 'baz'], $this->form_mode); $this->assertSame(['foo' => 'baz'], $state->getOpenerParameters()); }