Fix the issues reported by phpcs

Created on 19 June 2024, 6 months ago
Updated 11 July 2024, 5 months ago
FILE: entity_clone_inline_blocks/tests/src/FunctionalJavascript/InlineBlocksCloneTest.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------
 10 | ERROR | [x] Missing class doc comment
 24 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------


FILE: entity_clone_inline_blocks/entity_clone_inline_blocks.info.yml
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 8 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------


FILE: entity_clone_inline_blocks/drupalci.yml
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
 31 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------


FILE: entity_clone_inline_blocks/entity_clone_inline_blocks.services.yml
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
 8 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------


FILE: entity_clone_inline_blocks/src/EventSubscriber/EntityCloneSubscriber.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\entity_clone\Event\EntityCloneEvent.
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------


FILE: entity_clone_inline_blocks/README.md
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------------
 3 | WARNING | Line exceeds 80 characters; contains 432 characters
 5 | WARNING | Line exceeds 80 characters; contains 130 characters
 8 | WARNING | Line exceeds 80 characters; contains 107 characters
---------------------------------------------------------------------------------------


FILE: entity_clone_inline_blocks/entity_clone_inline_blocks.module
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
-----------------------------------------------------------------------------------------------------------------------------
šŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

šŸ‡®šŸ‡³India dev16.addweb

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @dev16.addweb
  • Merge request !5resolved issues reported by phpcs ā†’ (Open) created by Unnamed author
  • Status changed to Needs review 6 months ago
  • Status changed to RTBC 5 months ago
  • Hi @silvi.addweb,

    Applied the MR!5 successfully and confirmed no phpcs issues remaining

    entity_clone_inline_blocks git:(1.0.0-alpha1) curl https://git.drupalcode.org/project/entity_clone_inline_blocks/-/merge_requests/5.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  5610    0  5610    0     0  12658      0 --:--:-- --:--:-- --:--:-- 12956
    patching file README.md
    patching file drupalci.yml
    patching file entity_clone_inline_blocks.info.yml
    patching file entity_clone_inline_blocks.module
    patching file entity_clone_inline_blocks.services.yml
    patching file src/EventSubscriber/EntityCloneSubscriber.php
    patching file tests/src/FunctionalJavascript/InlineBlocksCloneTest.php
    āžœ  entity_clone_inline_blocks git:(1.0.0-alpha1) āœ— cd ..
    āžœ  contrib git:(master) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig entity_clone_inline_blocks
    āžœ  contrib git:(master) āœ—

    Will now move this to RTBC

    Thanks,
    Jake

Production build 0.71.5 2024