- Issue created by @roberttabigue
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 5:20pm 5 July 2023 - Open on Drupal.org →Core: 10.0.7 + Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - 🇵🇭Philippines roberttabigue
Hi,
I have created a patch to fix the issues reported by phpcs.
Please review.
Thank you! - Status changed to Needs work
over 1 year ago 6:52am 3 August 2023 - 🇬🇧United Kingdom joachim
-
+++ b/codefilter.module @@ -14,6 +14,9 @@ function codefilter_form_filter_format_edit_form_alter(&$form, FormStateInterfac + *
Needs a comment here.
-
+++ b/codefilter.module @@ -32,7 +35,10 @@ function codefilter_form_filter_format_edit_form_validate(&$form, FormStateInter - if ($form_state->getValue(['filters', 'filter_htmlcorrector', 'status']) && $form_state->getValue(['filters', 'filter_htmlcorrector', 'weight']) < $form_state->getValue(['filters', 'codefilter', 'weight'])) {
Breaking the long lines is good, but I don't think that's quite the right way to do it.
There are 2 clauses - should be 2 lines.
-
- Assigned to nitin_lama
- 🇮🇳India nitin_lama India
Patch #2 doesn't apply on 2.0.x branch.
Providing an updated patch. Please review. Thanks
- last update
over 1 year ago 1 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 12:47pm 7 August 2023 - Assigned to akshay.singh
- 🇮🇳India akshay.singh Noida
After applying the above patch, I still got these errors which i have fixed and raised MR and attached a interdiff also.
ILE: codefilter-3372646/tests/src/Unit/CodeFilterTest.php ------------------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------ 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\codefilter\Plugin\Filter\CodeFilter. ------------------------------------------------------------------------------------------------------------------------------------ FILE: codefilter-3372646/src/Plugin/Filter/CodeFilter.php ----------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Utility\Html. -----------------------------------------------------------------------------------------------------------------------
- Issue was unassigned.
- last update
over 1 year ago 1 pass - @akshaysingh opened merge request.
- Status changed to RTBC
over 1 year ago 2:19pm 8 August 2023 - 🇵🇭Philippines roberttabigue
Hi,
I applied the latest MR !2 to the module on Drupal 9.5.10 and confirmed all PHPCS errors have been resolved!
I re-ran this command on the module:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml codefilter/
Please see the attached files for reference.
I'm moving this now to RTBC.
Thank you!
- 🇬🇧United Kingdom joachim
Please don't post screenshots of a patch applying. We don't need them and they waste space.
- Status changed to Fixed
6 months ago 2:41pm 24 May 2024 Automatically closed - issue fixed for 2 weeks with no activity.