Problem/Motivation

FILE: ~/projects/drupal-d10/modules/contrib/m4032404/src/Form/M4032404Form.php
---------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------
 12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
 28 | ERROR   | [x] Short array syntax must be used to define arrays
 35 | ERROR   | [x] Short array syntax must be used to define arrays
---------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------


FILE: ~/projects/drupal-d10/modules/contrib/m4032404/src/EventSubscriber/M4032404EventSubscriber.php
-----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------
 80 | ERROR | [x] Short array syntax must be used to define arrays
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------

Time: 105ms; Memory: 10MB

Steps to reproduce

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml m4032404 

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork m4032404-3350559

Command icon 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:

Comments

Rassoni created an issue. See original summary.

rassoni’s picture

Status: Active » Needs review

Fixed Coding standard and created MR. Please review.

rassoni’s picture

Assigned: rassoni » Unassigned
avpaderno’s picture

Status: Needs review » Needs work
 /**
- * Class M4032404Form.
+ * Defines the m4032404 form.
  *
  * @package Drupal\m4032404\Form
  */

The description should be improved, since it is not clear what the m4032404 form should be.

rassoni’s picture

Status: Needs work » Needs review

Thanks @apaderno, Addressed #5 feedback. Please review

a.aaronjake’s picture

Status: Needs review » Needs work

Hi @Rassoni,

The changes you made on MR!2 can be applied successfully, but there are still errors reported. Please see below:

➜  contrib git:(master) ✗ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig m4032404

FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/m4032404/tests/src/Unit/EventSubscriber/M4032404EventSubscriberTest.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\m4032404\EventSubscriber\M4032404EventSubscriber.
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/m4032404/tests/src/Functional/M4032404TestCaseTest.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
 18 | ERROR | [x] Whitespace found at end of line
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------

FILE: /Users/PrometInterns/Demo-site/drupal-orgissue-v9/web/modules/contrib/m4032404/src/EventSubscriber/M4032404EventSubscriber.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface.
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

Time: 182ms; Memory: 10MB

Please check

Thanks,
Jake

avpaderno’s picture

avpaderno’s picture

Version: 8.x-1.0-alpha5 » 8.x-1.x-dev
Assigned: avpaderno » Unassigned
Status: Needs work » Needs review
jeroent’s picture

Status: Needs review » Reviewed & tested by the community

elc made their first commit to this issue’s fork.

  • elc committed e67b85f5 on 8.x-1.x authored by rassoni
    [#3350559] Fix the issues reported by phpcs.
    
elc’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.