Fix the issues reported by phpcs

Created on 10 April 2023, about 1 year ago
Updated 29 May 2024, 28 days ago

Problem/Motivation

C:\xampp\htdocs\backendassignment\web\modules\contrib>phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig sfc-3353263

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\CONTRIBUTING.md
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------
51 | WARNING | Line exceeds 80 characters; contains 87 characters
---------------------------------------------------------------------------------------

FILE: ...tdocs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\src\Ajax\RefreshComponentAssetsCommand.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
54 | ERROR | [x] list(...) is forbidden, use [...] instead.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: ...htdocs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\src\Controller\ComponentDevController.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"
57 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
85 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: ...:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\src\Form\ComponentPreviewForm.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: ...kendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\src\Plugin\SingleFileComponent\ComponentLibrary.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: ...ckendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\src\Plugin\SingleFileComponent\ComponentPicker.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: ...kendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\src\Plugin\SingleFileComponent\ComponentPreview.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: ...endassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\src\Plugin\SingleFileComponent\ComponentTemplate.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: ...assignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\tests\src\FunctionalJavascript\ComponentLibraryTest.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: ...\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\tests\src\Kernel\ComponentDevControllerTest.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: ...cs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\tests\src\Kernel\ComponentPreviewFormTest.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: ...htdocs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\tests\src\Kernel\ComponentPreviewTest.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: ...tdocs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\tests\src\Kernel\ComponentTemplateTest.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: ...endassignment\web\modules\contrib\sfc-3353263\modules\sfc_dev\tests\src\Unit\RefreshComponentAssetsCommandTest.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: ...endassignment\web\modules\contrib\sfc-3353263\modules\sfc_example\components\local_assets\example_local_assets.css
------------------------------------------------------------------------------------------------------------------------
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\sfc-3353263\modules\sfc_example\css\dist\tailwind.css
-----------------------------------------------------------------------------------------------------------------
FOUND 40 ERRORS AFFECTING 40 LINES
-----------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
89 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
482 | ERROR | [x] Multiple selectors should each be on a single line
486 | ERROR | [x] Multiple selectors should each be on a single line
490 | ERROR | [x] Multiple selectors should each be on a single line
494 | ERROR | [x] Multiple selectors should each be on a single line
664 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
669 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
676 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
681 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
688 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
692 | ERROR | [x] Multiple selectors should each be on a single line
694 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
702 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
706 | ERROR | [x] Multiple selectors should each be on a single line
708 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
714 | ERROR | [x] Multiple selectors should each be on a single line
724 | ERROR | [x] Multiple selectors should each be on a single line
734 | ERROR | [x] Multiple selectors should each be on a single line
736 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
738 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
743 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
745 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
750 | ERROR | [x] Multiple selectors should each be on a single line
752 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
754 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
759 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
761 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
775 | ERROR | [x] Blank lines are not allowed in class definitions
781 | ERROR | [x] Blank lines are not allowed in class definitions
787 | ERROR | [x] Blank lines are not allowed in class definitions
805 | ERROR | [x] Blank lines are not allowed in class definitions
811 | ERROR | [x] Blank lines are not allowed in class definitions
817 | ERROR | [x] Blank lines are not allowed in class definitions
835 | ERROR | [x] Blank lines are not allowed in class definitions
841 | ERROR | [x] Blank lines are not allowed in class definitions
847 | ERROR | [x] Blank lines are not allowed in class definitions
865 | ERROR | [x] Blank lines are not allowed in class definitions
871 | ERROR | [x] Blank lines are not allowed in class definitions
877 | ERROR | [x] Blank lines are not allowed in class definitions
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 40 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_example\css\example_library.css
-------------------------------------------------------------------------------------------------------------------
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\sfc-3353263\modules\sfc_example\css\tailwind.css
------------------------------------------------------------------------------------------------------------
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\sfc-3353263\modules\sfc_example\sfc_example.module
--------------------------------------------------------------------------------------------------------------
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\sfc-3353263\modules\sfc_example\sfc_example.routing.yml
-------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
-------------------------------------------------------------------------------------------------------------------
7 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
14 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
21 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
27 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
35 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
42 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
49 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
56 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
-------------------------------------------------------------------------------------------------------------------

FILE: ...\htdocs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_example\src\Controller\ExampleController.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: ...kendassignment\web\modules\contrib\sfc-3353263\modules\sfc_example\src\Plugin\SingleFileComponent\ExampleClass.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: ...endassignment\web\modules\contrib\sfc-3353263\modules\sfc_example\tests\src\FunctionalJavascript\ExampleJsTest.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: ...htdocs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_example\tests\src\Kernel\ExampleClassTest.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: ...kendassignment\web\modules\contrib\sfc-3353263\modules\sfc_example\tests\src\Nightwatch\ExampleNightwatchSetup.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: ...docs\backendassignment\web\modules\contrib\sfc-3353263\modules\sfc_example\tests\src\Unit\ExampleClassUnitTest.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\sfc-3353263\README.md
-----------------------------------------------------------------------------------------------------------
FOUND 348 ERRORS AND 4 WARNINGS AFFECTING 128 LINES
-----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
51 | ERROR | [x] Closing brace must be on a line by itself
52 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
52 | ERROR | [x] Comments may not appear after statements
53 | ERROR | [x] Comments may not appear after statements
54 | ERROR | [x] Comments may not appear after statements
55 | ERROR | [x] Comments may not appear after statements
57 | ERROR | [x] Closing brace must be on a line by itself
58 | ERROR | [x] Closing brace must be on a line by itself
59 | ERROR | [x] Closing brace must be on a line by itself
61 | ERROR | [x] Closing brace must be on a line by itself
67 | ERROR | [x] Expected 1 space before "-"; 0 found
67 | ERROR | [x] Expected 1 space after "-"; 0 found
67 | ERROR | [x] Concat operator must be surrounded by a single space
67 | ERROR | [x] Concat operator must be surrounded by a single space
72 | ERROR | [x] Expected 1 space before "%"; 0 found
72 | ERROR | [x] Expected 1 space after "%"; 0 found
78 | ERROR | [x] Expected 1 space before "%"; 0 found
78 | ERROR | [x] Expected 1 space after "%"; 0 found
103 | ERROR | [x] Expected 1 space after "<"; 0 found
103 | ERROR | [x] Expected 1 space before "?"; 0 found
103 | ERROR | [x] Expected 1 space after "?"; 0 found
118 | ERROR | [x] Concat operator must be surrounded by a single space
122 | ERROR | [x] Expected 1 space after "<"; 0 found
122 | ERROR | [x] Expected 1 space before "?"; 0 found
122 | ERROR | [x] Expected 1 space after "?"; 0 found
129 | ERROR | [x] Concat operator must be surrounded by a single space
129 | ERROR | [x] Concat operator must be surrounded by a single space
144 | ERROR | [x] Concat operator must be surrounded by a single space
144 | ERROR | [x] Concat operator must be surrounded by a single space
145 | ERROR | [x] Concat operator must be surrounded by a single space
149 | ERROR | [x] Expected 1 space before "/"; 0 found
149 | ERROR | [x] Expected 1 space after "/"; 0 found
151 | ERROR | [x] Concat operator must be surrounded by a single space
157 | ERROR | [x] There should be no white space after an opening "{"
157 | ERROR | [x] There should be no white space before a closing "}"
168 | ERROR | [x] Expected 1 space before "<"; 0 found
168 | ERROR | [x] Expected 1 space after "<"; 0 found
168 | ERROR | [x] Expected 1 space before ">"; 0 found
168 | ERROR | [x] Expected 1 space after ">"; 0 found
169 | ERROR | [x] Expected 1 space before "<"; 0 found
169 | ERROR | [x] Expected 1 space after "<"; 0 found
169 | ERROR | [x] Expected 1 space before "-"; 0 found
169 | ERROR | [x] Expected 1 space after "-"; 0 found
169 | ERROR | [x] Expected 1 space before ">"; 0 found
169 | ERROR | [x] Expected 1 space after ">"; 0 found
170 | ERROR | [x] Expected 1 space before "<"; 0 found
170 | ERROR | [x] Expected 1 space after "<"; 0 found
170 | ERROR | [x] Expected 1 space before "-"; 0 found
170 | ERROR | [x] Expected 1 space after "-"; 0 found
170 | ERROR | [x] Expected 1 space before "="; 0 found
170 | ERROR | [x] Expected 1 space after "="; 0 found
170 | ERROR | [x] Expected 1 space before ">"; 0 found
170 | ERROR | [x] Expected 1 space after ">"; 0 found
173 | ERROR | [x] Expected 1 space before "-"; 0 found
173 | ERROR | [x] Expected 1 space after "-"; 0 found
173 | ERROR | [x] Expected 1 space before "-"; 0 found
173 | ERROR | [x] Expected 1 space after "-"; 0 found
173 | ERROR | [x] Expected 1 space before "="; 0 found
173 | ERROR | [x] Expected 1 space after "="; 0 found
179 | ERROR | [x] Expected 1 space after "<"; 0 found
179 | ERROR | [x] Expected 1 space before ">"; 0 found
180 | ERROR | [x] Expected 1 space after "<"; 0 found
180 | ERROR | [x] Expected 1 space before "-"; 0 found
180 | ERROR | [x] Expected 1 space after "-"; 0 found
180 | ERROR | [x] Expected 1 space before "-"; 0 found
180 | ERROR | [x] Expected 1 space after "-"; 0 found
180 | ERROR | [x] Expected 1 space before "="; 0 found
180 | ERROR | [x] Expected 1 space after "="; 0 found
180 | ERROR | [x] Expected 1 space before ">"; 0 found
180 | ERROR | [x] Expected 1 space after ">"; 0 found
180 | ERROR | [x] Expected 1 space before "<"; 0 found
180 | ERROR | [x] Expected 1 space after "<"; 0 found
180 | ERROR | [x] Expected 1 space before "/"; 0 found
180 | ERROR | [x] Expected 1 space after "/"; 0 found
180 | ERROR | [x] Expected 1 space before ">"; 0 found
181 | ERROR | [x] Expected 1 space after "<"; 0 found
181 | ERROR | [x] Expected 1 space before "/"; 0 found
181 | ERROR | [x] Expected 1 space after "/"; 0 found
181 | ERROR | [x] Expected 1 space before ">"; 0 found
183 | ERROR | [x] Expected 1 space after "<"; 0 found
183 | ERROR | [x] Expected 1 space before "-"; 0 found
183 | ERROR | [x] Expected 1 space after "-"; 0 found
183 | ERROR | [x] Expected 1 space before "="; 0 found
183 | ERROR | [x] Expected 1 space after "="; 0 found
183 | ERROR | [x] Expected 1 space before ">"; 0 found
185 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
185 | ERROR | [x] Concat operator must be surrounded by a single space
186 | ERROR | [x] Concat operator must be surrounded by a single space
186 | ERROR | [x] A unary operator statement must not be followed by a space
187 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
188 | ERROR | [x] Expected 1 space after "<"; 0 found
188 | ERROR | [x] Expected 1 space before "/"; 0 found
188 | ERROR | [x] Expected 1 space after "/"; 0 found
188 | ERROR | [x] Expected 1 space before ">"; 0 found
194 | ERROR | [x] Space before opening parenthesis of function call prohibited
196 | ERROR | [x] Concat operator must be surrounded by a single space
196 | ERROR | [x] Concat operator must be surrounded by a single space
197 | ERROR | [x] Missing function doc comment
197 | ERROR | [x] Expected 1 blank line before function; 0 found
198 | ERROR | [x] Concat operator must be surrounded by a single space
198 | ERROR | [x] Concat operator must be surrounded by a single space
199 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 0
200 | ERROR | [x] Line indented incorrectly; expected at least 8 spaces, found 0
200 | ERROR | [x] Concat operator must be surrounded by a single space
201 | ERROR | [x] Line indented incorrectly; expected at least 10 spaces, found 2
201 | ERROR | [x] Concat operator must be surrounded by a single space
201 | ERROR | [x] A unary operator statement must not be followed by a space
202 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 0
204 | ERROR | [x] Expected 1 blank line after function; 0 found
205 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found 2
209 | ERROR | [x] Expected 1 space before "-"; 0 found
209 | ERROR | [x] Expected 1 space after "-"; 0 found
209 | ERROR | [x] Expected 1 space before "-"; 0 found
209 | ERROR | [x] Expected 1 space after "-"; 0 found
209 | ERROR | [x] Expected 1 space before "="; 0 found
209 | ERROR | [x] Expected 1 space after "="; 0 found
210 | ERROR | [x] There should be no white space after an opening "{"
210 | ERROR | [x] There should be no white space before a closing "}"
211 | ERROR | [x] Expected 1 space before "-"; 0 found
211 | ERROR | [x] Expected 1 space after "-"; 0 found
211 | ERROR | [x] Expected 1 space before "-"; 0 found
211 | ERROR | [x] Expected 1 space after "-"; 0 found
211 | ERROR | [x] Expected 1 space before "-"; 0 found
211 | ERROR | [x] Expected 1 space after "-"; 0 found
221 | ERROR | [x] Expected 1 space after "<"; 0 found
221 | ERROR | [x] Expected 1 space before ">"; 0 found
222 | ERROR | [x] Expected 1 space after "<"; 0 found
222 | ERROR | [x] Expected 1 space before "-"; 0 found
222 | ERROR | [x] Expected 1 space after "-"; 0 found
222 | ERROR | [x] Expected 1 space before "-"; 0 found
222 | ERROR | [x] Expected 1 space after "-"; 0 found
222 | ERROR | [x] Expected 1 space before "="; 0 found
222 | ERROR | [x] Expected 1 space after "="; 0 found
222 | ERROR | [x] Expected 1 space before ">"; 0 found
222 | ERROR | [x] Expected 1 space after ">"; 0 found
222 | ERROR | [x] Expected 1 space before "<"; 0 found
222 | ERROR | [x] Expected 1 space after "<"; 0 found
222 | ERROR | [x] Expected 1 space before "/"; 0 found
222 | ERROR | [x] Expected 1 space after "/"; 0 found
222 | ERROR | [x] Expected 1 space before ">"; 0 found
223 | ERROR | [x] Expected 1 space after "<"; 0 found
223 | ERROR | [x] Expected 1 space before "/"; 0 found
223 | ERROR | [x] Expected 1 space after "/"; 0 found
223 | ERROR | [x] Expected 1 space before ">"; 0 found
225 | ERROR | [x] Expected 1 space after "<"; 0 found
225 | ERROR | [x] Expected 1 space before "-"; 0 found
225 | ERROR | [x] Expected 1 space after "-"; 0 found
225 | ERROR | [x] Expected 1 space before "="; 0 found
225 | ERROR | [x] Expected 1 space after "="; 0 found
225 | ERROR | [x] Expected 1 space before "-"; 0 found
225 | ERROR | [x] Expected 1 space after "-"; 0 found
225 | ERROR | [x] Expected 1 space before ">"; 0 found
227 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
227 | ERROR | [x] Concat operator must be surrounded by a single space
228 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
228 | ERROR | [x] Concat operator must be surrounded by a single space
228 | ERROR | [x] A unary operator statement must not be followed by a space
229 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
230 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
230 | ERROR | [x] Expected 1 space after "<"; 0 found
230 | ERROR | [x] Expected 1 space before "/"; 0 found
230 | ERROR | [x] Expected 1 space after "/"; 0 found
230 | ERROR | [x] Expected 1 space before ">"; 0 found
231 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
233 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
235 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
236 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
238 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
239 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
240 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
242 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
242 | ERROR | [x] Expected 1 space before "*"; 0 found
242 | ERROR | [x] Expected 1 space after "*"; 0 found
242 | ERROR | [x] Concat operator must be surrounded by a single space
243 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
243 | ERROR | [x] Concat operator must be surrounded by a single space
244 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
245 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
245 | ERROR | [x] Expected 1 space before "<"; 0 found
245 | ERROR | [x] Expected 1 space after "<"; 0 found
245 | ERROR | [x] Expected 1 space before "="; 0 found
245 | ERROR | [x] Expected 1 space after "="; 0 found
245 | WARNING | [ ] Possible parse error: class missing opening or closing brace
245 | ERROR | [x] Missing class doc comment
245 | ERROR | [ ] Class name must begin with a capital letter
245 | ERROR | [x] Expected 1 space before "="; 0 found
245 | ERROR | [x] Expected 1 space after "="; 0 found
245 | ERROR | [x] Expected 1 space before ">"; 0 found
245 | ERROR | [x] Expected 1 space after ">"; 0 found
246 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
248 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
249 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
251 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
251 | WARNING | [ ] Class name must be prefixed with the project name "Sfc"
252 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
252 | ERROR | [x] Expected 1 space after "<"; 0 found
252 | ERROR | [x] Expected 1 space before ">"; 0 found
253 | ERROR | [x] Expected 1 space after "<"; 0 found
253 | ERROR | [x] Expected 1 space before "="; 0 found
253 | ERROR | [x] Expected 1 space after "="; 0 found
253 | ERROR | [x] Expected 1 space before "="; 0 found
253 | ERROR | [x] Expected 1 space after "="; 0 found
253 | ERROR | [x] Expected 1 space before "="; 0 found
253 | ERROR | [x] Expected 1 space after "="; 0 found
253 | ERROR | [x] Expected 1 space before ">"; 0 found
254 | ERROR | [x] Expected 1 space after "<"; 0 found
254 | ERROR | [x] Expected 1 space after FOR keyword; 0 found
254 | ERROR | [x] Expected 1 space before "="; 0 found
254 | ERROR | [x] Expected 1 space after "="; 0 found
254 | ERROR | [x] Expected 1 space before ">"; 0 found
254 | ERROR | [x] Expected 1 space after ">"; 0 found
254 | ERROR | [x] Expected 1 space before "<"; 0 found
254 | ERROR | [x] Expected 1 space after "<"; 0 found
254 | ERROR | [x] Expected 1 space before "/"; 0 found
254 | ERROR | [x] Expected 1 space after "/"; 0 found
254 | ERROR | [x] Expected 1 space before ">"; 0 found
255 | ERROR | [x] Expected 1 space after "<"; 0 found
255 | ERROR | [x] Expected 1 space before "="; 0 found
255 | ERROR | [x] Expected 1 space after "="; 0 found
255 | ERROR | [x] Expected 1 space before "="; 0 found
255 | ERROR | [x] Expected 1 space after "="; 0 found
255 | ERROR | [x] Expected 1 space before "="; 0 found
255 | ERROR | [x] Expected 1 space after "="; 0 found
255 | ERROR | [x] Expected 1 space after "/"; 0 found
255 | ERROR | [x] Expected 1 space before ">"; 0 found
256 | ERROR | [x] Expected 1 space after "<"; 0 found
256 | ERROR | [x] Expected 1 space before "="; 0 found
256 | ERROR | [x] Expected 1 space after "="; 0 found
256 | ERROR | [x] Expected 1 space before "="; 0 found
256 | ERROR | [x] Expected 1 space after "="; 0 found
256 | ERROR | [x] Expected 1 space after "/"; 0 found
256 | ERROR | [x] Expected 1 space before ">"; 0 found
257 | ERROR | [x] Expected 1 space after "<"; 0 found
257 | ERROR | [x] Expected 1 space before "/"; 0 found
257 | ERROR | [x] Expected 1 space after "/"; 0 found
257 | ERROR | [x] Expected 1 space before ">"; 0 found
258 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
258 | ERROR | [x] Expected 1 space after "<"; 0 found
258 | ERROR | [x] Expected 1 space before "/"; 0 found
258 | ERROR | [x] Expected 1 space after "/"; 0 found
258 | ERROR | [x] Expected 1 space before ">"; 0 found
260 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
260 | ERROR | [x] Expected 1 space after "<"; 0 found
260 | ERROR | [x] Expected 1 space before "?"; 0 found
260 | ERROR | [x] Expected 1 space after "?"; 0 found
262 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
262 | ERROR | [ ] USE declarations must go after the namespace declaration
264 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
265 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
268 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
291 | ERROR | [x] There should be no white space after an opening "{"
291 | ERROR | [x] There should be no white space before a closing "}"
295 | ERROR | [ ] USE declarations must go after the namespace declaration
296 | ERROR | [ ] USE declarations must go after the namespace declaration
300 | WARNING | [ ] Unused variable $selector.
311 | ERROR | [x] Expected 1 space before "*"; 0 found
311 | ERROR | [x] Expected 1 space after "*"; 0 found
311 | ERROR | [x] Concat operator must be surrounded by a single space
319 | ERROR | [ ] USE declarations must go after the namespace declaration
328 | ERROR | [x] Concat operator must be surrounded by a single space
329 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
344 | ERROR | [x] There should be no white space after an opening "{"
344 | ERROR | [x] Concat operator must be surrounded by a single space
344 | ERROR | [x] There should be no white space before a closing "}"
345 | ERROR | [x] There should be no white space after an opening "{"
345 | ERROR | [x] There should be no white space before a closing "}"
351 | ERROR | [x] Expected 1 space before "%"; 0 found
351 | ERROR | [x] Inline control structures are not allowed
351 | ERROR | [x] Expected 1 space after "%"; 0 found
352 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
353 | ERROR | [x] Expected 1 space before "%"; 0 found
353 | ERROR | [x] Expected 1 space after "%"; 0 found
354 | ERROR | [x] There should be no white space after an opening "{"
354 | ERROR | [x] There should be no white space before a closing "}"
355 | ERROR | [x] There should be no white space after an opening "{"
355 | ERROR | [x] There should be no white space before a closing "}"
368 | ERROR | [x] Missing function doc comment
368 | ERROR | [ ] Invalid function name, expected prepare_context but found prepareContext
368 | ERROR | [x] Expected 1 blank line before function; 0 found
370 | ERROR | [x] Expected 1 blank line after function; 0 found
374 | ERROR | [x] Expected 1 space before "&" operator; 0 found
374 | ERROR | [x] Expected 1 space after "&" operator; 0 found
388 | ERROR | [x] Expected 1 space after "<"; 0 found
388 | ERROR | [x] Expected 1 space before ">"; 0 found
389 | ERROR | [x] A unary operator statement must not be followed by a space
390 | ERROR | [x] Expected 1 space after "<"; 0 found
390 | ERROR | [x] Expected 1 space before "/"; 0 found
390 | ERROR | [x] Expected 1 space after "/"; 0 found
390 | ERROR | [x] Expected 1 space before ">"; 0 found
392 | ERROR | [x] Expected 1 space after "<"; 0 found
392 | ERROR | [x] Expected 1 space before "?"; 0 found
392 | ERROR | [x] Expected 1 space after "?"; 0 found
411 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
416 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
431 | ERROR | [x] Expected 1 space before "/"; 0 found
431 | ERROR | [x] Expected 1 space after "/"; 0 found
432 | ERROR | [x] Expected 1 space before "-"; 0 found
432 | ERROR | [x] Expected 1 space after "-"; 0 found
432 | ERROR | [x] Concat operator must be surrounded by a single space
432 | ERROR | [x] Concat operator must be surrounded by a single space
439 | ERROR | [x] There should be no white space after an opening "{"
439 | ERROR | [x] There should be no white space before a closing "}"
440 | ERROR | [x] There should be no white space after an opening "{"
440 | ERROR | [x] There should be no white space before a closing "}"
447 | ERROR | [x] Expected 1 space before "-"; 0 found
447 | ERROR | [x] Expected 1 space after "-"; 0 found
447 | ERROR | [x] Concat operator must be surrounded by a single space
447 | ERROR | [x] Concat operator must be surrounded by a single space
448 | ERROR | [x] Concat operator must be surrounded by a single space
448 | ERROR | [x] Concat operator must be surrounded by a single space
452 | ERROR | [x] Expected 1 space before "-"; 0 found
452 | ERROR | [x] Expected 1 space after "-"; 0 found
452 | ERROR | [x] Concat operator must be surrounded by a single space
452 | ERROR | [x] Concat operator must be surrounded by a single space
454 | ERROR | [x] Expected 1 space before "/"; 0 found
454 | ERROR | [x] Expected 1 space after "/"; 0 found
454 | ERROR | [x] Concat operator must be surrounded by a single space
472 | ERROR | [x] Expected 1 space after "<"; 0 found
472 | ERROR | [x] Expected 1 space before "?"; 0 found
472 | ERROR | [x] Expected 1 space after "?"; 0 found
474 | ERROR | [x] Missing function doc comment
476 | ERROR | [x] Expected 1 blank line after function; 0 found
482 | ERROR | [x] Expected 1 space before "/"; 0 found
482 | ERROR | [x] Expected 1 space after "/"; 0 found
482 | ERROR | [x] Expected 1 space before "/"; 0 found
482 | ERROR | [x] Expected 1 space after "/"; 0 found
489 | ERROR | [x] Expected 1 space after "<"; 0 found
489 | ERROR | [x] Expected 1 space before "?"; 0 found
489 | ERROR | [x] Expected 1 space after "?"; 0 found
539 | ERROR | [x] Concat operator must be surrounded by a single space
557 | ERROR | [x] Expected 1 space before "/"; 0 found
557 | ERROR | [x] Expected 1 space after "/"; 0 found
557 | ERROR | [x] Expected 1 space before "/"; 0 found
557 | ERROR | [x] Expected 1 space after "/"; 0 found
557 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
560 | ERROR | [x] Expected 1 space before "/"; 0 found
560 | ERROR | [x] Expected 1 space after "/"; 0 found
560 | ERROR | [x] Expected 1 space before "/"; 0 found
560 | ERROR | [x] Expected 1 space after "/"; 0 found
560 | ERROR | [x] Expected 1 space before "/"; 0 found
560 | ERROR | [x] Expected 1 space after "/"; 0 found
560 | ERROR | [x] Closing brace must be on a line by itself
562 | ERROR | [x] There must be one blank line after the last USE statement; 0 found;
562 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
569 | ERROR | [x] Concat operator must be surrounded by a single space
573 | ERROR | [x] Concat operator must be surrounded by a single space
574 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
577 | ERROR | [x] Concat operator must be surrounded by a single space
590 | ERROR | [x] Expected 1 space after "<"; 0 found
590 | ERROR | [x] Expected 1 space before ">"; 0 found
590 | ERROR | [x] Expected 1 space after ">"; 0 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 342 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\sfc.module
----------------------------------------------------------------------------------
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\sfc-3353263\sfc.routing.yml
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
6 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
-----------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\src\Annotation\SingleFileComponent.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\sfc-3353263\src\Commands\ComponentCommands.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\sfc-3353263\src\ComponentActionsInterface.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\sfc-3353263\src\ComponentBase.php
---------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
159 | ERROR | [x] Use null coalesce operator instead of ternary operator.
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\src\ComponentConsumerTrait.php
------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
135 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\src\ComponentFilenameInterface.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\sfc-3353263\src\ComponentFormInterface.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\sfc-3353263\src\ComponentInterface.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\sfc-3353263\src\ComponentNameHelper.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\sfc-3353263\src\ComponentPluginManager.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\sfc-3353263\src\Controller\ActionController.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\sfc-3353263\src\Controller\ComponentController.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\sfc-3353263\src\Element\ComponentElement.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\sfc-3353263\src\LayoutComponentBase.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\sfc-3353263\src\LoaderInterfaceShim.php
---------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [ ] Interface name doesn't match filename; expected "interface LoaderInterfaceShim"
6 | ERROR | [x] Missing interface doc comment
10 | ERROR | [x] Missing interface doc comment
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\src\Plugin\Block\ComponentBlock.php
-----------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
54 | ERROR | [x] list(...) is forbidden, use [...] instead.
68 | ERROR | [x] Use null coalesce operator instead of ternary operator.
86 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\src\Plugin\Derivative\ComponentDeriver.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\sfc-3353263\src\Plugin\Derivative\SimpleComponentDeriver.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
122 | ERROR | [x] Expected newline after closing brace
218 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: ...docs\backendassignment\web\modules\contrib\sfc-3353263\src\Plugin\Field\FieldFormatter\ComponentFieldFormatter.php
------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
63 | ERROR | [x] list(...) is forbidden, use [...] instead.
90 | ERROR | [x] Use null coalesce operator instead of ternary operator.
118 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\src\Plugin\Layout\ComponentLayout.php
-------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
57 | ERROR | [x] list(...) is forbidden, use [...] instead.
88 | ERROR | [x] Use null coalesce operator instead of ternary operator.
126 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------

FILE: ...\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\src\Plugin\SingleFileComponent\SimpleComponent.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\sfc-3353263\src\RenderCallbacks.php
-----------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
34 | ERROR | [x] Use null coalesce operator instead of ternary operator.
35 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\src\TwigComponentLoader.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\sfc-3353263\src\TwigExtension.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: ...htdocs\backendassignment\web\modules\contrib\sfc-3353263\tests\modules\sfc_test\components\simple_local_assets.css
------------------------------------------------------------------------------------------------------------------------
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\sfc-3353263\tests\modules\sfc_test\css\main.css
-----------------------------------------------------------------------------------------------------------
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\sfc-3353263\tests\modules\sfc_test\sfc_test.routing.yml
-------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------
6 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
13 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
20 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
28 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
36 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
44 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
53 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
-------------------------------------------------------------------------------------------------------------------

FILE: ...\htdocs\backendassignment\web\modules\contrib\sfc-3353263\tests\modules\sfc_test\src\Controller\TestController.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
57 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
57 | ERROR | [ ] unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use
| | the allowed_classes option.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: ...\htdocs\backendassignment\web\modules\contrib\sfc-3353263\tests\modules\sfc_test\src\Plugin\Block\InvalidBlock.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
54 | ERROR | [x] list(...) is forbidden, use [...] instead.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: ...assignment\web\modules\contrib\sfc-3353263\tests\modules\sfc_test\src\Plugin\SingleFileComponent\BoldFormatter.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
45 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: ...ckendassignment\web\modules\contrib\sfc-3353263\tests\modules\sfc_test\src\Plugin\SingleFileComponent\JSRender.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: ...gnment\web\modules\contrib\sfc-3353263\tests\modules\sfc_test\src\Plugin\SingleFileComponent\MultipleFormatter.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: ...ckendassignment\web\modules\contrib\sfc-3353263\tests\modules\sfc_test\src\Plugin\SingleFileComponent\SayHello.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: ...signment\web\modules\contrib\sfc-3353263\tests\modules\sfc_test\src\Plugin\SingleFileComponent\TwoColumnLayout.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 3 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
63 | WARNING | [ ] #options values usually have to run through t() for translation
64 | WARNING | [ ] #options values usually have to run through t() for translation
65 | WARNING | [ ] #options values usually have to run through t() for translation
68 | ERROR | [x] Use null coalesce operator instead of ternary operator.
78 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\tests\src\Functional\ActionControllerTest.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
70 | ERROR | [ ] unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the
| | allowed_classes option.
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\tests\src\Functional\ComponentControllerTest.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\sfc-3353263\tests\src\Functional\ComponentTest.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: ...mpp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\tests\src\Functional\FunctionalComponentTestTrait.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\sfc-3353263\tests\src\Kernel\ComponentAliasesTest.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\sfc-3353263\tests\src\Kernel\ComponentBlockTest.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\sfc-3353263\tests\src\Kernel\ComponentCachingTest.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\sfc-3353263\tests\src\Kernel\ComponentControllerTest.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\sfc-3353263\tests\src\Kernel\ComponentDeriverTest.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\sfc-3353263\tests\src\Kernel\ComponentElementTest.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\sfc-3353263\tests\src\Kernel\ComponentFieldFormatterTest.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\sfc-3353263\tests\src\Kernel\ComponentLayoutTest.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\sfc-3353263\tests\src\Kernel\ComponentOverridesTest.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\sfc-3353263\tests\src\Kernel\ComponentPluginManagerTest.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\sfc-3353263\tests\src\Kernel\ComponentTestTrait.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\sfc-3353263\tests\src\Kernel\SimpleComponentTest.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\sfc-3353263\tests\src\Unit\ComponentBaseTest.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"
414 | WARNING | [ ] There must be no blank line following an inline comment
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\tests\src\Unit\ComponentBlockTest.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\sfc-3353263\tests\src\Unit\ComponentCommandsTest.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"
154 | WARNING | [ ] There must be no blank line following an inline comment
----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\sfc-3353263\tests\src\Unit\ComponentLayoutTest.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\sfc-3353263\tests\src\Unit\ComponentNameHelperTest.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\sfc-3353263\tests\src\Unit\LayoutComponentBaseTest.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\sfc-3353263\tests\src\Unit\TwigComponentLoaderTest.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"
66 | WARNING | [ ] There must be no blank line following an inline comment
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------

FILE: ...\backendassignment\web\modules\contrib\sfc-3353263\tests\themes\sfc_sub_theme\templates\sfc--simple-test.html.twig
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

Time: 12.89 secs; Memory: 10MB

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Needs review

Version

1.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

Merge Requests

Comments & Activities

  • Issue created by @sidharth_soman
  • Status changed to Needs work about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia sidharth_soman Bangalore

    Finding coding standard issues as detailed in the summary. I will work on fixing them.

  • Merge request !6Fixed phpcs issues. โ†’ (Open) created by sidharth_soman
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia sidharth_soman Bangalore

    I have solved all the issues except for dependency injections and the errors related to documentation... which should be ideally done by the mtaintainers themselves. I have issued an MR. Please review.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น
    +  /**
    +   *
    +   */
       interface ExistsLoaderInterface {}

    Documentation comments must not be empty.

  • Assigned to Gaurav Gupta
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update 8 months ago
    58 pass, 1 fail
  • Issue was unassigned.
  • Status changed to Needs review 7 months ago
  • Status changed to Needs work 7 months ago
  • ๐Ÿ‡ต๐Ÿ‡ญPhilippines clarkssquared

    Hi

    I applied MR !1 and there are still many PHPCS errors/issues being flagged.

    โžœ  sfc git:(8.x-1.11) curl https://git.drupalcode.org/project/sfc/-/merge_requests/6.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     100 24735    0 24735    0     0  36905      0 --:--:-- --:--:-- --:--:-- 37251
    patching file 'modules/sfc_dev/src/Ajax/RefreshComponentAssetsCommand.php'
    patching file 'modules/sfc_dev/src/Controller/ComponentDevController.php'
    patching file 'modules/sfc_example/css/dist/tailwind.css'
    patching file 'modules/sfc_example/sfc_example.module'
    patching file 'src/ComponentBase.php'
    patching file 'src/ComponentConsumerTrait.php'
    patching file 'src/LoaderInterfaceShim.php'
    patching file 'src/Plugin/Block/ComponentBlock.php'
    patching file 'src/Plugin/Derivative/SimpleComponentDeriver.php'
    patching file 'src/Plugin/Field/FieldFormatter/ComponentFieldFormatter.php'
    patching file 'src/Plugin/Layout/ComponentLayout.php'
    patching file 'src/RenderCallbacks.php'
    patching file 'tests/modules/sfc_test/src/Controller/TestController.php'
    patching file 'tests/modules/sfc_test/src/Plugin/Block/InvalidBlock.php'
    patching file 'tests/modules/sfc_test/src/Plugin/SingleFileComponent/BoldFormatter.php'
    patching file 'tests/modules/sfc_test/src/Plugin/SingleFileComponent/TwoColumnLayout.php'
    patching file 'tests/src/Functional/ActionControllerTest.php'
    patching file 'tests/src/Unit/ComponentBaseTest.php'
    patching file 'tests/src/Unit/ComponentCommandsTest.php'
    patching file 'tests/src/Unit/TwigComponentLoaderTest.php'
    patching file 'tests/themes/sfc_sub_theme/templates/sfc--simple-test.html.twig'
    โžœ  sfc git:(8.x-1.11) โœ— ..
    โžœ  contrib git:(master) โœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml sfc
    
    FILE: ...ing-subing/Projects/d9/d9-local/web/modules/contrib/sfc/sfc.routing.yml
    -----------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     6 | WARNING | Open page callback found, please add a comment before the
       |         | line why there is no access restriction
    -----------------------------------------------------------------------------
    
    
    FILE: ...cal/web/modules/contrib/sfc/tests/modules/sfc_test/sfc_test.routing.yml
    -----------------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    -----------------------------------------------------------------------------
      6 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     13 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     20 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     28 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     36 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     44 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     53 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
    -----------------------------------------------------------------------------
    
    
    FILE: ...es/contrib/sfc/tests/modules/sfc_test/src/Controller/TestController.php
    -----------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     57 | WARNING | \Drupal calls should be avoided in classes, use dependency
        |         | injection instead
    -----------------------------------------------------------------------------
    
    
    FILE: ...-local/web/modules/contrib/sfc/tests/src/Unit/ComponentCommandsTest.php
    -----------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     11 | ERROR | [x] Use statements should be sorted alphabetically. The first
        |       |     wrong one is Drupal\sfc\Commands\ComponentCommands.
    -----------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------
    
    
    FILE: ...arksubing-subing/Projects/d9/d9-local/web/modules/contrib/sfc/README.md
    -----------------------------------------------------------------------------
    FOUND 35 ERRORS AND 1 WARNING AFFECTING 36 LINES
    -----------------------------------------------------------------------------
       1 | ERROR   | [ ] An error occurred during processing; checking has been
         |         |     aborted. The error message was: Undefined array key
         |         |     "scope_closer" in
         |         |     /Users/clarksubing-subing/.composer/vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/UseStatementHelper.php
         |         |     on line 194
      52 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
     185 | ERROR   | [x] Line indented incorrectly; expected 0 spaces, found 2
     187 | ERROR   | [x] Line indented incorrectly; expected 0 spaces, found 2
     199 | ERROR   | [x] Line indented incorrectly; expected at least 8 spaces,
         |         |     found 0
     200 | ERROR   | [x] Line indented incorrectly; expected at least 8 spaces,
         |         |     found 0
     201 | ERROR   | [x] Line indented incorrectly; expected at least 10 spaces,
         |         |     found 2
     202 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
     205 | ERROR   | [x] Line indented incorrectly; expected at least 4 spaces,
         |         |     found 2
     227 | ERROR   | [x] Line indented incorrectly; expected 0 spaces, found 2
     228 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     229 | ERROR   | [x] Line indented incorrectly; expected 0 spaces, found 2
     230 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     231 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     233 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     235 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     236 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     238 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     239 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     240 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     242 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     243 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     244 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     245 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     246 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     248 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     249 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     251 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     252 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     258 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     260 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     262 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     264 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     265 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
     268 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     352 | ERROR   | [x] Line indented incorrectly; expected 0 spaces, found 2
    -----------------------------------------------------------------------------
    PHPCBF CAN FIX THE 34 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------
    
    
    FILE: ...ing-subing/Projects/d9/d9-local/web/modules/contrib/sfc/CONTRIBUTING.md
    -----------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     51 | WARNING | Line exceeds 80 characters; contains 87 characters
    -----------------------------------------------------------------------------
    
    
    FILE: ...b/modules/contrib/sfc/modules/sfc_dev/src/Form/ComponentPreviewForm.php
    -----------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     15 | ERROR | [x] Use statements should be sorted alphabetically. The first
        |       |     wrong one is Drupal\sfc\ComponentConsumerTrait.
    -----------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------
    
    
    FILE: ...s/contrib/sfc/modules/sfc_dev/src/Controller/ComponentDevController.php
    -----------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    -----------------------------------------------------------------------------
     14 | ERROR   | [x] Use statements should be sorted alphabetically. The
        |         |     first wrong one is Drupal\Component\Serialization\Json.
     57 | WARNING | [ ] \Drupal calls should be avoided in classes, use
        |         |     dependency injection instead
    -----------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------
    
    
    FILE: ...cal/web/modules/contrib/sfc/modules/sfc_example/sfc_example.routing.yml
    -----------------------------------------------------------------------------
    FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
    -----------------------------------------------------------------------------
      7 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     14 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     21 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     27 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     35 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     42 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     49 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
     56 | WARNING | Open page callback found, please add a comment before the
        |         | line why there is no access restriction
    -----------------------------------------------------------------------------
    
    
    FILE: ...bing/Projects/d9/d9-local/web/modules/contrib/sfc/src/TwigExtension.php
    -----------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     9 | ERROR | [x] Use statements should be sorted alphabetically. The first
       |       |     wrong one is
       |       |     Drupal\Component\Plugin\PluginManagerInterface.
    -----------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------
    
    
    FILE: ...rojects/d9/d9-local/web/modules/contrib/sfc/src/LoaderInterfaceShim.php
    -----------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     9 | ERROR | Interface name doesn't match filename; expected "interface
       |       | LoaderInterfaceShim"
    -----------------------------------------------------------------------------
    
    
    FILE: .../d9-local/web/modules/contrib/sfc/src/Plugin/Layout/ComponentLayout.php
    -----------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     12 | ERROR | [x] Use statements should be sorted alphabetically. The first
        |       |     wrong one is Drupal\sfc\ComponentConsumerTrait.
    -----------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------
    
    
    FILE: ...ects/d9/d9-local/web/modules/contrib/sfc/src/ComponentConsumerTrait.php
    -----------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     6 | ERROR | [x] Use statements should be sorted alphabetically. The first
       |       |     wrong one is Drupal\Core\Form\SubformState.
    -----------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------
    
    
    FILE: ...rojects/d9/d9-local/web/modules/contrib/sfc/src/TwigComponentLoader.php
    -----------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------
     8 | ERROR | [x] Use statements should be sorted alphabetically. The first
       |       |     wrong one is Twig\Error\LoaderError.
    -----------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------
    
    Time: 1.71 secs; Memory: 16MB
    
    โžœ  contrib git:(master) โœ—
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Preethy_ray

    pray_12 โ†’ made their first commit to this issueโ€™s fork.

  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update 6 months ago
    run-tests.sh fatal error
  • Assigned to PrabuEla
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia PrabuEla chennai
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia PrabuEla chennai
  • Issue was unassigned.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia PrabuEla chennai
  • Status changed to Needs review 6 months ago
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7
    last update 6 months ago
    Composer require-dev failure
  • Hi, patch #12 applied cleanly but still there are phpcs issues.

    $ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig sfc/
    
    FILE: C:\Users\Nisha\sfc\CONTRIBUTING.md
    ----------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------
     51 | WARNING | Line exceeds 80 characters; contains 87 characters
    ----------------------------------------------------------------------
    
    
    FILE: C:\Users\Nisha\sfc\modules\sfc_dev\src\Ajax\RefreshComponentAssetsCommand.php
    -----------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    -----------------------------------------------------------------------------------
      1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
     54 | ERROR | [x] list(...) is forbidden, use [...] instead.
    -----------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------
    
    
    FILE: C:\Users\Nisha\sfc\modules\sfc_dev\src\Controller\ComponentDevController.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"
     14 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is
        |         |     Drupal\Component\Serialization\Json.
     57 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     85 | ERROR   | [x] Use null coalesce operator instead of ternary operator.
    ----------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------
    
    
    FILE: C:\Users\Nisha\sfc\modules\sfc_dev\src\Form\ComponentPreviewForm.php
    ----------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ----------------------------------------------------------------------------------------------------
      1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
     15 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
        |       |     Drupal\sfc\ComponentConsumerTrait.
    ----------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------
    
    
    FILE: C:\Users\Nisha\sfc\modules\sfc_dev\src\Plugin\SingleFileComponent\ComponentLibrary.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:\Users\Nisha\sfc\modules\sfc_dev\src\Plugin\SingleFileComponent\ComponentPicker.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:\Users\Nisha\sfc\modules\sfc_dev\src\Plugin\SingleFileComponent\ComponentPreview.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:\Users\Nisha\sfc\modules\sfc_dev\src\Plugin\SingleFileComponent\ComponentTemplate.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:\Users\Nisha\sfc\modules\sfc_dev\tests\src\FunctionalJavascript\ComponentLibraryTest.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:\Users\Nisha\sfc\modules\sfc_dev\tests\src\Kernel\ComponentDevControllerTest.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:\Users\Nisha\sfc\modules\sfc_dev\tests\src\Kernel\ComponentPreviewFormTest.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:\Users\Nisha\sfc\modules\sfc_dev\tests\src\Kernel\ComponentPreviewTest.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:\Users\Nisha\sfc\modules\sfc_dev\tests\src\Kernel\ComponentTemplateTest.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
    
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7
    last update 28 days ago
    Composer require-dev failure
Production build 0.69.0 2024