Fix the issues reported by phpcs

Created on 10 May 2023, over 1 year ago
Updated 11 July 2024, 5 months ago

Problem/Motivation

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\CheckFor.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
127 | ERROR | [ ] The array declaration extends to column 88 (the limit is 80). The array content should be split up
| | over multiple lines
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Event\MessageEvent.php
------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | WARNING | [x] Unused use statement
8 | ERROR | [x] Missing class doc comment
32 | ERROR | [x] Doc comment short description must end with a full stop
56 | ERROR | [ ] Missing parameter comment
57 | ERROR | [ ] Missing parameter comment
59 | ERROR | [ ] Type hint "array" missing for $variables
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\EventSubscriber\PostRowSave.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 4 WARNINGS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
51 | ERROR | [x] Expected 1 blank line before function; 2 found
69 | ERROR | [x] No space found before comment text; expected "// MTRedirector exists, so save any redirects." but
| | found "//MTRedirector exists, so save any redirects."
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\EventSubscriber\PrepareRow.php
--------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 9 WARNINGS AFFECTING 13 LINES
--------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
15 | WARNING | [x] Unused use statement
16 | WARNING | [x] Unused use statement
17 | WARNING | [x] Unused use statement
47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
48 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
49 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Form\MigrationToolsAdminForm.php
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
11 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Media.php
-----------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Message.php
-------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 5 LINES
-------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
55 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
55 | ERROR | [x] Parameter comment must end with a full stop
57 | ERROR | [x] Data types in @throws tags need to be fully namespaced
96 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
96 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
96 | ERROR | [x] Closing brace indented incorrectly; expected 6 spaces, found 3
183 | WARNING | [ ] Unused variable $key.
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Modifier\DomModifier.php
------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 5 WARNINGS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
23 | ERROR | [ ] Missing member variable doc comment
24 | ERROR | [ ] Missing member variable doc comment
25 | ERROR | [ ] Missing member variable doc comment
269 | WARNING | [ ] Unused variable $key.
306 | WARNING | [ ] Unused variable $key.
447 | WARNING | [ ] Unused variable $sourceUrl.
459 | WARNING | [x] '@TODO work this out to get it from settings or admin.' should match the format '@todo Fix problem
| | X here.'
580 | WARNING | [x] '@TODO flesh this out.' should match the format '@todo Fix problem X here.'
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Modifier\Modifier.php
-----------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
31 | ERROR | [x] Expected 1 blank line after function; 0 found
32 | 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: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Modifier\SourceModifier.php
-----------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | ERROR | [ ] Missing member variable doc comment
10 | ERROR | [ ] Missing member variable doc comment
41 | ERROR | [x] Expected 1 blank line after function; 0 found
42 | 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: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Modifier\SourceModifierHtml.php
---------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
19 | ERROR | [x] Parameter comment must end with a full stop
37 | ERROR | [x] Parameter comment must end with a full stop
39 | ERROR | [x] Parameter comment must end with a full stop
41 | ERROR | [x] Parameter comment must end with a full stop
70 | ERROR | [x] Expected 1 blank line after function; 0 found
71 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\Job.php
------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
11 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [ ] Missing member variable doc comment
47 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait
| | and $this->t() instead
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainArray.php
--------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
3 | ERROR | [x] There must be one blank line after the namespace declaration
7 | ERROR | [x] Doc comment short description must end with a full stop
76 | WARNING | [ ] There must be no blank line following an inline comment
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainBody.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
-------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainCity.php
-------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | ERROR | [x] Doc comment short description must end with a full stop
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainContentType.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
--------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainCountry.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | ERROR | [x] Doc comment short description must end with a full stop
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainDate.php
------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
10 | ERROR | [x] Doc comment short description must end with a full stop
53 | ERROR | [ ] The array declaration extends to column 182 (the limit is 80). The array content should be split up
| | over multiple lines
89 | ERROR | [ ] The array declaration extends to column 141 (the limit is 80). The array content should be split up
| | over multiple lines
126 | ERROR | [ ] The array declaration extends to column 142 (the limit is 80). The array content should be split up
| | over multiple lines
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainDateSpanish.php
----------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
33 | ERROR | [ ] Public method name "ObtainDateSpanish::convertESDateStringToDate" is not in lowerCamel format
----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\Obtainer.api.php
---------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
11 | ERROR | [ ] Class name doesn't match filename; expected "class Obtainer.api"
16 | WARNING | [ ] Possible useless method overriding detected
23 | WARNING | [ ] Possible useless method overriding detected
30 | WARNING | [ ] Possible useless method overriding detected
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\Obtainer.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 3 WARNINGS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | WARNING | [x] Unused use statement
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
122 | WARNING | [ ] Unused variable $key.
132 | WARNING | [x] '@TODO This is needed to give necessary updated info on what finder' should match the format
| | '@todo Fix problem X here.'
138 | ERROR | [ ] The array declaration extends to column 103 (the limit is 80). The array content should be split
| | up over multiple lines
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainHtml.php
------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
229 | WARNING | [ ] Unused variable $key.
327 | ERROR | [ ] Protected method name "ObtainHtml::findSelectorNSeparator" is not in lowerCamel format
778 | ERROR | [ ] Public method name "ObtainHtml::truncateThisWithoutHTML" is not in lowerCamel format
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainID.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
-----------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainImage.php
--------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Doc comment short description must end with a full stop
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainImageFile.php
------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Doc comment short description must end with a full stop
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainLink.php
-------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Doc comment short description must end with a full stop
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainLinkFile.php
-----------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Doc comment short description must end with a full stop
101 | ERROR | [x] Expected 1 blank line after function; 0 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainLocation.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | ERROR | [x] Doc comment short description must end with a full stop
53 | WARNING | [x] '@TODO The most accurate validation would be to pass it to the' should match the format '@todo Fix
| | problem X here.'
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainPlainTextWithNewLines.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 7 WARNINGS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
36 | WARNING | [ ] Possible useless method overriding detected
57 | WARNING | [ ] Possible useless method overriding detected
80 | WARNING | [ ] Possible useless method overriding detected
109 | WARNING | [ ] Possible useless method overriding detected
109 | ERROR | [ ] Protected method name "ObtainPlainTextWithNewLines::findSelectorNSeparator" is not in lowerCamel
| | format
129 | WARNING | [ ] Possible useless method overriding detected
133 | ERROR | [ ] Parameter $selector is not described in comment
149 | WARNING | [ ] Possible useless method overriding detected
168 | WARNING | [ ] Possible useless method overriding detected
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainState.php
--------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | ERROR | [x] Doc comment short description must end with a full stop
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainSubTitle.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
-----------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainTable.php
--------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Doc comment short description must end with a full stop
25 | ERROR | [x] Expected 1 blank line before function; 0 found
74 | ERROR | [x] Expected 1 blank line after function; 0 found
75 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainTitle.php
--------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | ERROR | [x] Doc comment short description must end with a full stop
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Obtainer\ObtainTitleNoCaseChange.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
--------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Operations.php
----------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
12 | ERROR | [x] Missing class doc comment
25 | ERROR | [ ] Type hint "\Drupal\migrate\Row" missing for $row
77 | ERROR | [x] Use null coalesce operator instead of ternary operator.
111 | WARNING | [ ] Exceptions should not be translated
119 | WARNING | [ ] Exceptions should not be translated
134 | WARNING | [ ] Exceptions should not be translated
151 | ERROR | [ ] Type hint "array" missing for $migration_tools_setting
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: ...ackendassignment\web\modules\contrib\migration_tools\src\Plugin\migrate\process\CreateDefaultParagraphRevision.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
------------------------------------------------------------------------------------------------------------------------

FILE: ...:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Plugin\migrate\process\SkipOnNotEmpty.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
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Plugin\migrate\process\SkipOnSubstr.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
-----------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Plugin\migrate\source\UrlList.php
-----------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
83 | ERROR | [ ] Public method name "UrlList::getIDs" is not in lowerCamel format
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Plugin\migrate_plus\data_parser\Dom.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 5 WARNINGS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
67 | WARNING | [ ] Exceptions should not be translated
67 | ERROR | [x] There should be no white space after an opening "["
67 | ERROR | [x] There should be no white space before a closing "]"
74 | WARNING | [ ] Unused variable $key.
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\QpHtml.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 4 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | WARNING | [x] Unused use statement
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
54 | WARNING | [ ] Unused variable $key.
288 | ERROR | [ ] Public method name "QpHtml::removeExtLinkJS" is not in lowerCamel format
345 | WARNING | [x] '@TODO this method needs to be completely reworked or scrapped to use the' should match the format
| | '@todo Fix problem X here.'
452 | WARNING | [ ] Unused variable $key.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Redirects.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 12 WARNINGS AFFECTING 14 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
14 | WARNING | [x] Unused use statement
16 | ERROR | [x] Missing class doc comment
69 | WARNING | [x] '@TODO rework assumption that there is only one migration tools array.' should match the format
| | '@todo Fix problem X here.'
97 | WARNING | [x] '@TODO restore processing for sensing redirects using' should match the format '@todo Fix problem
| | X here.'
409 | WARNING | [x] '@TODO Connect this to a logger.' should match the format '@todo Fix problem X here.'
483 | WARNING | [ ] Unused variable $delta.
557 | WARNING | [x] '@TODO refactor for D8 and use setting from RedirectSettings.' should match the format '@todo Fix
| | problem X here.'
708 | WARNING | [ ] Unused variable $i.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\SourceParser\HtmlBase.php
------------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AND 2 WARNINGS AFFECTING 15 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
19 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [ ] Missing member variable doc comment
21 | ERROR | [ ] Missing member variable doc comment
23 | ERROR | [x] The open comment tag must be the only content on the line
23 | ERROR | [ ] Missing short description in doc comment
23 | ERROR | [x] Do not append variable name "$row" to the type declaration in a member variable comment
25 | ERROR | [ ] Missing member variable doc comment
148 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait
| | and $this->t() instead
148 | ERROR | [ ] The array declaration extends to column 149 (the limit is 80). The array content should be split
| | up over multiple lines
157 | ERROR | [ ] The array declaration extends to column 110 (the limit is 80). The array content should be split
| | up over multiple lines
168 | ERROR | [ ] The array declaration extends to column 128 (the limit is 80). The array content should be split
| | up over multiple lines
172 | ERROR | [ ] The array declaration extends to column 97 (the limit is 80). The array content should be split up
| | over multiple lines
176 | ERROR | [ ] The array declaration extends to column 111 (the limit is 80). The array content should be split
| | up over multiple lines
181 | ERROR | [ ] The array declaration extends to column 157 (the limit is 80). The array content should be split
| | up over multiple lines
253 | ERROR | [ ] The array declaration extends to column 191 (the limit is 80). The array content should be split
| | up over multiple lines
277 | WARNING | [ ] Unused variable $job_key.
292 | ERROR | [ ] Type hint "array" missing for $arguments
292 | ERROR | [ ] Type hint "array" missing for $dynamic_args
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\SourceParser\Node.php
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
20 | WARNING | [ ] Possible useless method overriding detected
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\StringTools.php
------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
63 | WARNING | [x] '@TODO Here would be the spot to run a diff comparing before and after' should match the format
| | '@todo Fix problem X here.'
132 | ERROR | [ ] Public method name "StringTools::convertFatalCharstoASCII" is not in lowerCamel format
484 | ERROR | [ ] Public method name "StringTools::convertNonASCIItoASCII" is not in lowerCamel format
530 | ERROR | [ ] Public method name "StringTools::stripWindowsCRChars" is not in lowerCamel format
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\src\Url.php
------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 17 WARNINGS AFFECTING 23 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
218 | ERROR | [x] Data types in @throws tags need to be fully namespaced
230 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
230 | ERROR | [x] Inline comments must start with a capital letter
231 | ERROR | [ ] Comment indentation error, expected only 1 spaces
233 | WARNING | [ ] Line exceeds 80 characters; contains 108 characters
233 | WARNING | [x] There must be no blank line following an inline comment
233 | WARNING | [ ] There must be no blank line following an inline comment
233 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
235 | ERROR | [x] 3 spaces found before inline comment; expected "// $directories =
| | self::extractPath($this->fileId);" but found "// $directories =
| | self::extractPath($this->fileId);"
238 | WARNING | [ ] Line exceeds 80 characters; contains 120 characters
238 | WARNING | [x] There must be no blank line following an inline comment
238 | WARNING | [ ] There must be no blank line following an inline comment
240 | ERROR | [x] 3 spaces found before inline comment; expected "// // Remove the legacy directory if it is still
| | present." but found "// // Remove the legacy directory if it is still present."
243 | ERROR | [ ] Comment indentation error, expected only 3 spaces
247 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
250 | ERROR | [ ] Comment indentation error, expected only 3 spaces
252 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
253 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
257 | ERROR | [ ] Comment indentation error, expected only 3 spaces
258 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
261 | WARNING | [ ] There must be no blank line following an inline comment
554 | ERROR | [ ] Public method name "Url::reassembleURL" is not in lowerCamel format
701 | WARNING | [ ] Unused variable $response.
734 | ERROR | [ ] Public method name "Url::extractUrlFromJS" is not in lowerCamel format
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\migration_tools\tests\src\Functional\LoadTest.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
-------------------------------------------------------------------------------------------------------------

Time: 19.76 secs; Memory: 14MB

Steps to reproduce

Run the command:

Proposed resolution

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

Remaining tasks

User interface changes

API changes

Data model changes

šŸ“Œ Task
Status

Needs work

Version

2.0

Component

Code

Created by

šŸ‡®šŸ‡³India sidharth_soman Bangalore

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

Comments & Activities

  • Issue created by @sidharth_soman
  • Assigned to sidharth_soman
  • šŸ‡®šŸ‡³India sidharth_soman Bangalore

    I am working on solving this.

  • šŸ‡®šŸ‡³India Ashutosh Ahirwal India

    Hey sidharth_soman ā†’ Are you still working on it?

  • @ashutosh-ahirwal opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • šŸ‡®šŸ‡³India Ashutosh Ahirwal India

    Fixed phpcs issue

    remaining
    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/migration_tools/src/Message.php
    --------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------
    55 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 3
    55 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
    --------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/migration_tools/src/Obtainer/ObtainPlainTextWithNewLines.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    -------------------------------------------------------------------------------------------------------------------------------------
    36 | WARNING | Possible useless method overriding detected
    57 | WARNING | Possible useless method overriding detected
    80 | WARNING | Possible useless method overriding detected
    109 | WARNING | Possible useless method overriding detected
    129 | WARNING | Possible useless method overriding detected
    151 | WARNING | Possible useless method overriding detected
    170 | WARNING | Possible useless method overriding detected
    -------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/migration_tools/src/Obtainer/ObtainerApi.php
    ---------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ---------------------------------------------------------------------------------------------------------------------
    16 | WARNING | Possible useless method overriding detected
    23 | WARNING | Possible useless method overriding detected
    30 | WARNING | Possible useless method overriding detected
    ---------------------------------------------------------------------------------------------------------------------

  • Status changed to Needs work 5 months ago
  • šŸ‡µšŸ‡­Philippines cleavinjosh

    Hi @AshutoshAhirwal,

    I applied MR!6 and it was not applied smoothly. I also found more issues after I ran phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml.

    āžœ  migration_tools git:(fd6ba14) curl https://git.drupalcode.org/project/migration_tools/-/merge_requests/6.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 72029    0 72029    0     0   159k      0 --:--:-- --:--:-- --:--:--  159k
    patching file CHANGELOG.md
    patching file README.md
    Hunk #1 FAILED at 21.
    Hunk #2 succeeded at 68 (offset 6 lines).
    Hunk #3 succeeded at 86 (offset 6 lines).
    Hunk #4 succeeded at 172 (offset 6 lines).
    Hunk #5 succeeded at 237 (offset 6 lines).
    Hunk #6 succeeded at 276 (offset 6 lines).
    Hunk #7 succeeded at 316 (offset 6 lines).
    Hunk #8 succeeded at 353 (offset 6 lines).
    1 out of 8 hunks FAILED -- saving rejects to file README.md.rej
    patching file migration_tools_example/migration/media_pdf_sample_csv.yml
    patching file src/CheckFor.php
    patching file src/Event/MessageEvent.php
    patching file src/EventSubscriber/PostRowSave.php
    patching file src/EventSubscriber/PrepareRow.php
    patching file src/Form/MigrationToolsAdminForm.php
    patching file src/Media.php
    patching file src/Message.php
    patching file src/Modifier/DomModifier.php
    patching file src/Modifier/Modifier.php
    patching file src/Modifier/SourceModifier.php
    patching file src/Modifier/SourceModifierHtml.php
    patching file src/Obtainer/Job.php
    patching file src/Obtainer/ObtainArray.php
    patching file src/Obtainer/ObtainCity.php
    patching file src/Obtainer/ObtainCountry.php
    patching file src/Obtainer/ObtainDate.php
    patching file src/Obtainer/ObtainDateSpanish.php
    patching file src/Obtainer/ObtainHtml.php
    patching file src/Obtainer/ObtainID.php
    patching file src/Obtainer/ObtainImage.php
    patching file src/Obtainer/ObtainImageFile.php
    patching file src/Obtainer/ObtainLink.php
    patching file src/Obtainer/ObtainLinkFile.php
    patching file src/Obtainer/ObtainLocation.php
    patching file src/Obtainer/ObtainPlainTextWithNewLines.php
    patching file src/Obtainer/ObtainState.php
    patching file src/Obtainer/ObtainTable.php
    patching file src/Obtainer/ObtainTitle.php
    patching file src/Obtainer/ObtainTitleNoCaseChange.php
    patching file src/Obtainer/Obtainer.php
    patching file src/Obtainer/Obtainer.api.php
    patching file src/Operations.php
    patching file src/Plugin/migrate/source/UrlList.php
    patching file src/Plugin/migrate_plus/data_parser/Dom.php
    patching file src/QpHtml.php
    patching file src/Redirects.php
    patching file src/SourceParser/HtmlBase.php
    patching file src/SourceParser/Node.php
    patching file src/StringTools.php
    patching file src/Url.php
    āžœ  migration_tools git:(fd6ba14) āœ— ..
    āžœ  contrib git:(main) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml migration_tools
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/migration_tools/README.md
    ----------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
    ----------------------------------------------------------------------------------------------
     30 | WARNING | Line exceeds 80 characters; contains 102 characters
     32 | WARNING | Line exceeds 80 characters; contains 81 characters
     34 | WARNING | Line exceeds 80 characters; contains 83 characters
     55 | WARNING | Line exceeds 80 characters; contains 81 characters
    ----------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/migration_tools/src/SourceParser/HtmlBase.php
    ------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\migrate\Row.
    ------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/migration_tools/src/Message.php
    -----------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------------------
     7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Render\FormattableMarkup.
    -----------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/migration_tools/src/Obtainer/Obtainer.api.php
    ------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
    ------------------------------------------------------------------------------------------------------------------
     11 | ERROR   | Class name doesn't match filename; expected "class Obtainer.api"
     16 | WARNING | Possible useless method overriding detected
     23 | WARNING | Possible useless method overriding detected
     30 | WARNING | Possible useless method overriding detected
    ------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/migration_tools/src/Obtainer/ObtainPlainTextWithNewLines.php
    ---------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    ---------------------------------------------------------------------------------------------------------------------------------
      36 | WARNING | Possible useless method overriding detected
      57 | WARNING | Possible useless method overriding detected
      80 | WARNING | Possible useless method overriding detected
     109 | WARNING | Possible useless method overriding detected
     129 | WARNING | Possible useless method overriding detected
     151 | WARNING | Possible useless method overriding detected
     170 | WARNING | Possible useless method overriding detected
    ---------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/migration_tools/src/Obtainer/ObtainDate.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
     7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\migration_tools\Message.
    ------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------
    
    Time: 2.13 secs; Memory: 18MB
    
    āžœ  contrib git:(main) āœ—

    Please check and advise.
    Thank you.

Production build 0.71.5 2024