FILE: ...web/modules/custom/inline_entity_form/inline_entity_form.api.php ---------------------------------------------------------------------- FOUND 7 ERRORS AFFECTING 6 LINES ---------------------------------------------------------------------- 11 | ERROR | [ ] Missing parameter type 13 | ERROR | [ ] Missing parameter type 26 | ERROR | [x] Doc comment long description must end with a full | | stop 28 | ERROR | [ ] Missing parameter type 30 | ERROR | [ ] Missing parameter type 52 | ERROR | [ ] Type hint "array" missing for $fields 52 | ERROR | [ ] Type hint "array" missing for $context ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: .../modules/custom/inline_entity_form/src/Form/EntityInlineForm.php ---------------------------------------------------------------------- FOUND 4 ERRORS AND 3 WARNINGS AFFECTING 6 LINES ---------------------------------------------------------------------- 206 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found 206 | WARNING | [ ] Unused variable $name. 208 | WARNING | [ ] Line exceeds 80 characters; contains 87 | | characters 256 | ERROR | [ ] If the line declaring an array spans longer than | | 80 characters, each element should be broken | | into its own line 267 | WARNING | [ ] Line exceeds 80 characters; contains 81 | | characters 269 | ERROR | [ ] Missing parameter type 271 | ERROR | [ ] Missing parameter type ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ules/custom/inline_entity_form/src/Tests/SimpleWidgetWebTest.php ---------------------------------------------------------------------- FOUND 5 ERRORS AFFECTING 5 LINES ---------------------------------------------------------------------- 23 | ERROR | [x] Doc comment short description must end with a full | | stop 137 | ERROR | [x] Expected one space after the comma, 0 found 138 | ERROR | [x] Expected one space after the comma, 0 found 160 | ERROR | [x] Parameter comment must end with a full stop 164 | ERROR | [ ] Expected type hint "Node"; found "NodeInterface" | | for $host_node ---------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...custom/inline_entity_form/src/Tests/InlineEntityFormTestBase.php ---------------------------------------------------------------------- FOUND 11 ERRORS AFFECTING 11 LINES ---------------------------------------------------------------------- 22 | ERROR | [x] Expected | | "\Drupal\Core\Entity\ContentEntityStorageInterface" | | but found | | "\Drupal\Core\Entity\ContentEntityStorageInterface;" | | for @var tag in member variable comment 48 | ERROR | [x] Expected 1 blank line after function; 2 found 60 | ERROR | [ ] Type hint "array" missing for $xpath 77 | ERROR | [ ] Missing parameter type 79 | ERROR | [ ] Missing parameter type 94 | ERROR | [ ] Missing parameter type 96 | ERROR | [ ] Missing parameter type 140 | ERROR | [ ] Doc comment short description must be on a single | | line, further text should be a separate paragraph 142 | ERROR | [ ] Missing parameter type 143 | ERROR | [x] Parameter comment indentation must be 3 spaces, | | found 2 spaces 174 | ERROR | [x] Concat operator must be surrounded by a single | | space ---------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: .../modules/custom/inline_entity_form/src/Tests/TranslationTest.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 59 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "TRUE" but found "TRUe" ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...les/custom/inline_entity_form/src/Tests/ComplexWidgetWebTest.php ---------------------------------------------------------------------- FOUND 39 ERRORS AND 6 WARNINGS AFFECTING 36 LINES ---------------------------------------------------------------------- 40 | ERROR | [x] Doc comment short description must end with a | | full stop 67 | ERROR | [ ] Public method name | | "ComplexWidgetWebTest::testEmptyFieldIEF" is not | | in lowerCamel format 176 | ERROR | [x] Doc comment long description must start with a | | capital letter 185 | ERROR | [x] Functions must not contain multiple empty lines | | in a row; found 2 empty lines 216 | ERROR | [x] Parameter comment indentation must be 3 spaces, | | found 2 spaces 218 | ERROR | [x] Parameter comment indentation must be 3 spaces, | | found 2 spaces 220 | ERROR | [x] Additional blank lines found at end of doc | | comment 224 | WARNING | [ ] Unused variable $level_1_node. 228 | ERROR | [x] No space found before comment text; expected "// | | edit-test-ref-nested1-entities-0-actions-ief-entity-edit" | | but found | | "//edit-test-ref-nested1-entities-0-actions-ief-entity-edit" 228 | ERROR | [x] Inline comments must end in full-stops, | | exclamation marks, colons, question marks, or | | closing parentheses 230 | ERROR | [x] No space found before comment text; expected "// | | edit-test-ref-nested1-form-inline-entity-form-entities-0-form-test-ref-nested2-entities-0-actions-ief-entity-edit" | | but found | | "//edit-test-ref-nested1-form-inline-entity-form-entities-0-form-test-ref-nested2-entities-0-actions-ief-entity-edit" 230 | ERROR | [x] Inline comments must end in full-stops, | | exclamation marks, colons, question marks, or | | closing parentheses 235 | ERROR | [x] No space found before comment text; expected "// | | edit-test-ref-nested1-form-inline-entity-form-entities-0-form-test-ref-nested2-form-inline-entity-form-entities-0-form-actions-ief-edit-save" | | but found | | "//edit-test-ref-nested1-form-inline-entity-form-entities-0-form-test-ref-nested2-form-inline-entity-form-entities-0-form-actions-ief-edit-save" 235 | ERROR | [x] Inline comments must end in full-stops, | | exclamation marks, colons, question marks, or | | closing parentheses 251 | ERROR | [x] Doc comment long description must start with a | | capital letter 294 | ERROR | [x] Concat operator must be surrounded by a single | | space 294 | ERROR | [x] Concat operator must be surrounded by a single | | space 318 | ERROR | [x] Concat operator must be surrounded by a single | | space 318 | ERROR | [x] Concat operator must be surrounded by a single | | space 338 | ERROR | [x] Concat operator must be surrounded by a single | | space 338 | ERROR | [x] Concat operator must be surrounded by a single | | space 344 | ERROR | [x] Concat operator must be surrounded by a single | | space 344 | ERROR | [x] Concat operator must be surrounded by a single | | space 359 | ERROR | [x] Concat operator must be surrounded by a single | | space 420 | ERROR | [x] Concat operator must be surrounded by a single | | space 420 | ERROR | [x] Concat operator must be surrounded by a single | | space 423 | ERROR | [x] Concat operator must be surrounded by a single | | space 435 | WARNING | [ ] Line exceeds 80 characters; contains 94 | | characters 470 | ERROR | [ ] Doc comment short description must be on a | | single line, further text should be a separate | | paragraph 509 | WARNING | [x] There must be no blank line following an inline | | comment 509 | WARNING | [ ] There must be no blank line following an inline | | comment 533 | ERROR | [x] Parameter comment must end with a full stop 534 | ERROR | [x] Separate the @param and @return sections by a | | blank line. 557 | ERROR | [ ] Parameter comment must start with a capital | | letter 592 | ERROR | [x] Expected "bool" but found "boolean" for | | parameter type 599 | ERROR | [ ] Type hint "array" missing for $permissions 653 | WARNING | [ ] Line exceeds 80 characters; contains 90 | | characters 655 | ERROR | [ ] Missing parameter type 656 | ERROR | [x] Parameter comment indentation must be 3 spaces, | | found 2 spaces 657 | ERROR | [ ] Missing parameter type 658 | ERROR | [x] Parameter comment indentation must be 3 spaces, | | found 2 spaces 703 | WARNING | [x] A comma should follow the last multiline array | | item. Found: 'create ief_reference_type content' 717 | ERROR | [ ] Missing parameter type 719 | ERROR | [ ] Missing parameter type 721 | ERROR | [ ] Missing parameter type ---------------------------------------------------------------------- PHPCBF CAN FIX THE 32 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: .../custom/inline_entity_form/src/Tests/ComplexSimpleWidgetTest.php ---------------------------------------------------------------------- FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES ---------------------------------------------------------------------- 25 | ERROR | [x] Missing function doc comment 73 | WARNING | [ ] Line exceeds 80 characters; contains 86 | | characters 85 | ERROR | [x] Inline comments must end in full-stops, | | exclamation marks, colons, question marks, or | | closing parentheses ---------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...b/modules/custom/inline_entity_form/src/Tests/ElementWebTest.php ---------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ---------------------------------------------------------------------- 20 | ERROR | [x] Doc comment short description must end with a full | | stop 40 | ERROR | [ ] Public method name | | "ElementWebTest::testCustomFormIEF" is not in | | lowerCamel format ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...eb/modules/custom/inline_entity_form/src/InlineFormInterface.php ---------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------- 68 | ERROR | Type hint "array" missing for $bundles 79 | ERROR | Type hint "array" missing for $element 138 | ERROR | Type hint "array" missing for $ids 138 | ERROR | Type hint "array" missing for $context ---------------------------------------------------------------------- FILE: ...dules/custom/inline_entity_form/src/Element/InlineEntityForm.php ---------------------------------------------------------------------- FOUND 5 ERRORS AFFECTING 4 LINES ---------------------------------------------------------------------- 86 | ERROR | Type hint "array" missing for $entity_form 86 | ERROR | Type hint "array" missing for $complete_form 140 | ERROR | Type hint "array" missing for $entity_form 153 | ERROR | Type hint "array" missing for $entity_form 197 | ERROR | Type hint "array" missing for $entity_form ---------------------------------------------------------------------- FILE: ...rtal/web/modules/custom/inline_entity_form/src/ElementSubmit.php ---------------------------------------------------------------------- FOUND 10 ERRORS AFFECTING 8 LINES ---------------------------------------------------------------------- 25 | ERROR | [ ] Type hint "array" missing for $form 53 | ERROR | [ ] Type hint "array" missing for $element 53 | ERROR | [ ] Type hint "array" missing for $complete_form 63 | ERROR | [x] Equals sign not aligned with surrounding | | assignments; expected 5 spaces but found 2 spaces 75 | ERROR | [ ] Type hint "array" missing for $form 83 | ERROR | [ ] Variable name $array_parents should not contain | | type 84 | ERROR | [ ] Variable name $array_parents should not contain | | type 84 | ERROR | [ ] Variable name $array_parents should not contain | | type 85 | ERROR | [ ] Variable name $array_parents should not contain | | type 98 | ERROR | [ ] Type hint "array" missing for $element ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ortal/web/modules/custom/inline_entity_form/src/WidgetSubmit.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 25 | ERROR | Type hint "array" missing for $form ---------------------------------------------------------------------- FILE: .../web/modules/custom/inline_entity_form/src/TranslationHelper.php ---------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------- 24 | ERROR | [x] Trailing punctuation for @see references is not | | allowed. 69 | ERROR | [ ] Type hint "\Drupal\Core\Form\FormStateInterface" | | missing for $form_state 100 | ERROR | [x] Trailing punctuation for @see references is not | | allowed. ---------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ty_form/src/Plugin/Field/FieldWidget/InlineEntityFormComplex.php ---------------------------------------------------------------------- FOUND 28 ERRORS AND 3 WARNINGS AFFECTING 27 LINES ---------------------------------------------------------------------- 56 | ERROR | [ ] Missing parameter name 61 | ERROR | [ ] Type hint "array" missing for $plugin_id 216 | ERROR | [ ] If the line declaring an array spans longer than | | 80 characters, each element should be broken | | into its own line 275 | ERROR | [x] Expected 1 space after comma in function call; 2 | | found 275 | ERROR | [x] Expected one space after the comma, 2 found 275 | ERROR | [ ] If the line declaring an array spans longer than | | 80 characters, each element should be broken | | into its own line 402 | ERROR | [x] Expected 1 space after "="; 2 found 405 | ERROR | [ ] If the line declaring an array spans longer than | | 80 characters, each element should be broken | | into its own line 414 | ERROR | [ ] If the line declaring an array spans longer than | | 80 characters, each element should be broken | | into its own line 488 | WARNING | [x] A comma should follow the last multiline array | | item. Found: ) 588 | ERROR | [ ] Type hint "array" missing for $element 657 | ERROR | [ ] Type hint "array" missing for $element 675 | ERROR | [ ] Type hint "array" missing for $form 739 | ERROR | [ ] Missing parameter type 741 | ERROR | [ ] Missing parameter type 744 | ERROR | [x] Trailing punctuation for @see references is not | | allowed. 753 | ERROR | [x] Expected 1 blank line after function; 2 found 764 | ERROR | [ ] Missing parameter type 766 | ERROR | [ ] Missing parameter type 775 | ERROR | [ ] If the line declaring an array spans longer than | | 80 characters, each element should be broken | | into its own line 775 | WARNING | [ ] Unused variable $instance. 827 | WARNING | [ ] Line exceeds 80 characters; contains 81 | | characters 830 | ERROR | [ ] If the line declaring an array spans longer than | | 80 characters, each element should be broken | | into its own line 856 | ERROR | [ ] Missing parameter type 858 | ERROR | [ ] Missing parameter type 861 | ERROR | [x] Trailing punctuation for @see references is not | | allowed. 874 | ERROR | [ ] Missing parameter comment 874 | ERROR | [ ] Missing parameter type 877 | ERROR | [x] Equals sign not aligned with surrounding | | assignments; expected 13 spaces but found 1 | | space 881 | ERROR | [x] Equals sign not aligned with surrounding | | assignments; expected 1 space but found 2 spaces 890 | ERROR | [ ] Missing parameter type ---------------------------------------------------------------------- PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ity_form/src/Plugin/Field/FieldWidget/InlineEntityFormSimple.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 56 | WARNING | [x] A comma should follow the last multiline array | | item. Found: 'inline_entity_form' ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ntity_form/src/Plugin/Field/FieldWidget/InlineEntityFormBase.php ---------------------------------------------------------------------- FOUND 8 ERRORS AND 3 WARNINGS AFFECTING 11 LINES ---------------------------------------------------------------------- 75 | ERROR | [ ] Missing parameter name 78 | ERROR | [ ] Type hint "array" missing for $plugin_id 254 | WARNING | [ ] t() calls should be avoided in classes, use | | dependency injection and $this->t() instead 331 | WARNING | [ ] Line exceeds 80 characters; contains 81 | | characters 407 | ERROR | [x] Trailing punctuation for @see references is not | | allowed. 411 | WARNING | [ ] \Drupal calls should be avoided in classes, use | | dependency injection instead 444 | ERROR | [ ] Type hint "array" missing for $element 455 | ERROR | [ ] Missing parameter type 456 | ERROR | [x] Parameter comment indentation must be 3 spaces, | | found 2 spaces 457 | ERROR | [ ] Missing parameter type 540 | ERROR | [ ] Description for the @return value is missing ---------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...ntity_form/tests/modules/inline_entity_form_test/src/IefTest.php ---------------------------------------------------------------------- FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES ---------------------------------------------------------------------- 16 | ERROR | Public method name "IefTest::getFormID" is not in | | lowerCamel format 32 | WARNING | t() calls should be avoided in classes, use | | dependency injection and $this->t() instead 42 | WARNING | t() calls should be avoided in classes, use | | dependency injection and $this->t() instead ---------------------------------------------------------------------- FILE: ...y_form/tests/modules/inline_entity_form_test/src/IefEditTest.php ---------------------------------------------------------------------- FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES ---------------------------------------------------------------------- 17 | ERROR | Public method name "IefEditTest::getFormID" is not in | | lowerCamel format 34 | WARNING | t() calls should be avoided in classes, use | | dependency injection and $this->t() instead 44 | WARNING | t() calls should be avoided in classes, use | | dependency injection and $this->t() instead ---------------------------------------------------------------------- FILE: .../web/modules/custom/inline_entity_form/inline_entity_form.module ---------------------------------------------------------------------- FOUND 24 ERRORS AND 1 WARNING AFFECTING 24 LINES ---------------------------------------------------------------------- 8 | ERROR | [ ] Doc comment short description must be on a | | single line, further text should be a separate | | paragraph 70 | ERROR | [ ] Type hint "array" missing for $reference_form 70 | ERROR | [ ] Type hint "\Drupal\Core\Form\FormStateInterface" | | missing for $form_state 86 | ERROR | [x] Inline comments must end in full-stops, | | exclamation marks, colons, question marks, or | | closing parentheses 128 | ERROR | [x] Parameter comment indentation must be 3 spaces, | | found 2 spaces 132 | ERROR | [ ] Type hint "array" missing for $reference_form 146 | WARNING | [ ] Unused variable $key. 161 | ERROR | [x] Parameter comment indentation must be 3 spaces, | | found 2 spaces 165 | ERROR | [ ] Type hint "array" missing for $reference_form 191 | ERROR | [ ] Missing parameter type 193 | ERROR | [ ] Missing parameter type 217 | ERROR | [ ] Missing parameter type 219 | ERROR | [ ] Missing parameter type 233 | ERROR | [ ] Missing parameter type 235 | ERROR | [ ] Missing parameter type 245 | ERROR | [x] Expected 1 blank line after function; 2 found 253 | ERROR | [ ] Missing parameter type 255 | ERROR | [ ] Missing parameter type 282 | ERROR | [ ] Missing parameter type 284 | ERROR | [ ] Missing parameter type 302 | ERROR | [ ] Variable name $array_parents should not contain | | type 305 | ERROR | [ ] Variable name $array_parents should not contain | | type 306 | ERROR | [ ] Variable name $array_parents should not contain | | type 318 | ERROR | [ ] Type hint "array" missing for $variables 401 | ERROR | [ ] If the line declaring an array spans longer than | | 80 characters, each element should be broken | | into its own line ---------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------