Created on 9 June 2022, over 2 years ago
Updated 21 August 2024, 3 months ago

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\iotapay\Block\iota_donate.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
22 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\iotapay\Block\iota_pay.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
22 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\iotapay\iota_pay_donate.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.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 138ms; Memory: 6MB

šŸ“Œ Task
Status

Needs work

Component

Code

Created by

šŸ‡®šŸ‡³India Rakhi Soni

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Hi @himanshu_jhaloya,

    Applied the patch you provided, but apparently, the reported errors were not the only phpcs errors, here are the errors reported by my terminal:

    āžœ  iotapay git:(main) curl https://www.drupal.org/files/issues/2022-08-05/issue-fixed-3284808-2.patch | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  3061  100  3061    0     0  12212      0 --:--:-- --:--:-- --:--:-- 12701
    patching file iota_pay_donate.routing.yml
    patching file src/Plugin/Block/iota_donate.php
    patching file src/Plugin/Block/iota_pay.php
    āžœ  iotapay git:(main) āœ— ..
    āžœ  contrib git:(master) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig iotapay
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/iotapay/iota_pay_donate.routing.yml
    ---------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------
     9 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ---------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/iotapay/iota_pay_donate.info.yml
    ------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------
     5 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/iotapay/iota_pay_donate.links.menu.yml
    ------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------
     6 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/iotapay/templates/iota-pay.html.twig
    ----------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------
     10 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ----------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/iotapay/iota_pay_donate.module
    ----------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    ----------------------------------------------------------------------------------------------------------
      1 | ERROR | [x] Missing file doc comment
     19 | ERROR | [x] Expected 1 newline at end of file; 4 found
     22 | ERROR | [ ] More than 2 empty lines are not allowed
    ----------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/iotapay/src/Form/ConfigForm.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 77 ERRORS AFFECTING 66 LINES
    -----------------------------------------------------------------------------------------------------------
      1 | ERROR | [x] Whitespace found at end of line
      2 | ERROR | [x] Whitespace found at end of line
      3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
      3 | ERROR | [x] Whitespace found at end of line
      4 | ERROR | [x] Whitespace found at end of line
      5 | ERROR | [x] Whitespace found at end of line
      6 | ERROR | [x] Whitespace found at end of line
      7 | ERROR | [x] Whitespace found at end of line
      8 | ERROR | [x] Whitespace found at end of line
      9 | ERROR | [x] Whitespace found at end of line
     10 | ERROR | [x] Whitespace found at end of line
     11 | ERROR | [x] Whitespace found at end of line
     12 | ERROR | [x] Whitespace found at end of line
     13 | ERROR | [x] Missing class doc comment
     13 | ERROR | [x] Whitespace found at end of line
     14 | ERROR | [x] Whitespace found at end of line
     15 | ERROR | [x] Whitespace found at end of line
     16 | ERROR | [x] Whitespace found at end of line
     17 | ERROR | [x] Expected 1 blank line before function; 0 found
     17 | ERROR | [x] Whitespace found at end of line
     18 | ERROR | [x] Whitespace found at end of line
     19 | ERROR | [x] Whitespace found at end of line
     20 | ERROR | [x] Whitespace found at end of line
     21 | ERROR | [x] Whitespace found at end of line
     22 | ERROR | [x] Whitespace found at end of line
     23 | ERROR | [x] Whitespace found at end of line
     24 | ERROR | [x] Whitespace found at end of line
     25 | ERROR | [x] Whitespace found at end of line
     26 | ERROR | [x] Whitespace found at end of line
     27 | ERROR | [x] Whitespace found at end of line
     28 | ERROR | [x] Whitespace found at end of line
     30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
     30 | ERROR | [x] Whitespace found at end of line
     31 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     31 | ERROR | [x] Whitespace found at end of line
     32 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     32 | ERROR | [x] Whitespace found at end of line
     33 | ERROR | [x] Whitespace found at end of line
     34 | ERROR | [x] Whitespace found at end of line
     35 | ERROR | [x] Whitespace found at end of line
     36 | ERROR | [x] Whitespace found at end of line
     37 | ERROR | [x] Whitespace found at end of line
     38 | ERROR | [x] Whitespace found at end of line
     39 | ERROR | [x] Whitespace found at end of line
     40 | ERROR | [x] Whitespace found at end of line
     41 | ERROR | [x] Whitespace found at end of line
     43 | ERROR | [x] Whitespace found at end of line
     44 | ERROR | [x] Whitespace found at end of line
     46 | ERROR | [x] Whitespace found at end of line
     47 | ERROR | [x] Whitespace found at end of line
     48 | ERROR | [x] Whitespace found at end of line
     49 | ERROR | [x] Whitespace found at end of line
     51 | ERROR | [x] Whitespace found at end of line
     52 | ERROR | [x] Whitespace found at end of line
     53 | ERROR | [x] Whitespace found at end of line
     54 | ERROR | [x] Whitespace found at end of line
     56 | ERROR | [x] Whitespace found at end of line
     57 | ERROR | [x] Whitespace found at end of line
     58 | ERROR | [x] Whitespace found at end of line
     59 | ERROR | [x] Whitespace found at end of line
     61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
     61 | ERROR | [x] Whitespace found at end of line
     62 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found
     62 | ERROR | [x] Whitespace found at end of line
     63 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found
     63 | ERROR | [x] Whitespace found at end of line
     64 | ERROR | [x] Whitespace found at end of line
     65 | ERROR | [x] Whitespace found at end of line
     66 | ERROR | [x] Whitespace found at end of line
     67 | ERROR | [x] Whitespace found at end of line
     68 | ERROR | [x] Whitespace found at end of line
     71 | ERROR | [x] Whitespace found at end of line
     72 | ERROR | [x] Whitespace found at end of line
     73 | ERROR | [x] Whitespace found at end of line
     75 | ERROR | [ ] Closing class brace must be on a line by itself
     75 | ERROR | [x] Expected 1 newline at end of file; 0 found
     75 | ERROR | [x] Whitespace found at end of line
    -----------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 76 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/iotapay/src/Plugin/Block/iota_donate.php
    --------------------------------------------------------------------------------------------------------------------
    FOUND 15 ERRORS AFFECTING 14 LINES
    --------------------------------------------------------------------------------------------------------------------
     17 | ERROR | [ ] Class name must begin with a capital letter
     17 | ERROR | [ ] Class name must use UpperCamel naming without underscores
     20 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found
     21 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found
     22 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found
     23 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found
     27 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found
     28 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found
     29 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found
     30 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found
     31 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found
     41 | ERROR | [x] Whitespace found at end of line
     45 | ERROR | [x] Whitespace found at end of line
     51 | ERROR | [x] Whitespace found at end of line
     53 | ERROR | [x] Expected 1 newline at end of file; 0 found
    --------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/iotapay/src/Plugin/Block/iota_pay.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 13 ERRORS AFFECTING 11 LINES
    -----------------------------------------------------------------------------------------------------------------
     17 | ERROR | [ ] Class name must begin with a capital letter
     17 | ERROR | [ ] Class name must use UpperCamel naming without underscores
     26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
     27 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     28 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     29 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     30 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     31 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     44 | ERROR | [x] Whitespace found at end of line
     47 | ERROR | [x] Whitespace found at end of line
     50 | ERROR | [x] Expected 1 blank line after function; 0 found
     50 | ERROR | [x] Whitespace found at end of line
     51 | ERROR | [x] The closing brace for the class must have an empty line before it
    -----------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------
    
    Time: 146ms; Memory: 10MB

    Kindly check

    Thanks,
    Jake

Production build 0.71.5 2024