- Issue created by @rassoni
- Status changed to Needs review
over 1 year ago 11:07am 9 March 2023 - Assigned to indrapatil
- Issue was unassigned.
- Status changed to RTBC
over 1 year ago 12:05pm 9 March 2023 - š®š³India indrapatil Bangalore
@Adil_Siddiqui patch applied successfully without errors, So moving to RTBC.
- š®š¹Italy apaderno Brescia, š®š¹
Keep in mind that the correct issue tag for this issues is Coding standards.
- Status changed to Needs work
over 1 year ago 3:40pm 9 March 2023 - š®š¹Italy apaderno Brescia, š®š¹
- $entity_display_repository = \Drupal::service('entity_display.repository'); -
Since the test is using the following code, it is probably better to change the other lines, instead of removing that line.
$entity_display_repository = \Drupal::service('entity_display.repository'); $media_type = $this->createMediaType('soundcloud', ['id' => 'soundcloud']); $source_field = $media_type->getSource()->getSourceFieldDefinition($media_type); $this->assertSame('field_media_soundcloud', $source_field->getName()); $this->assertSame('string', $source_field->getType()); // Set form and view displays. \Drupal::service('entity_display.repository')->getFormDisplay('media', $media_type->id(), 'default') ->setComponent('field_media_soundcloud', [ 'type' => 'string_textfield', ]) ->save(); \Drupal::service('entity_display.repository')->getViewDisplay('media', $media_type->id(), 'full') ->setComponent('field_media_soundcloud', [ 'type' => 'soundcloud_embed', ]) ->save();
- š®š³India Adil_Siddiqui
The below variable is not required as it is just declared and not used anywhere hence it is removed in the patch.
- $entity_display_repository = \Drupal::service('entity_display.repository'); -
- Status changed to Needs review
over 1 year ago 8:30am 14 March 2023 - š®š³India rajeshreeputra Pune
Can we get the MR for quick review and merge.
- First commit to issue fork.
- Status changed to Needs work
4 months ago 8:34am 30 July 2024 - šµšPhilippines cleavinjosh
Hi @kkalashnikov,
I applied your patch, it was applied smoothly. However I still encountered some issues after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.ā media_entity_soundcloud git:(3346907-fix-the-issues) curl https://www.drupal.org/files/issues/2023-03-14/3346907-8.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2950 100 2950 0 0 7039 0 --:--:-- --:--:-- --:--:-- 7040 patching file src/Form/SoundcloudForm.php patching file src/Plugin/Field/FieldFormatter/SoundcloudEmbedFormatter.php patching file tests/src/Functional/SoundcloudEmbedFormatterTest.php ā media_entity_soundcloud git:(3346907-fix-the-issues) ā .. ā contrib phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml media_entity_soundcloud FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/media_entity_soundcloud/media_entity_soundcloud.module --------------------------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES --------------------------------------------------------------------------------------------------------------------------- 8 | ERROR | [x] There must be one blank line after the last USE statement; 2 found; 14 | ERROR | [x] Expected 1 blank line before function; 2 found 48 | ERROR | [x] Case breaking statements must be followed by a single blank line 51 | ERROR | [x] Expected 1 blank line after function; 0 found --------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------
.
Thank you.
- Status changed to Needs review
4 months ago 8:36am 30 July 2024 - Status changed to RTBC
4 months ago 1:39pm 31 July 2024 - š®š¹Italy apaderno Brescia, š®š¹
-
Rajeshreeputra ā
committed e9f3fea0 on 3.x authored by
cleavinjosh ā
Issue #3346907: Fix the issues reported by phpcs
-
Rajeshreeputra ā
committed e9f3fea0 on 3.x authored by
cleavinjosh ā
- Status changed to Fixed
4 months ago 10:39am 7 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.