Problem/Motivation
FILE: modules/quiz/src/Util/QuizUtil.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 11 LINES
-------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
7 | WARNING | [x] Unused use statement
17 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
30 | ERROR | [ ] Missing parameter comment
35 | ERROR | [x] Visibility must be declared on method "icon"
102 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
104 | ERROR | [x] Data types in @param tags need to be fully namespaced
107 | ERROR | [x] Data types in @return tags need to be fully namespaced
107 | ERROR | [x] Data types in @return tags need to be fully namespaced
110 | ERROR | [x] Visibility must be declared on method "resultOrTemp"
111 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
115 | ERROR | [x] Expected newline after closing brace
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/EventSubscriber/QuizEventSubscriber.php
----------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 3 WARNINGS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
6 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
11 | ERROR | [x] Missing class doc comment
13 | ERROR | [x] Missing function doc comment
22 | ERROR | [ ] Missing parameter comment
22 | ERROR | [x] Data types in @param tags need to be fully namespaced
27 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/QuizQuestionInterface.php
--------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Data types in @param tags need to be fully namespaced
22 | ERROR | [x] Data types in @param tags need to be fully namespaced
22 | ERROR | [x] Data types in @param tags need to be fully namespaced
33 | ERROR | [ ] Description for the @return value is missing
44 | ERROR | [ ] Description for the @return value is missing
55 | ERROR | [ ] Description for the @return value is missing
67 | ERROR | [ ] Description for the @return value is missing
74 | ERROR | [ ] Missing parameter comment
76 | ERROR | [x] Expected "QuizResultAnswer|null" but found "QuizResultAnswer|NULL" for function return type
76 | ERROR | [ ] Description for the @return value is missing
76 | ERROR | [x] Data types in @return tags need to be fully namespaced
76 | ERROR | [x] Data types in @return tags need to be fully namespaced
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Plugin/Action/QuizAddQuestionAction.php
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
28 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Plugin/views/field/QuizResultAnswerField.php
------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
15 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
36 | ERROR | [x] Doc comment short description must end with a full stop
43 | ERROR | [x] Missing function doc comment
53 | ERROR | [x] Missing function doc comment
63 | ERROR | [x] Missing function doc comment
87 | ERROR | [ ] Public method name "QuizResultAnswerField::render_item" is not in lowerCamel format
87 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Plugin/views/field/QuizResultAnswersField.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
11 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
23 | ERROR | [x] Inline comments must start with a capital letter
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Plugin/QuizQuestionPluginManager.php
--------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
19 | ERROR | [x] Data types in @param tags need to be fully namespaced
22 | ERROR | [x] Data types in @param tags need to be fully namespaced
24 | ERROR | [x] Data types in @param tags need to be fully namespaced
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/ContextProvider/QuizRouteContext.php
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
35 | ERROR | Parameter $entity_type_manager is not described in comment
------------------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/QuizResultAnswerEntityTrait.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 6 WARNINGS AFFECTING 12 LINES
-------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
15 | ERROR | [x] Doc comment short description must be on the first line
16 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
63 | ERROR | [x] The final declaration must precede the visibility declaration
96 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
98 | WARNING | [ ] Unused variable $total_questions.
240 | ERROR | [x] The final declaration must precede the visibility declaration
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/QuizResult.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 34 ERRORS AND 10 WARNINGS AFFECTING 39 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
11 | WARNING | [x] Unused use statement
14 | WARNING | [x] Unused use statement
80 | ERROR | [ ] Description for the @return value is missing
105 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
128 | ERROR | [ ] Description for the @return value is missing
141 | ERROR | [x] Missing function doc comment
201 | ERROR | [ ] Missing parameter comment
201 | ERROR | [x] Expected "mixed" but found "type" for parameter type
201 | ERROR | [ ] Doc comment for parameter $this does not match actual variable name
202 | ERROR | [ ] Missing parameter comment
202 | ERROR | [ ] Superfluous parameter comment
204 | ERROR | [ ] Description for the @return value is missing
210 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
254 | ERROR | [x] Short array syntax must be used to define arrays
257 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
299 | ERROR | [ ] Unnecessarily gendered language in a comment
301 | ERROR | [ ] Doc comment for parameter $quiz_result does not match actual variable name
307 | ERROR | [x] Visibility must be declared on method "maintainResults"
377 | ERROR | [x] Visibility must be declared on method "setQuestion"
378 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
387 | ERROR | [x] Doc comment long description must end with a full stop
397 | ERROR | [ ] Doc comment for parameter $quiz_result does not match actual variable name
404 | ERROR | [x] Visibility must be declared on method "canReview"
408 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
434 | WARNING | [ ] Unused variable $rules.
438 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
466 | ERROR | [x] Visibility must be declared on method "finalize"
470 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
500 | ERROR | [ ] Missing parameter type
502 | ERROR | [ ] Missing parameter type
513 | ERROR | [x] Visibility must be declared on method "score"
551 | WARNING | [x] There must be no blank line following an inline comment
551 | WARNING | [ ] There must be no blank line following an inline comment
551 | ERROR | [x] No space found before comment text; expected "// \Drupal::entityTypeManager()->getStorage('quiz_result_answer')->delete($entities);" but found
| | "//\Drupal::entityTypeManager()->getStorage('quiz_result_answer')->delete($entities);"
584 | ERROR | [ ] Description for the @return value is missing
610 | ERROR | [ ] Description for the @return value is missing
620 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
625 | ERROR | [x] Visibility must be declared on method "copyToQuizResult"
639 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
656 | ERROR | [ ] Description for the @return value is missing
658 | ERROR | [x] Visibility must be declared on method "isTimeReached"
674 | ERROR | [ ] Description for the @return value is missing
676 | ERROR | [x] Visibility must be declared on method "isEvaluated"
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 24 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/QuizResultListBuilder.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
18 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/QuizQuestionBroken.php
-----------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [x] Missing function doc comment
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/Quiz.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 29 ERRORS AND 9 WARNINGS AFFECTING 34 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
96 | ERROR | [x] Missing function doc comment
119 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
416 | ERROR | [ ] Missing parameter comment
420 | ERROR | [x] Separate the @return and @todo sections by a blank line.
422 | ERROR | [x] Additional blank lines found at end of doc comment
423 | ERROR | [x] Visibility must be declared on method "addQuestion"
460 | ERROR | [x] Data types in @param tags need to be fully namespaced
463 | ERROR | [x] Data types in @return tags need to be fully namespaced
466 | ERROR | [x] Visibility must be declared on method "getResumeableResult"
523 | ERROR | [x] Visibility must be declared on method "buildLayout"
538 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
539 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
540 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
613 | ERROR | [x] Visibility must be declared on method "hasAttempts"
628 | ERROR | [x] Visibility must be declared on method "buildCategorizedQuestionList"
629 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
668 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
671 | WARNING | [x] There must be no blank line following an inline comment
671 | WARNING | [ ] There must be no blank line following an inline comment
671 | ERROR | [x] No space found before comment text; expected "// shuffle($total_questions);" but found "//shuffle($total_questions);"
682 | ERROR | [x] Visibility must be declared on method "getNumberOfRequiredQuestions"
692 | ERROR | [ ] Doc comment short description must end with a full stop
692 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
697 | ERROR | [x] Visibility must be declared on method "getNumberOfQuestions"
725 | ERROR | [x] Visibility must be declared on method "isLastQuestion"
726 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
737 | WARNING | [ ] Unused variable $in_page.
747 | WARNING | [ ] Unused variable $in_page.
758 | ERROR | [x] Visibility must be declared on method "createDuplicate"
775 | ERROR | [x] Visibility must be declared on method "getQuestions"
790 | ERROR | [x] Visibility must be declared on method "copyFromRevision"
820 | ERROR | [x] Visibility must be declared on method "getRandomQuestions"
824 | WARNING | [x] There must be no blank line following an inline comment
824 | WARNING | [ ] There must be no blank line following an inline comment
832 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
859 | ERROR | [x] Data types in @param tags need to be fully namespaced
867 | ERROR | [x] Visibility must be declared on method "isPassed"
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 31 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/QuizResultAnswer.php
---------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
---------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
58 | ERROR | [x] Missing function doc comment
126 | ERROR | [x] Visibility must be declared on method "getNext"
143 | ERROR | [x] Visibility must be declared on method "getPrevious"
---------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/QuizQuestionEntityTrait.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 6 WARNINGS AFFECTING 12 LINES
-------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
89 | ERROR | [x] Use null coalesce operator instead of ternary operator.
91 | ERROR | [x] Use null coalesce operator instead of ternary operator.
97 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
99 | ERROR | [ ] Description for the @return value is missing
113 | ERROR | [ ] Unknown type hint "FormStateInterface" found for $form_state
121 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/QuizResultAnswerBroken.php
---------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [x] Missing function doc comment
11 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/QuizQuestion.php
---------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 4 WARNINGS AFFECTING 9 LINES
---------------------------------------------------------------------------------------------------
87 | ERROR | [x] Missing function doc comment
101 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
120 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
132 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
132 | ERROR | [x] Comment indentation error after @todo element, expected 3 spaces
133 | ERROR | [ ] Comment indentation error, expected only 4 spaces
134 | WARNING | [ ] Line exceeds 80 characters; contains 126 characters
137 | ERROR | [ ] Comment indentation error, expected only 6 spaces
139 | WARNING | [x] There must be no blank line following an inline comment
139 | WARNING | [ ] There must be no blank line following an inline comment
144 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Entity/QuizQuestionRelationship.php
---------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
109 | ERROR | [ ] Missing short description in doc comment
111 | ERROR | [ ] Description for the @return value is missing
125 | ERROR | [ ] Description for the @return value is missing
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Storage/QuizStorage.php
------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 4 LINES
------------------------------------------------------------------------------
8 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] Missing function doc comment
10 | ERROR | [x] Visibility must be declared on method "doPreSave"
35 | ERROR | [x] Missing function doc comment
36 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------
FILE: modules/quiz/src/QuizAnswerInterface.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 15 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [ ] Description for the @return value is missing
27 | ERROR | [ ] Description for the @return value is missing
34 | ERROR | [ ] Description for the @return value is missing
44 | ERROR | [ ] Description for the @return value is missing
56 | ERROR | [ ] Description for the @return value is missing
71 | ERROR | [x] Expected "\Drupal\quiz\Entity\QuizQuestionRelationship|null" but found "\Drupal\quiz\Entity\QuizQuestionRelationship|NULL" for function return type
71 | ERROR | [ ] Description for the @return value is missing
79 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
112 | ERROR | [x] Expected "int|null" but found "int|NULL" for function return type
133 | ERROR | [ ] Description for the @return value is missing
159 | ERROR | [ ] Description for the @return value is missing
166 | ERROR | [ ] Description for the @return value is missing
172 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
193 | ERROR | [ ] The @see reference should not contain any additional text
195 | ERROR | [ ] The @see reference should not contain any additional text
196 | ERROR | [ ] The @see reference should not contain any additional text
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Access/QuizAccessControlHandler.php
---------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
8 | ERROR | [x] Missing class doc comment
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Access/QuizResultAnswerAccessControlHandler.php
-----------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 4 WARNINGS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
12 | ERROR | [x] Missing class doc comment
19 | ERROR | [x] Visibility must be declared on method "checkAccess"
21 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
23 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
36 | WARNING | [ ] Unused variable $qra_next.
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Access/QuizResultAccessControlHandler.php
--------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
11 | ERROR | [x] Missing class doc comment
16 | ERROR | [x] Visibility must be declared on method "checkAccess"
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Controller/QuizQuestionController.php
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 32 ERRORS AND 7 WARNINGS AFFECTING 32 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
11 | WARNING | [x] Unused use statement
15 | WARNING | [x] Unused use statement
17 | ERROR | [x] Missing class doc comment
22 | ERROR | [ ] Missing parameter comment
22 | ERROR | [x] Data types in @param tags need to be fully namespaced
23 | ERROR | [ ] Missing parameter comment
23 | ERROR | [x] Expected "mixed" but found "type" for parameter type
25 | ERROR | [x] Expected "mixed" but found "type" for function return type
25 | ERROR | [ ] Description for the @return value is missing
27 | ERROR | [x] Visibility must be declared on method "feedback"
37 | ERROR | [x] Data types in @param tags need to be fully namespaced
43 | ERROR | [x] Visibility must be declared on method "take"
44 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
51 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
144 | WARNING | [x] A comma should follow the last multiline array item. Found: 'pager-item'
145 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
179 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders
218 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
220 | ERROR | [ ] Missing parameter comment
220 | ERROR | [x] Data types in @param tags need to be fully namespaced
221 | ERROR | [ ] Missing parameter comment
223 | ERROR | [x] Visibility must be declared on method "checkAccess"
229 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
231 | ERROR | [ ] Missing parameter comment
231 | ERROR | [x] Data types in @param tags need to be fully namespaced
232 | ERROR | [ ] Missing parameter comment
234 | ERROR | [x] Visibility must be declared on method "checkFeedbackAccess"
240 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
244 | ERROR | [x] Data types in @param tags need to be fully namespaced
249 | ERROR | [x] Visibility must be declared on method "checkEntityAccess"
257 | ERROR | [ ] Missing parameter comment
257 | ERROR | [x] Data types in @param tags need to be fully namespaced
258 | ERROR | [ ] Missing parameter comment
260 | ERROR | [x] Data types in @return tags need to be fully namespaced
260 | ERROR | [x] Data types in @return tags need to be fully namespaced
262 | ERROR | [x] Return comment indentation must be 3 spaces, found 1 spaces
264 | ERROR | [x] Visibility must be declared on method "numberToQuestionResultAnswer"
272 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Controller/QuizController.php
-----------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AND 24 WARNINGS AFFECTING 38 LINES
-----------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
17 | ERROR | [x] Missing class doc comment
22 | ERROR | [x] Expected "mixed" but found "type" for function return type
22 | ERROR | [ ] Description for the @return value is missing
24 | ERROR | [x] Visibility must be declared on method "take"
26 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
28 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
52 | ERROR | [x] Short array syntax must be used to define arrays
65 | ERROR | [x] Short array syntax must be used to define arrays
76 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
81 | WARNING | [ ] Unused variable $field_name.
98 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
109 | ERROR | [ ] Parameter $quiz is not described in comment
114 | ERROR | [ ] Missing parameter type
117 | ERROR | [x] Expected "" but found "???" for function return type
120 | ERROR | [x] Visibility must be declared on method "manageQuestions"
126 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
129 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
130 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
130 | ERROR | [x] Comments may not appear after statements
131 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
132 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
133 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
134 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
135 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
136 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
137 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
138 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
139 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
140 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
141 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
142 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
143 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
144 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
145 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
146 | WARNING | [ ] Code after the RETURN statement on line 124 cannot be executed
171 | ERROR | [ ] Description for the @return value is missing
171 | ERROR | [x] Data types in @return tags need to be fully namespaced
171 | ERROR | [x] Data types in @return tags need to be fully namespaced
173 | ERROR | [x] Visibility must be declared on method "resume"
175 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
185 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Form/QuizQuestionsForm.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 35 ERRORS AND 69 WARNINGS AFFECTING 87 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
15 | WARNING | [x] Unused use statement
29 | ERROR | [ ] Missing parameter type
31 | ERROR | [ ] Missing parameter type
33 | ERROR | [ ] Missing parameter type
36 | ERROR | [ ] Method name "QuizQuestionsForm::_quiz_add_fields_for_creating_questions" is not in lowerCamel format
36 | ERROR | [x] Visibility must be declared on method "_quiz_add_fields_for_creating_questions"
47 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
71 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
148 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
151 | WARNING | [ ] Unused variable $always_count.
153 | ERROR | [x] No space found before comment text; expected "// $form['question_list']['#title'] .= ' (' . $always_count . ')';" but found "//$form['question_list']['#title'] .=
| | $always_count . ')';"
158 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
174 | ERROR | [ ] Missing short description in doc comment
179 | ERROR | [x] Visibility must be declared on method "getSubQuestions"
193 | ERROR | [x] Visibility must be declared on method "sortQuestions"
202 | ERROR | [x] Missing function doc comment
223 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
229 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
232 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
232 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
233 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
235 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
236 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
239 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
239 | ERROR | [x] Use null coalesce operator instead of ternary operator.
240 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
241 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
241 | ERROR | [x] Use null coalesce operator instead of ternary operator.
242 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
245 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
249 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
251 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
252 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
253 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
259 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
260 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
261 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
261 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
262 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
263 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
264 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
265 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
268 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
270 | WARNING | [ ] Line exceeds 80 characters; contains 113 characters
270 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
271 | WARNING | [ ] Line exceeds 80 characters; contains 132 characters
272 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
272 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
273 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
274 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
275 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
276 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
277 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
278 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
279 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
282 | WARNING | [ ] Line exceeds 80 characters; contains 113 characters
282 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
283 | WARNING | [ ] Line exceeds 80 characters; contains 132 characters
284 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
284 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
285 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
286 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
287 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
288 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
290 | WARNING | [ ] Line exceeds 80 characters; contains 113 characters
290 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
291 | WARNING | [ ] Line exceeds 80 characters; contains 132 characters
292 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
292 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
293 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
294 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
295 | WARNING | [ ] Code after the RETURN statement on line 224 cannot be executed
301 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
303 | ERROR | [ ] Missing parameter type
306 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
306 | ERROR | [ ] Missing parameter type
309 | ERROR | [ ] Method name "QuizQuestionsForm::_quiz_add_revision_checkbox" is not in lowerCamel format
309 | ERROR | [x] Visibility must be declared on method "_quiz_add_revision_checkbox"
310 | WARNING | [ ] Unused variable $config.
315 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
333 | ERROR | [x] Data types in @param tags need to be fully namespaced
335 | ERROR | [x] Data types in @param tags need to be fully namespaced
337 | ERROR | [ ] Missing parameter type
342 | ERROR | [x] Additional blank lines found at end of doc comment
343 | ERROR | [ ] Method name "QuizQuestionsForm::_quiz_add_questions_to_form" is not in lowerCamel format
343 | ERROR | [ ] Type hint "array" missing for $form
343 | ERROR | [ ] Type hint "array" missing for $questions
343 | ERROR | [ ] Type hint "Quiz" missing for $quiz
343 | ERROR | [x] Visibility must be declared on method "_quiz_add_questions_to_form"
347 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
348 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
366 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
375 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
383 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
404 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
415 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
441 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
443 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
453 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
455 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
459 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
469 | WARNING | [ ] Unused variable $revisions_url.
478 | WARNING | [ ] Unused variable $update_question.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 25 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Form/QuizQuestionAnsweringForm.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 27 WARNINGS AFFECTING 38 LINES
-------------------------------------------------------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
18 | ERROR | [ ] Missing parameter comment
19 | ERROR | [ ] Missing parameter comment
20 | ERROR | [ ] Doc comment for parameter $questions does not match actual variable name
22 | ERROR | [ ] Superfluous parameter comment
28 | ERROR | [ ] Expected type hint "array"; found "FormStateInterface" for $form_state
29 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
31 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
32 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
34 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
36 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
87 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
116 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
207 | ERROR | [x] Missing function doc comment
218 | WARNING | [ ] Unused variable $config.
219 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
220 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
222 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
225 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
237 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
246 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
259 | ERROR | [x] Expected 1 space after comma in argument list; 2 found
259 | ERROR | [x] Expected one space after the comma, 2 found
266 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
308 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
309 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
310 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
318 | WARNING | [ ] Unused variable $idx.
326 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
357 | ERROR | [x] Visibility must be declared on method "submitFinalize"
359 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
362 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
363 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
370 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
390 | ERROR | [x] Visibility must be declared on method "submitBack"
392 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
393 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
415 | ERROR | [x] Missing function doc comment
420 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Form/QuizFeedbackConditionsForm.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
18 | ERROR | [x] Data types in @var tags need to be fully namespaced
94 | ERROR | [x] Visibility must be declared on method "titleCallback"
95 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Form/QuizResultEntityForm.php
-----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 9 WARNINGS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
9 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
24 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
48 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
76 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
97 | ERROR | [ ] Unnecessarily gendered language in a comment
99 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
107 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
128 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
129 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Form/QuizEntityForm.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 4 WARNINGS AFFECTING 8 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
26 | ERROR | [x] Missing function doc comment
78 | ERROR | [x] No space found before comment text; expected "// $form['review_options']['#group'] = 'taking_options';" but found "//$form['review_options']['#group'] = 'taking_o
87 | ERROR | [x] No space found before comment text; expected "// $form['quiz_always']['#group'] = 'availability_options';" but found "//$form['quiz_always']['#group'] = 'availabi
113 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
114 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
129 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
132 | WARNING | [ ] #description values usually have to run through t() for translation
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Form/QuizQuestionFeedbackForm.php
-----------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 5 WARNINGS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
19 | ERROR | [x] Visibility must be declared on method "buildForm"
25 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
44 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
46 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
89 | ERROR | [x] Missing function doc comment
98 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
99 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
109 | ERROR | [x] Visibility must be declared on method "submitEnd"
110 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
111 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Form/QuizJumperForm.php
------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
14 | ERROR | [x] Missing function doc comment
35 | ERROR | [x] Missing function doc comment
36 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
45 | ERROR | [x] Missing function doc comment
49 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------
FILE: modules/quiz/src/Form/QuizQuestionEntityForm.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 10 WARNINGS AFFECTING 13 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
15 | ERROR | [x] Missing function doc comment
18 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
21 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
23 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
25 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
46 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
47 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
62 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
65 | WARNING | [ ] #description values usually have to run through t() for translation
86 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
87 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
94 | ERROR | [ ] The array declaration extends to column 91 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Form/QuizAdminForm.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 4 WARNINGS AFFECTING 8 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
19 | ERROR | [x] Missing function doc comment
23 | ERROR | [x] Missing function doc comment
30 | ERROR | [x] Visibility must be declared on method "buildForm"
76 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
88 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
200 | ERROR | [x] No space found before comment text; expected "// $form['#validate'][] = 'quiz_settings_form_validate';" but found "//$form['#validate'][] = 'quiz_settings_form_va
201 | WARNING | [x] There must be no blank line following an inline comment
201 | WARNING | [ ] There must be no blank line following an inline comment
201 | ERROR | [x] No space found before comment text; expected "// $form['#submit'][] = 'quiz_settings_form_submit';" but found "//$form['#submit'][] = 'quiz_settings_form_submit';
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/View/QuizViewBuilder.php
---------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
12 | ERROR | [x] Missing class doc comment
14 | ERROR | [x] Missing function doc comment
45 | ERROR | [x] Missing function doc comment
104 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/View/QuizResultViewBuilder.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 6 WARNINGS AFFECTING 16 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
19 | ERROR | [x] Missing class doc comment
23 | ERROR | [x] Missing function doc comment
24 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
32 | ERROR | [ ] The $_POST super global must not be accessed directly; inject the request_stack service and use $stack->getCurrentRequest()->request instead
71 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
93 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
94 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
94 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
119 | ERROR | [x] Data types in @param tags need to be fully namespaced
119 | ERROR | [x] Data types in @param tags need to be fully namespaced
122 | ERROR | [ ] Return type missing for @return tag in function comment
125 | ERROR | [x] Visibility must be declared on method "getSummaryText"
172 | ERROR | [x] Data types in @param tags need to be fully namespaced
177 | ERROR | [ ] Description for the @return value is missing
177 | ERROR | [x] Data types in @return tags need to be fully namespaced
179 | ERROR | [ ] Type hint "Quiz" missing for $quiz
179 | ERROR | [x] Visibility must be declared on method "getRangeFeedback"
------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/View/QuizResultAnswerViewBuilder.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
13 | WARNING | [x] Unused use statement
16 | ERROR | [x] Missing class doc comment
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Annotation/QuizQuestion.php
---------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
29 | ERROR | [x] Data types in @var tags need to be fully namespaced
---------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------
FILE: modules/quiz/src/Services/QuizSession.php
---------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------
17 | ERROR | [x] Data types in @var tags need to be fully namespaced
24 | ERROR | [x] Data types in @param tags need to be fully namespaced
124 | ERROR | [x] Doc comment short description must end with a full stop
135 | ERROR | [x] Doc comment short description must end with a full stop
137 | ERROR | [ ] @return doc comment specified, but function has no return statement
142 | ERROR | [x] Calls to PHP native functions must be lowercase; expected "sizeof" but found "sizeOf"
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Services/QuizSessionInterface.php
----------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AFFECTING 14 LINES
----------------------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Additional blank lines found at end of doc comment
22 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
24 | ERROR | [x] Data types in @param tags need to be fully namespaced
32 | ERROR | [x] Data types in @param tags need to be fully namespaced
32 | ERROR | [x] Data types in @param tags need to be fully namespaced
38 | ERROR | [x] Doc comment short description must end with a full stop
40 | ERROR | [x] Data types in @param tags need to be fully namespaced
46 | ERROR | [x] Doc comment short description must end with a full stop
48 | ERROR | [x] Data types in @param tags need to be fully namespaced
56 | ERROR | [x] Additional blank lines found at end of doc comment
62 | ERROR | [x] Data types in @param tags need to be fully namespaced
62 | ERROR | [x] Data types in @param tags need to be fully namespaced
70 | ERROR | [x] Data types in @param tags need to be fully namespaced
70 | ERROR | [x] Data types in @param tags need to be fully namespaced
78 | ERROR | [x] Data types in @param tags need to be fully namespaced
89 | ERROR | [x] Data types in @param tags need to be fully namespaced
92 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Config/Entity/QuizListBuilder.php
---------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------
14 | ERROR | [x] Missing function doc comment
36 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------
FILE: modules/quiz/src/Config/Entity/QuizResultTypeListBuilder.php
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
13 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Config/Entity/QuizResultAnswerTypeListBuilder.php
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
13 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Config/Entity/QuizFeedbackTypeListBuilder.php
---------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------
14 | ERROR | [x] Missing function doc comment
34 | ERROR | [x] Expected 1 blank line after function; 2 found
40 | ERROR | [x] Visibility must be declared on method "getDefaultOperations"
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------
FILE: modules/quiz/src/Config/Entity/QuizTypeListBuilder.php
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
13 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
FILE: modules/quiz/src/Config/Entity/QuizQuestionTypeListBuilder.php
---------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
13 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------
FILE: modules/quiz/quiz.rules_defaults.inc
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: modules/quiz/quiz.api.php
------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 1 WARNING AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
7 | ERROR | [x] Doc comment short description must be on the first line
7 | ERROR | [x] Doc comment short description must start with a capital letter
8 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
23 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
34 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
51 | ERROR | [ ] Type hint "array" missing for $review_options
65 | ERROR | [ ] Missing parameter type
78 | ERROR | [ ] The @see reference should not contain any additional text
80 | ERROR | [ ] The @see reference should not contain any additional text
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/modules/ajax_quiz/ajax_quiz.permissions.yml
---------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------
3 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------
FILE: modules/quiz/modules/ajax_quiz/ajax_quiz.module
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 5 WARNINGS AFFECTING 8 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
8 | WARNING | [x] Unused use statement
13 | ERROR | [x] Doc comment short description must start with a capital letter
13 | ERROR | [x] Doc comment short description must end with a full stop
67 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
70 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
158 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters
158 | ERROR | [x] 8 spaces found before inline comment; expected "// // @todo need to break this out so we can render progress/jumper without all this work" but found "// //
| | break this out so we can render progress/jumper without all this work"
160 | ERROR | [ ] Comment indentation error, expected only 8 spaces
161 | WARNING | [ ] Line exceeds 80 characters; contains 110 characters
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/modules/quiz_stats/quiz_stats.module
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 3 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
133 | ERROR | [ ] Missing parameter type
135 | ERROR | [ ] Missing parameter type
138 | ERROR | [ ] Return type missing for @return tag in function comment
148 | WARNING | [ ] Line exceeds 80 characters; contains 109 characters
148 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
149 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
151 | ERROR | [x] Object operator not indented correctly; expected 4 spaces but found 6
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/modules/quiz_stats/quiz_stats.admin.inc
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 32 ERRORS AND 28 WARNINGS AFFECTING 52 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] There must be exactly one blank line after the file comment
10 | ERROR | [ ] Missing parameter type
10 | ERROR | [x] Parameter comment must be on the next line
12 | ERROR | [ ] Return type missing for @return tag in function comment
13 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
15 | ERROR | [x] Expected 1 blank line before function; 0 found
16 | WARNING | [ ] Line exceeds 80 characters; contains 109 characters
16 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
17 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
40 | WARNING | [ ] Unused variable $key.
50 | ERROR | [ ] Missing parameter type
53 | ERROR | [ ] Return type missing for @return tag in function comment
64 | ERROR | [ ] Missing parameter type
66 | ERROR | [ ] Missing parameter type
69 | ERROR | [ ] Return type missing for @return tag in function comment
74 | ERROR | [ ] The array declaration extends to column 119 (the limit is 80). The array content should be split up over multiple lines
99 | WARNING | [x] '@todo: make the ranges configurable' should match the format '@todo Fix problem X here.'
100 | WARNING | [ ] Line exceeds 80 characters; contains 109 characters
100 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
101 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
145 | WARNING | [ ] Line exceeds 80 characters; contains 109 characters
145 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
146 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
192 | WARNING | [ ] Line exceeds 80 characters; contains 109 characters
192 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
193 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
204 | WARNING | [ ] Line exceeds 80 characters; contains 109 characters
204 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
205 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
231 | ERROR | [ ] Missing parameter type
233 | ERROR | [ ] Missing parameter type
236 | ERROR | [ ] Return type missing for @return tag in function comment
240 | WARNING | [ ] Unused variable $start.
242 | WARNING | [ ] Unused variable $takeup.
253 | WARNING | [ ] Line exceeds 80 characters; contains 109 characters
253 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
254 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
274 | ERROR | [ ] Missing parameter type
276 | ERROR | [ ] Missing parameter type
279 | ERROR | [ ] Return type missing for @return tag in function comment
290 | WARNING | [ ] Line exceeds 80 characters; contains 109 characters
290 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
291 | WARNING | [ ] Line exceeds 80 characters; contains 128 characters
295 | WARNING | [ ] There must be no blank line following an inline comment
302 | ERROR | [ ] Missing parameter type
305 | ERROR | [ ] Return type missing for @return tag in function comment
311 | WARNING | [ ] Unused variable $max.
352 | ERROR | [ ] Missing parameter type
355 | ERROR | [ ] Return type missing for @return tag in function comment
375 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders
391 | ERROR | [ ] Missing parameter type
394 | ERROR | [ ] Return type missing for @return tag in function comment
423 | ERROR | [ ] Missing parameter type
426 | ERROR | [ ] Return type missing for @return tag in function comment
463 | ERROR | [ ] Missing parameter name
466 | ERROR | [ ] Return type missing for @return tag in function comment
510 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
511 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
512 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
513 | ERROR | [x] Array closing indentation error, expected 2 spaces but found 4
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/modules/quiz_stats/theme/quiz_stats_charts.tpl.php
----------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------
5 | ERROR | [x] Doc comment short description must end with a full stop
23 | ERROR | [x] Missing function doc comment
23 | ERROR | [x] Expected 1 blank line before function; 0 found
30 | ERROR | [x] Expected 1 blank line after function; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------
FILE: modules/quiz/modules/quiz_stats/theme/quiz_stats_revision_selector.tpl.php
---------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] Missing file doc comment
9 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: modules/quiz/quiz.module
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 15 WARNINGS AFFECTING 22 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
15 | WARNING | [x] Unused use statement
20 | WARNING | [x] Unused use statement
26 | ERROR | [x] Doc comment short description must end with a full stop
74 | WARNING | [x] There must be no blank line following an inline comment
74 | WARNING | [ ] There must be no blank line following an inline comment
356 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
400 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
402 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
406 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
411 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
412 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
423 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
493 | ERROR | [ ] Missing parameter type
499 | ERROR | [x] Separate the @return and @deprecated sections by a blank line.
499 | ERROR | [ ] The text '@deprecated ' does not match the standard format: @deprecated in %deprecation-version% and is removed from %removal-version%. %extra-info%.
499 | ERROR | [ ] Each @deprecated tag must have a @see tag immediately following it
501 | ERROR | [x] Additional blank lines found at end of doc comment
523 | ERROR | [ ] Missing parameter type
551 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders
553 | WARNING | [ ] Do not concatenate strings to translatable strings, they should be part of the t() argument and you should use placeholders
600 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
729 | ERROR | [x] Data types in @var tags need to be fully namespaced
760 | ERROR | [x] Expected 1 blank line after function; 2 found
791 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/templates/quiz-report-form.tpl.php
-----------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
-----------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
48 | ERROR | [x] Object operator not indented correctly; expected 2 spaces but found 20
52 | ERROR | [x] Object operator not indented correctly; expected 2 spaces but found 16
58 | ERROR | [x] Object operator not indented correctly; expected 2 spaces but found 18
63 | ERROR | [x] Object operator not indented correctly; expected 2 spaces but found 16
67 | ERROR | [x] Object operator not indented correctly; expected 2 spaces but found 16
69 | ERROR | [x] Object operator not indented correctly; expected 2 spaces but found 16
79 | ERROR | [x] Object operator not indented correctly; expected 2 spaces but found 10
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------
FILE: modules/quiz/quiz.devel.inc
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AND 6 WARNINGS AFFECTING 13 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
87 | ERROR | [ ] Missing parameter comment
87 | ERROR | [x] Expected "mixed" but found "type" for parameter type
88 | ERROR | [ ] Missing parameter comment
88 | ERROR | [x] Expected "mixed" but found "type" for parameter type
89 | ERROR | [ ] Missing parameter comment
89 | ERROR | [x] Expected "mixed" but found "type" for parameter type
90 | ERROR | [ ] Missing parameter comment
90 | ERROR | [x] Expected "mixed" but found "type" for parameter type
94 | ERROR | [x] Additional blank lines found at end of doc comment
124 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters
124 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
125 | WARNING | [ ] Line exceeds 80 characters; contains 130 characters
131 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters
131 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
132 | WARNING | [ ] Line exceeds 80 characters; contains 130 characters
147 | ERROR | [ ] Missing parameter comment
147 | ERROR | [x] Expected "mixed" but found "type" for parameter type
148 | ERROR | [ ] Missing parameter comment
148 | ERROR | [x] Expected "mixed" but found "type" for parameter type
215 | ERROR | [ ] Description for the @return value is missing
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/src/Plugin/quiz/QuizQuestion/TrueFalseResponse.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
106 | ERROR | [ ] The @see reference should not contain any additional text
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/src/Plugin/quiz/QuizQuestion/TrueFalseQuestion.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [ ] Missing short description in doc comment
87 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/tests/src/Functional/QuizTrueFalseTestCase.php
------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------------------------------
18 | ERROR | [x] Missing function doc comment
22 | ERROR | [ ] Missing member variable doc comment
32 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
33 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
34 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
35 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
36 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
43 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/config/install/field.storage.quiz_question.truefalse_correct.yml
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
29 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/config/install/field.field.quiz_question.truefalse.truefalse_correct.yml
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/config/install/quiz.question.type.truefalse.yml
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/config/install/quiz.result.answer.type.truefalse.yml
------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/config/install/core.entity_form_display.quiz_question.truefalse.default.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------
53 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/config/install/core.entity_view_display.quiz_question.truefalse.default.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------
34 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/config/install/field.field.quiz_result_answer.truefalse.truefalse_answer.yml
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_truefalse/config/install/field.storage.quiz_result_answer.truefalse_answer.yml
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------
29 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/src/Plugin/quiz/QuizQuestion/MatchingResponse.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 7 WARNINGS AFFECTING 14 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
15 | ERROR | [x] Doc comment short description must end with a full stop
29 | ERROR | [x] No space found before comment text; expected "// foreach ($values['answer']['user_answer'] as $left_id => $right_id) {" but found "//foreach ($values['answer']['u
| | $left_id => $right_id) {"
29 | ERROR | [x] Inline comments must start with a capital letter
29 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
41 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
89 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 20
90 | ERROR | [x] Object operator not indented correctly; expected 20 spaces but found 50
124 | WARNING | [x] '@todo: $answer->get('matching_feedback')->getString(),' should match the format '@todo Fix problem X here.'
124 | ERROR | [x] Comments may not appear after statements
139 | ERROR | [ ] The @see reference should not contain any additional text
146 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
159 | ERROR | [x] Short array syntax must be used to define arrays
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/src/Plugin/quiz/QuizQuestion/MatchingQuestion.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 6 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
7 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
14 | WARNING | [x] Unused use statement
26 | ERROR | [ ] Missing short description in doc comment
47 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
95 | ERROR | [x] Parameter comment must end with a full stop
121 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/quiz_matching.module
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
19 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "matching_help" but expected "quiz_matching_matching_help"
34 | WARNING | [ ] Doc comment indicates hook_form_alter() but function signature is "quiz_matching_form_quiz_question_type_edit_form_alter" instead of "quiz_matching_form_alter". Di
| | hook_form_FORM_ID_alter()?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/tests/src/Functional/MatchingTestCase.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 22 ERRORS AND 3 WARNINGS AFFECTING 20 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
18 | ERROR | [ ] Missing member variable doc comment
28 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
29 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
30 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
31 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
32 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
33 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
36 | WARNING | [ ] Line exceeds 80 characters; contains 99 characters
36 | ERROR | [x] No space found before comment text; expected "// $match[$i]['question'] = $match[$i]['answer'] = $match[$i]['feedback'] = "MAF " . ($i + 1);" but found "//$match[
| | $match[$i]['answer'] = $match[$i]['feedback'] = "MAF " . ($i + 1);"
48 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
100 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
101 | ERROR | [x] No space found before comment text; expected "// $this->assertText('MAF 1');" but found "//$this->assertText('MAF 1');"
102 | ERROR | [x] No space found before comment text; expected "// $this->assertText('MAF 2');" but found "//$this->assertText('MAF 2');"
103 | ERROR | [x] No space found before comment text; expected "// $this->assertText('MAF 3');" but found "//$this->assertText('MAF 3');"
103 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
113 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
114 | ERROR | [x] No space found before comment text; expected "// $this->assertText('MAF 1');" but found "//$this->assertText('MAF 1');"
115 | ERROR | [x] No space found before comment text; expected "// $this->assertText('MAF 2');" but found "//$this->assertText('MAF 2');"
117 | ERROR | [x] No space found before comment text; expected "// $this->assertText('MAF 3');" but found "//$this->assertText('MAF 3');"
117 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
125 | ERROR | [x] Short array syntax must be used to define arrays
126 | ERROR | [x] Short array syntax must be used to define arrays
126 | ERROR | [ ] The array declaration extends to column 83 (the limit is 80). The array content should be split up over multiple lines
126 | ERROR | [ ] The array declaration extends to column 113 (the limit is 80). The array content should be split up over multiple lines
179 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.storage.paragraph.matching_answer.yml
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/core.entity_form_display.paragraph.quiz_matching_answer.default.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------
32 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/core.entity_view_display.quiz_result_answer.matching.default.yml
--------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------
31 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.storage.quiz_result_answer.matching_user_answer.yml
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/quiz_matching.settings.yml
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/core.entity_view_display.quiz_question.matching.default.yml
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
28 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.field.paragraph.quiz_matching.matching_question.yml
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.storage.paragraph.matching_user_question.yml
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
19 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.field.quiz_result_answer.matching.matching_user_answer.yml
--------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------
42 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/core.entity_form_display.quiz_result_answer.matching.default.yml
--------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------
38 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/core.entity_view_display.paragraph.quiz_matching_answer.default.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------
34 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.field.paragraph.quiz_matching_answer.matching_user_question.yml
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.storage.quiz_question.quiz_matching.yml
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/quiz.question.type.matching.yml
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.storage.paragraph.matching_user_answer.yml
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------
19 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.field.quiz_question.matching.quiz_matching.yml
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------
45 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/core.entity_form_display.quiz_question.matching.default.yml
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
63 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/core.entity_form_display.paragraph.quiz_matching.default.yml
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------
34 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.storage.quiz_question.choice_penalty.yml
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.storage.paragraph.matching_question.yml
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/paragraphs.paragraphs_type.quiz_matching.yml
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/paragraphs.paragraphs_type.quiz_matching_answer.yml
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.field.paragraph.quiz_matching.matching_answer.yml
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/quiz.result.answer.type.matching.yml
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.field.quiz_question.matching.choice_penalty.yml
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_matching/config/install/field.field.paragraph.quiz_matching_answer.matching_user_answer.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_page/src/Plugin/quiz/QuizQuestion/QuizPageQuestion.php
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
20 | ERROR | Missing short description in doc comment
----------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_page/tests/src/Functional/QuizPageTestCase.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 24 ERRORS AND 1 WARNING AFFECTING 20 LINES
-------------------------------------------------------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
19 | ERROR | [ ] Missing member variable doc comment
21 | ERROR | [ ] Missing member variable doc comment
23 | ERROR | [x] Missing function doc comment
42 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
42 | ERROR | [x] Comments may not appear after statements
48 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
48 | ERROR | [x] Comments may not appear after statements
54 | ERROR | [x] Comments may not appear after statements
57 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
57 | ERROR | [x] Comments may not appear after statements
59 | ERROR | [x] Comments may not appear after statements
152 | ERROR | [x] Empty array declaration must have no space between the parentheses
155 | ERROR | [x] Empty array declaration must have no space between the parentheses
171 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
172 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
173 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
174 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
179 | ERROR | [x] Missing function doc comment
195 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
195 | ERROR | [x] Comments may not appear after statements
202 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
202 | ERROR | [x] Comments may not appear after statements
209 | ERROR | [x] Comments may not appear after statements
216 | ERROR | [x] Comments may not appear after statements
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 23 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_page/config/install/quiz.result.answer.type.page.yml
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_page/config/install/quiz.question.type.page.yml
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/src/Plugin/quiz/QuizQuestion/ShortAnswerQuestion.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
11 | ERROR | [ ] Missing short description in doc comment
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/src/Plugin/quiz/QuizQuestion/ShortAnswerResponse.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
29 | ERROR | [x] Case breaking statements must be followed by a single blank line
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/tests/src/Functional/ShortAnswerTestCase.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 10 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------
24 | ERROR | [ ] Missing member variable doc comment
26 | ERROR | [ ] Missing member variable doc comment
33 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
34 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
35 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
36 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
183 | ERROR | [x] No space found before comment text; expected "// $this->assertText('Score ? of 10');" but found "//$this->assertText('Score ? of 10');"
183 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
214 | ERROR | [x] No space found before comment text; expected "// $this->assertText('Score 2 of 5');" but found "//$this->assertText('Score 2 of 5');"
215 | ERROR | [x] No space found before comment text; expected "// $this->assertText('Score 3 of 5');" but found "//$this->assertText('Score 3 of 5');"
215 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
253 | ERROR | [x] Missing function doc comment
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/schema/quiz_short_answer.schema.yml
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/quiz.result.answer.type.short_answer.yml
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/quiz.question.type.short_answer.yml
-------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/core.entity_view_display.quiz_question.short_answer.default.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------
27 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/field.storage.quiz_result_answer.short_answer.yml
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/quiz_short_answer.settings.yml
--------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/field.storage.quiz_question.short_answer_correct.yml
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/field.storage.quiz_question.short_answer_evaluation.yml
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
35 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/field.field.quiz_question.short_answer.short_answer_evaluation.yml
--------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/field.field.quiz_result_answer.short_answer.short_answer.yml
--------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/core.entity_form_display.quiz_question.short_answer.default.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------
56 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/config/install/field.field.quiz_question.short_answer.short_answer_correct.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_short_answer/quiz_short_answer.module
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
20 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "short_answer_help" but expected "quiz_short_answer_short_answer_help"
29 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "short_answer_permission" but expected "quiz_short_answer_short_answer_permis
40 | WARNING | [ ] Doc comment indicates hook_form_alter() but function signature is "quiz_short_answer_form_quiz_question_type_edit_form_alter" instead of "quiz_short_answer_form_al
| | hook_form_FORM_ID_alter()?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/quiz_multichoice.libraries.yml
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/src/Plugin/quiz/QuizQuestion/MultichoiceResponse.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 9 WARNINGS AFFECTING 14 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
22 | ERROR | [ ] Missing @var tag in member variable comment
23 | ERROR | [ ] Class property $user_answer_ids should use lowerCamel naming without underscores
25 | ERROR | [ ] Class property $choice_order should use lowerCamel naming without underscores
25 | ERROR | [ ] Missing member variable doc comment
118 | ERROR | [x] No space found before comment text; expected "// $this->orderAlternatives($this->question->alternatives);" but found "//$this->orderAlternatives($this->question->
159 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
168 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters
168 | WARNING | [x] 'TODO: Drupal Rector Notice: Please delete the following comment after you've made any necessary changes.' should match the format '@todo Fix problem X here.'
169 | WARNING | [ ] Line exceeds 80 characters; contains 130 characters
196 | ERROR | [ ] The @see reference should not contain any additional text
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/src/Plugin/quiz/QuizQuestion/MultichoiceQuestion.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
7 | WARNING | [x] Unused use statement
13 | ERROR | [ ] Missing short description in doc comment
26 | ERROR | [x] Missing function doc comment
26 | ERROR | [x] Visibility must be declared on method "save"
70 | ERROR | [x] Expected 1 space after "<="; 2 found
95 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
95 | ERROR | [x] Expected 1 space after comma in argument list; 2 found
95 | ERROR | [x] Expected one space after the comma, 2 found
157 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
209 | ERROR | [ ] Missing parameter comment
211 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/quiz_multichoice.module
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
11 | ERROR | [x] Doc comment short description must end with a full stop
57 | WARNING | [ ] Doc comment indicates hook_form_alter() but function signature is "quiz_multichoice_form_quiz_question_type_edit_form_alter" instead of "quiz_multichoice_form_alte
| | hook_form_FORM_ID_alter()?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/tests/src/Functional/QuizMultichoiceTestCase.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [ ] Missing member variable doc comment
60 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
61 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
62 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
63 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
64 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
65 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
66 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
77 | ERROR | [x] Missing function doc comment
277 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
327 | ERROR | [x] Missing function doc comment
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.paragraph.multichoice.multichoice_answer.yml
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.paragraph.multichoice.multichoice_feedback_not_chosen.yml
----------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/core.entity_view_display.quiz_question.multichoice.default.yml
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------
35 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/quiz.question.type.multichoice.yml
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.quiz_question.choice_boolean.yml
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.paragraph.multichoice_score_not_chosen.yml
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.quiz_question.multichoice.alternatives.yml
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------
36 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.quiz_question.choice_multi.yml
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/quiz_multichoice.settings.yml
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/core.entity_form_display.quiz_question.multichoice.default.yml
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------
78 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.paragraph.multichoice_feedback_not_chosen.yml
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.paragraph.multichoice_answer.yml
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/core.entity_view_display.paragraph.multichoice.default.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------
74 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.quiz_question.choice_random.yml
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.quiz_question.multichoice.choice_boolean.yml
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/core.entity_form_display.paragraph.multichoice.default.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------
91 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.paragraph.multichoice_correct.yml
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.paragraph.multichoice_feedback_chosen.yml
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.paragraph.multichoice.multichoice_score_not_chosen.yml
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/core.entity_view_display.quiz_result_answer.multichoice.default.yml
--------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------------
34 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.paragraph.multichoice.multichoice_feedback_chosen.yml
------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/paragraphs.paragraphs_type.multichoice.yml
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.quiz_question.multichoice.choice_multi.yml
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/quiz.result.answer.type.multichoice.yml
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.quiz_question.multichoice.choice_random.yml
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/core.entity_form_display.quiz_result_answer.multichoice.default.yml
--------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------------
32 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.paragraph.multichoice.multichoice_score_chosen.yml
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.quiz_result_answer.multichoice.multichoice_answer.yml
------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.quiz_question.alternatives.yml
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.paragraph.multichoice_score_chosen.yml
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.field.paragraph.multichoice.multichoice_correct.yml
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_multichoice/config/install/field.storage.quiz_result_answer.multichoice_answer.yml
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/src/Plugin/quiz/QuizQuestion/LongAnswerQuestion.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
-------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
13 | ERROR | [ ] Missing short description in doc comment
84 | WARNING | [ ] Unused variable $check.
107 | ERROR | [x] Use null coalesce operator instead of ternary operator.
108 | ERROR | [x] Use null coalesce operator instead of ternary operator.
121 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/quiz_long_answer.module
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
21 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "long_answer_help" but expected "quiz_long_answer_long_answer_help"
32 | WARNING | [ ] Doc comment indicates hook_form_alter() but function signature is "quiz_long_answer_form_quiz_question_type_edit_form_alter" instead of "quiz_long_answer_form_alte
| | hook_form_FORM_ID_alter()?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/tests/src/Functional/LongAnswerTestCase.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 10 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------
24 | ERROR | [x] You must use "/**" style comments for a member variable comment
26 | ERROR | [ ] Missing member variable doc comment
28 | ERROR | [x] Missing function doc comment
60 | ERROR | [x] No space found before comment text; expected "// $this->assertText('Score ? of 10');" but found "//$this->assertText('Score ? of 10');"
60 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
86 | ERROR | [x] No space found before comment text; expected "// $this->assertText('Score 3 of 10');" but found "//$this->assertText('Score 3 of 10');"
87 | ERROR | [x] No space found before comment text; expected "// $this->assertText('Score 7 of 10');" but found "//$this->assertText('Score 7 of 10');"
87 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
110 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
111 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
112 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
113 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/field.storage.quiz_question.long_answer_rubric.yml
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/core.entity_view_display.quiz_question.long_answer.default.yml
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------
27 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/quiz.question.type.long_answer.yml
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/field.storage.quiz_result_answer.long_answer.yml
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/field.field.quiz_question.long_answer.answer_text_processing.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/quiz.result.answer.type.long_answer.yml
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/quiz_long_answer.settings.yml
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/field.storage.quiz_question.answer_text_processing.yml
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------
17 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/field.field.quiz_result_answer.long_answer.long_answer.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/core.entity_form_display.quiz_question.long_answer.default.yml
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------
53 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_long_answer/config/install/field.field.quiz_question.long_answer.long_answer_rubric.yml
-------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_directions/src/Plugin/quiz/QuizQuestion/QuizDirectionsQuestion.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | Missing short description in doc comment
----------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/question_types/quiz_directions/tests/src/Functional/QuizDirectionsTestCase.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Missing function doc comment
24 | ERROR | [ ] Missing member variable doc comment
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/quiz.libraries.yml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
10 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: modules/quiz/quiz.admin.inc
--------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------
6 | ERROR | [x] There must be exactly one blank line after the file comment
13 | ERROR | [ ] Missing parameter type
13 | ERROR | [x] Parameter comment must be on the next line
14 | ERROR | [ ] Missing parameter type
14 | ERROR | [x] Parameter comment must be on the next line
16 | ERROR | [x] Expected 1 blank line before function; 0 found
24 | WARNING | [ ] There must be no blank line following an inline comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizQuestionNumberingTest.php
----------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------
16 | ERROR | [ ] Missing member variable doc comment
18 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizNavigationTest.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------
16 | ERROR | [ ] Missing member variable doc comment
102 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
107 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizRandomTest.php
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
19 | ERROR | Missing member variable doc comment
-----------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizCategorizedRandomTest.php
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
21 | ERROR | Missing member variable doc comment
----------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizGradingTest.php
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
18 | ERROR | Missing member variable doc comment
------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizQuestionTestBase.php
-----------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
23 | ERROR | [ ] Doc comment for parameter $modules does not match actual variable name $user_permissions
30 | ERROR | [ ] @return doc comment specified, but function has no return statement
30 | ERROR | [ ] Description for the @return value is missing
32 | ERROR | [ ] Type hint "array" missing for $admin_permissions
32 | ERROR | [ ] Type hint "array" missing for $user_permissions
39 | ERROR | [x] Missing function doc comment
39 | ERROR | [x] Visibility must be declared on method "getQuestionType"
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizRepeatUntilCorrectTest.php
-----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
18 | ERROR | Missing member variable doc comment
-----------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizResultTest.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
12 | WARNING | [x] Unused use statement
23 | ERROR | [ ] Missing member variable doc comment
23 | ERROR | [ ] The array declaration extends to column 81 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizFeedbackTest.php
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------
17 | ERROR | [ ] Missing member variable doc comment
80 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
92 | ERROR | [x] Empty array declaration must have no space between the parentheses
106 | ERROR | [x] No space found before comment text; expected "// should be a question title header." but found "//should be a question title header."
274 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
275 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
276 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
277 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
---------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizResultPruningTest.php
--------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
22 | ERROR | [ ] Missing member variable doc comment
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizBuildOnLastTest.php
----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------
17 | ERROR | Missing member variable doc comment
----------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizTimerTest.php
------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------
16 | ERROR | [ ] Missing member variable doc comment
61 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
61 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizResumeTest.php
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
16 | ERROR | Missing member variable doc comment
-----------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizResultBundleTest.php
--------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
20 | ERROR | [ ] Missing member variable doc comment
55 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizEvaluationTest.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------------------------
17 | ERROR | [ ] Missing member variable doc comment
31 | WARNING | [ ] There must be no blank line following an inline comment
31 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
31 | ERROR | [x] Comments may not appear after statements
34 | WARNING | [ ] There must be no blank line following an inline comment
34 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
34 | ERROR | [x] Comments may not appear after statements
44 | ERROR | [x] Empty array declaration must have no space between the parentheses
48 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
49 | ERROR | [x] Expected 1 blank line after function; 0 found
50 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizRevisioningTest.php
---------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
18 | ERROR | [ ] Missing member variable doc comment
37 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
48 | ERROR | [x] Empty array declaration must have no space between the parentheses
169 | ERROR | [x] Empty array declaration must have no space between the parentheses
174 | ERROR | [x] Empty array declaration must have no space between the parentheses
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizAnonymousTest.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------
20 | ERROR | Missing member variable doc comment
54 | ERROR | The array declaration extends to column 122 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizShuffleTest.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------------------------
19 | ERROR | [ ] Missing member variable doc comment
129 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
129 | ERROR | [x] Comments may not appear after statements
130 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
130 | ERROR | [x] Comments may not appear after statements
131 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
131 | ERROR | [x] Comments may not appear after statements
132 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
132 | ERROR | [x] Comments may not appear after statements
133 | ERROR | [x] Comments may not appear after statements
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizCreationTest.php
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
16 | ERROR | Missing member variable doc comment
-------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizTestBase.php
--------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 12 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
16 | ERROR | [ ] Missing short description in doc comment
22 | ERROR | [x] Additional blank lines found at end of doc comment
23 | ERROR | [ ] Do not disable strict config schema checking in tests. Instead ensure your module properly declares its schema for configurations.
25 | ERROR | [ ] Missing member variable doc comment
27 | ERROR | [ ] Missing member variable doc comment
62 | ERROR | [x] Data types in @param tags need to be fully namespaced
62 | ERROR | [x] Data types in @param tags need to be fully namespaced
64 | ERROR | [x] Data types in @param tags need to be fully namespaced
67 | ERROR | [x] Data types in @return tags need to be fully namespaced
88 | ERROR | [ ] Description for the @return value is missing
88 | ERROR | [x] Data types in @return tags need to be fully namespaced
103 | ERROR | [ ] Missing short description in doc comment
104 | ERROR | [ ] Description for the @return value is missing
104 | ERROR | [x] Data types in @return tags need to be fully namespaced
104 | ERROR | [x] Data types in @return tags need to be fully namespaced
--------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizTakingTest.php
-----------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------
17 | ERROR | [ ] Missing member variable doc comment
189 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
201 | ERROR | [x] Missing function doc comment
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizDeleteTest.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------------------------------
12 | ERROR | [ ] Class name doesn't match filename; expected "class QuizDeleteTest"
16 | ERROR | [ ] Missing member variable doc comment
41 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
44 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
46 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
49 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Functional/QuizAccessTest.php
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
22 | ERROR | Missing member variable doc comment
-----------------------------------------------------------------------------------
FILE: modules/quiz/tests/src/Kernel/ContextProvider/QuizContextTest.php
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------
24 | ERROR | Do not disable strict config schema checking in tests. Instead ensure your module properly declares its schema for configurations.
54 | ERROR | The array declaration extends to column 92 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/modules/quiz_test/quiz_test.info.yml
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------
1 | WARNING | "Description" property is missing in the info.yml file
5 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
6 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
----------------------------------------------------------------------------------------------
FILE: modules/quiz/tests/modules/quiz_test/config/install/views.view.quiz_result_export_test.yml
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
170 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/field.field.paragraph.quiz_result_feedback.quiz_feedback_range.yml
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
37 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/field.field.paragraph.quiz_result_feedback.quiz_feedback.yml
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/views.view.quiz_results.yml
--------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------
2023 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/paragraphs.paragraphs_type.quiz_result_feedback.yml
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/views.view.quiz_unevaluated_results.yml
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
805 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/core.entity_view_display.quiz.quiz.default.yml
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
36 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/quiz.feedback.type.end.yml
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
31 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/views.view.quiz_user_results.yml
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
394 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/field.storage.paragraph.quiz_feedback.yml
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/quiz.defaults.yml
----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------
10 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------
FILE: modules/quiz/config/install/core.entity_form_display.paragraph.quiz_result_feedback.default.yml
------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
49 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/field.storage.paragraph.quiz_feedback_range.yml
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/quiz.result.type.quiz_result.yml
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/core.entity_view_mode.quiz_question.question.yml
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/quiz.feedback.type.question.yml
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
31 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/views.view.quiz_question_bank.yml
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
373 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/core.entity_form_display.quiz.quiz.default.yml
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
235 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/install/quiz.type.quiz.yml
-----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------
FILE: modules/quiz/config/optional/core.entity_form_display.paragraph.quiz_question_term_pool.default.yml
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
44 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/optional/field.storage.paragraph.quiz_question_number.yml
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/optional/field.field.paragraph.quiz_question_term_pool.quiz_question_tid.yml
-------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
30 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/optional/paragraphs.paragraphs_type.quiz_question_term_pool.yml
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/optional/field.storage.paragraph.quiz_question_max_score.yml
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/optional/field.field.paragraph.quiz_question_term_pool.quiz_question_max_score.yml
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
26 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/optional/field.storage.paragraph.quiz_question_tid.yml
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: modules/quiz/config/optional/field.field.paragraph.quiz_question_term_pool.quiz_question_number.yml
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
26 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------
FILE: modules/quiz/quiz.install
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
14 | ERROR | [ ] The array declaration extends to column 124 (the limit is 80). The array content should be split up over multiple lines
36 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
Time: 4.53 secs; Memory: 18MB
Steps to reproduce
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig "module_name"
Proposed resolution
Resolve the PHPCS issues.
Remaining tasks
User interface changes
API changes
Data model changes