FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\commerce_giftcard_mail\commerce_giftcard_mail.module
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
2 | ERROR | [ ] Missing short description in doc comment
6 | WARNING | [x] Unused use statement
10 | ERROR | [x] There must be no blank lines after the function comment
27 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
33 | ERROR | [ ] The array declaration extends to column 195 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\commerce_giftcard_mail\README.md
-----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 124 characters
9 | WARNING | Line exceeds 80 characters; contains 226 characters
13 | WARNING | Line exceeds 80 characters; contains 139 characters
-----------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\commerce_giftcard_mail\src\Plugin\Commerce\EmailEvent\GiftcardActivated.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Coding-standards-resolved-3312009-6.patch | 3.46 KB | urvashi_vora |
| #3 | 3312009-3.patch | 903 bytes | _pratik_ |
| #2 | standard-coding-issue-3312009-2.patch | 2.96 KB | akshay.kelotra |
Issue fork commerce_giftcard_mail-3312009
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3312009-standard-coding-issue
changes, plain diff MR !2
Comments
Comment #2
akshay.kelotra commentedI have fixed this issue and providing patch.
Comment #3
_pratik_Hey @akshay,
Try this for commerce_giftcard_mail.module file.
Comment #4
urvashi_vora commentedHi,
I will review this.
Comment #5
urvashi_vora commentedHi @pratik_specbee,
After applying your patch, still module file contains coding standard issues.
Thus, moving it to needs work. And I am working on it
Comment #6
urvashi_vora commentedHi,
I resolved all issues and warnings, please review this patch.
Thanks
Comment #7
cinarb commentedHi Ill review it
Comment #8
cinarb commentedHi @urvashi_vora , Your patch was applied cleanly. All of the issues are fixed. Ill move this issue to RTBC. =)
Comment #10
avpadernoThose aren't Drupal core modules.
Comment #12
kensae commentedThank you all for contributing, I've applied the patch in the latest dev version.
I also took care of apaderno's comment who states correctly that the dependencies are non-core dependecies.
Comment #13
kensae commentedComment #14
kensae commentedComment #15
avpadernoI meant that these dependencies are wrong, since these aren't Drupal core modules.
Comment #16
kensae commentedI changed this in the 1.x-dev with
- commerce_giftcard:commerce_giftcard
- commerce_email:commerce_email