Fix the issues reported by phpcs

Created on 18 January 2023, over 1 year ago
Updated 18 January 2024, 5 months ago

Phpcs issue found in module

Use below command with arguments:-

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/migrate_plus

Fix the phpcs issue found by above command
FILE: /var/www/web/modules/contrib/migrate_plus/migrate_plus.install
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.
-------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/tests/src/Unit/process/StrReplaceTest.php
-----------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/tests/src/Unit/process/GateTest.php
---------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
---------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
46 | ERROR | [ ] Description for the @return value is missing
167 | ERROR | [ ] Description for the @return value is missing
205 | ERROR | [x] Expected 1 blank line after function; 0 found
206 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/tests/src/Unit/process/DomRemoveTest.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------
82 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over multiple lines
87 | ERROR | The array declaration extends to column 98 (the limit is 80). The array content should be split up over multiple lines
92 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over multiple lines
97 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/tests/src/Unit/process/SkipOnValueTest.php
------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/tests/src/Unit/data_fetcher/FileTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------
95 | ERROR | The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple lines
129 | ERROR | The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
164 | ERROR | The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/tests/src/Kernel/Plugin/migrate/process/EntityGenerateTest.php
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
154 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/tests/src/Kernel/Plugin/migrate_plus/data_fetcher/HttpTest.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
13 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/DataParserPluginBase.php
----------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------
218 | WARNING | Unused variable $item.
----------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Entity/MigrationGroup.php
-----------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------
89 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
90 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
91 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/EntityValue.php
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
118 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/DomSelect.php
----------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/DomRemove.php
----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------
94 | ERROR | [x] Case breaking statements must be followed by a single blank line
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/DomStrReplace.php
--------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------------------
87 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
202 | ERROR | [x] Case breaking statements must be followed by a single blank line
274 | ERROR | [x] Case breaking statements must be followed by a single blank line
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/EntityLookup.php
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
205 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/DefaultEntityValue.php
-------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
12 | WARNING | Line exceeds 80 characters; contains 81 characters
-------------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/StrReplace.php
-----------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/Gate.php
-----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/DomMigrationLookup.php
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
121 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/SkipOnValue.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
120 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/source/Table.php
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
127 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/source/SourcePluginExtension.php
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
48 | ERROR | [x] Use null coalesce operator instead of ternary operator.
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate/destination/Table.php
----------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------
143 | ERROR | [x] Use null coalesce operator instead of ternary operator.
144 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------

FILE: /var/www/web/modules/contrib/migrate_plus/src/Plugin/migrate_plus/data_parser/Xml.php
-------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
122 | WARNING | Unused variable $field_name.
-------------------------------------------------------------------------------------------

Time: 2.66 secs; Memory: 16MB

📌 Task
Status

Needs review

Version

6.0

Component

Miscellaneous

Created by

🇲🇩Moldova Sergiu Stici

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

Not all content is available!

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

  • Status changed to Needs review over 1 year ago
  • Assigned to sourabhjain
  • Issue was unassigned.
  • Status changed to Needs work over 1 year ago
  • heddn Nicaragua

    Fixes to PHPCS are great. But automated fixes aren't. Please review the output from phpcbf and fix any obvious issues. Also, the default branch here is 6.x now. So switching branches.

  • First commit to issue fork.
  • Assigned to vishaljd
  • 🇮🇳India Akram Khan Cuttack, Odisha

    Added updated patch against 6.0.x and address #5

  • Status changed to Needs review over 1 year ago
  • Merge request !72fix coding standard → (Open) created by vishaljd
  • Issue was unassigned.
  • Status changed to Needs work about 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, show which command has been used, which arguments have been used, and which report that command shown.

  • Status changed to Needs review 12 months ago
  • Status changed to Needs work 6 months ago
  • 🇵🇭Philippines paraderojether

    Hi vishaljd,

    I reviewed MR!72, applied against Migrate Plus 6.0.x-dev with Drupal core version 10.1.7 and there are still phpcs errors and warnings shown below:

    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/migrate_example/migrate_example_setup/migrate_example_setup.install
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
     1 | ERROR | [x] Missing file doc comment
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/migrate_json_example/migrate_json_example.install
    --------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------
     1 | ERROR | [x] Missing file doc comment
    --------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/migrate_plus.module
    --------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------
     1 | ERROR | [x] Missing file doc comment
    --------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/tests/src/Unit/data_fetcher/HttpTest.php
    -------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\migrate_plus\AuthenticationPluginInterface.
    -------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/tests/src/Unit/data_fetcher/FileTest.php
    -----------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\migrate\MigrateException.
    -----------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/tests/src/Unit/process/StrReplaceTest.php
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 14 ERRORS AFFECTING 14 LINES
    ------------------------------------------------------------------------------------------------------------------------------------
     32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
     33 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     34 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
     47 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     48 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     58 | ERROR | [x] Expected 1 blank line after function; 2 found
     61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
     62 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     63 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     73 | ERROR | [x] Expected 1 blank line after function; 2 found
     76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
     77 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
     78 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
    ------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/tests/src/Kernel/Plugin/migrate/process/EntityValueTest.php
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------------------------
     13 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\language\Entity\ConfigurableLanguage.
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/README.md
    ----------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 19 WARNINGS AFFECTING 19 LINES
    ----------------------------------------------------------------------------------------------------
      33 | WARNING | Line exceeds 80 characters; contains 123 characters
      39 | WARNING | Line exceeds 80 characters; contains 147 characters
      44 | WARNING | Line exceeds 80 characters; contains 154 characters
      45 | WARNING | Line exceeds 80 characters; contains 129 characters
      46 | WARNING | Line exceeds 80 characters; contains 91 characters
      48 | WARNING | Line exceeds 80 characters; contains 136 characters
      50 | WARNING | Line exceeds 80 characters; contains 153 characters
      61 | WARNING | Line exceeds 80 characters; contains 148 characters
      62 | WARNING | Line exceeds 80 characters; contains 347 characters
      69 | WARNING | Line exceeds 80 characters; contains 108 characters
      71 | WARNING | Line exceeds 80 characters; contains 119 characters
      72 | WARNING | Line exceeds 80 characters; contains 114 characters
      76 | WARNING | Line exceeds 80 characters; contains 102 characters
      78 | WARNING | Line exceeds 80 characters; contains 161 characters
      79 | WARNING | Line exceeds 80 characters; contains 171 characters
      96 | WARNING | Line exceeds 80 characters; contains 176 characters
      97 | WARNING | Line exceeds 80 characters; contains 111 characters
     104 | WARNING | Line exceeds 80 characters; contains 88 characters
     105 | WARNING | Line exceeds 80 characters; contains 90 characters
    ----------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/migrate_example_advanced/migrate_example_advanced.install
    ----------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------------------
     1 | ERROR | [x] Missing file doc comment
    ----------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/migrate_plus.install
    -------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------
     21 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.
    -------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/AuthenticationPluginManager.php
    ---------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
    ---------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/Plugin/migrate_plus/data_fetcher/File.php
    ----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------
     9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\migrate\MigrateException.
    ----------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/Plugin/migrate_plus/data_fetcher/Http.php
    -------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\migrate_plus\AuthenticationPluginInterface.
    -------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/Plugin/migrate/source/Url.php
    ----------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\migrate\Plugin\MigrationInterface.
    ----------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/EntityValue.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\ContentEntityInterface.
    -------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/StrReplace.php
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------------------
     128 | ERROR | [x] Expected 1 space after IF keyword; 0 found
     129 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
    ------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/Transpose.php
    -----------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------
     9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\migrate\ProcessPluginBase.
    -----------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/Plugin/migrate/process/DomApplyStyles.php
    ----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------
     143 | ERROR | [x] Use "elseif" in place of "else if"
    ----------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/DataParserPluginManager.php
    ---------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
    ---------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/jetherparadero/Distributions/drupalorgissues/web/modules/contrib/migrate_plus/src/DataFetcherPluginManager.php
    ---------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
    ---------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------------------
    
    Time: 2.23 secs; Memory: 16MB

    Kindly check and advise, please.
    Thank you.

  • Assigned to Anita verma
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 8
    last update 6 months ago
    189 pass, 2 fail
  • Issue was unassigned.
  • Status changed to Needs review 6 months ago
  • 🇮🇳India Anita verma

    I fixed all errors and warnings, Kindly review,
    Thanks.

  • Status changed to Needs work 6 months ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • First commit to issue fork.
  • Status changed to Needs review 5 months ago
Production build 0.69.0 2024