- Issue created by @samit.310@gmail.com
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 4:43am 30 January 2023 - Assigned to Charchil Khandelwal
- @charchil-khandelwal opened merge request.
- Issue was unassigned.
- š®š³India Charchil Khandelwal
Patch #2 applied cleanly, all the errors and warnings are fixed now.
Created MR for this, please review.Thank You.
- Status changed to Needs work
3 months ago 11:56am 15 August 2024 - šµšPhilippines cleavinjosh
Hi,
I applied patch #2, it was not applied cleanly and did not fix all the phpcs issues.
ā twitter_feed git:(2.0.1) curl https://www.drupal.org/files/issues/2023-01-30/3337441-2.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5007 100 5007 0 0 19274 0 --:--:-- --:--:-- --:--:-- 19257 patching file src/Form/TwitterFeedConfigForm.php Hunk #1 succeeded at 9 with fuzz 1 (offset 1 line). Hunk #2 succeeded at 95 (offset 18 lines). patching file src/Plugin/Block/TwitterFeedBlock.php patching file twitter_feed.module ā twitter_feed git:(2.0.1) ā .. ā contrib phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml twitter_feed FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/twitter_feed/src/Form/TwitterFeedConfigForm.php ------------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------ 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Render\RendererInterface. ------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------ FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/twitter_feed/src/Plugin/Block/TwitterFeedBlock.php ------------------------------------------------------------------------------------------------------------------------------------ FOUND 7 ERRORS AFFECTING 6 LINES ------------------------------------------------------------------------------------------------------------------------------------ 11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface. 52 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 53 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 54 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 55 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 56 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 56 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter ------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------ Time: 202ms; Memory: 10MB ā contrib
I then applied MR!2, it was applied smoothly and fixed most of the phpcs issues.
These are the issues remaining after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
:ā twitter_feed git:(2.0.1) curl https://git.drupalcode.org/project/twitter_feed/-/merge_requests/2.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5145 0 5145 0 0 10709 0 --:--:-- --:--:-- --:--:-- 10718 patching file src/Form/TwitterFeedConfigForm.php patching file src/Plugin/Block/TwitterFeedBlock.php patching file twitter_feed.module ā twitter_feed git:(2.0.1) ā .. ā contrib phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml twitter_feed FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/twitter_feed/src/Form/TwitterFeedConfigForm.php ------------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------ 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Render\RendererInterface. ------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------ FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/twitter_feed/src/Plugin/Block/TwitterFeedBlock.php ----------------------------------------------------------------------------------------------------------------------- FOUND 7 ERRORS AFFECTING 6 LINES ----------------------------------------------------------------------------------------------------------------------- 10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is GuzzleHttp\ClientInterface. 52 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 53 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 54 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 55 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 56 | ERROR | [x] Multi-line function declaration not indented correctly; expected 4 spaces but found 8 56 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter ----------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------- Time: 215ms; Memory: 10MB ā contrib
Thank you.