- Issue created by @samit.310@gmail.com
- Issue was unassigned.
- Status changed to Needs review
about 2 years ago 2:48am 17 February 2023 - ๐ฎ๐ณIndia Charchil Khandelwal
Charchil Khandelwal โ made their first commit to this issueโs fork.
- Assigned to Charchil Khandelwal
- ๐ฎ๐ณIndia Charchil Khandelwal
Thanks samit.310@gmail.com,
Patch #2 tested and applied clearly, all the errors and warnings fixed now. - Issue was unassigned.
- @charchil-khandelwal opened merge request.
- ๐ฎ๐ณIndia Charchil Khandelwal
Created MR !14 for easy preview and commenting.
RTBC +1.Thanks.
- Status changed to Needs work
8 months ago 7:56am 30 July 2024 Hi @samit.310,
Applied the patch you provided, it was applied successfully but errors were still reported. Please see below:
add_content_modal git:(1.0.x) curl https://www.drupal.org/files/issues/2023-02-17/3342538-2.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8747 100 8747 0 0 12756 0 --:--:-- --:--:-- --:--:-- 12939 patching file add_content_modal.module patching file src/Controller/DialogController.php patching file src/Controller/ModalController.php patching file src/Form/SettingsForm.php โ add_content_modal git:(1.0.x) โ cd .. โ contrib git:(master) โ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig add_content_modal FILE: ...orgissue-v9/web/modules/contrib/add_content_modal/add_content_modal.module -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\add_content_modal\Form\SettingsForm. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...rgissue-v9/web/modules/contrib/add_content_modal/src/Form/SettingsForm.php -------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 2 LINES -------------------------------------------------------------------------------- 33 | ERROR | [x] The first parameter of a multi-line function declaration must | | be on the line after the opening bracket 34 | ERROR | [x] Multi-line function declaration not indented correctly; | | expected 4 spaces but found 30 34 | ERROR | [x] Multi-line function declarations must have a trailing comma | | after the last parameter 34 | ERROR | [x] The closing parenthesis of a multi-line function declaration | | must be on a new line -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...9/web/modules/contrib/add_content_modal/src/Controller/ModalController.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 12 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\Core\Ajax\AjaxResponse. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: .../web/modules/contrib/add_content_modal/src/Controller/DialogController.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 14 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\Core\Ajax\AjaxResponse. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- Time: 247ms; Memory: 12MB
Kindly check
Thanks,
Jake