- Issue created by @Jay Jangid
- @jay-jangid opened merge request.
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 9:52am 31 January 2023 - š®š³India nayana_mvr
Verified MR3 and tested it on Drupal version 10.1.x and Change Field Type version 1.0.x. All the coding standard issues are fixed. Screenshots attached for reference.
- Assigned to lalitkyttn
- Status changed to Active
almost 2 years ago 6:09am 1 February 2023 - Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 6:12am 1 February 2023 - Status changed to Needs work
3 months ago 12:41pm 16 August 2024 - šµšPhilippines cleavinjosh
Hi @lalitkyttn,
I applied patch#6, it was applied and fixed some of the phpcs issues.
These are the remaining issues after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.ā change_field_type git:(1.0.x) curl https://www.drupal.org/files/issues/2023-02-01/ChangeFieldTypeForm.php-3337847-6.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1364 100 1364 0 0 3217 0 --:--:-- --:--:-- --:--:-- 3224 patching file src/Form/ChangeFieldTypeForm.php ā change_field_type git:(1.0.x) ā .. ā contrib phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml change_field_type FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/change_field_type/change_field_type.routing.yml ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 7 | WARNING | The administration page callback should probably use "administer site configuration" - which implies the user can change something - rather than "access administration pages" which is about | | viewing but not changing configurations. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/change_field_type/src/Form/ChangeFieldTypeForm.php ----------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 5 WARNINGS AFFECTING 5 LINES ----------------------------------------------------------------------------------------------------------------------- 144 | WARNING | Unused variable $config. 147 | WARNING | Line exceeds 80 characters; contains 87 characters 147 | ERROR | Comment indentation error, expected only 1 spaces 187 | WARNING | FieldStorageConfig::load calls should be avoided in classes, use dependency injection instead 281 | WARNING | FieldStorageConfig::load calls should be avoided in classes, use dependency injection instead 565 | WARNING | Unused variable $key. ----------------------------------------------------------------------------------------------------------------------- Time: 270ms; Memory: 12MB ā contrib
I also applied MR!3 and still encountered the same issues after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.ā change_field_type git:(1.0.x) curl https://git.drupalcode.org/project/change_field_type/-/merge_requests/3.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1647 0 1647 0 0 2948 0 --:--:-- --:--:-- --:--:-- 2946 patching file src/Form/ChangeFieldTypeForm.php ā change_field_type git:(1.0.x) ā .. ā contrib phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml change_field_type FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/change_field_type/change_field_type.routing.yml ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 7 | WARNING | The administration page callback should probably use "administer site configuration" - which implies the user can change something - rather than "access administration pages" which is about | | viewing but not changing configurations. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/change_field_type/src/Form/ChangeFieldTypeForm.php ----------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES ----------------------------------------------------------------------------------------------------------------------- 144 | WARNING | Unused variable $config. 188 | WARNING | FieldStorageConfig::load calls should be avoided in classes, use dependency injection instead 282 | WARNING | FieldStorageConfig::load calls should be avoided in classes, use dependency injection instead 566 | WARNING | Unused variable $key. ----------------------------------------------------------------------------------------------------------------------- Time: 280ms; Memory: 12MB ā contrib
Thank you.
- Assigned to priyanka_chauhan31