Running
phpcs --standard=Drupal,DrupalPractice --extensions=php,inc,module,install,info,test,profile,theme modules/custom/entity_reference_revisions/ -s
shows the following warnings/errors, which should be fixed.
Result:
FILE: /entity_reference_revisions.views.inc
------------
FOUND 8 ERRORS AFFECTING 7 LINES
------------
27 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
31 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
35 | ERROR | [x] Expected 1 space after "=>"; 2 found (Squiz.WhiteSpace.OperatorSpacing.SpacingAfter)
35 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
50 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
52 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
62 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
63 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /tests/modules/entity_host_relationship_test/src/Entity/EntityTestHostRelationship.php
--------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
--------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
8 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
50 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
51 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
--------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------
FILE: /tests/modules/entity_composite_relationship_test/src/Entity/EntityTestCompositeRelationship.php
------------
FOUND 1 ERROR AFFECTING 1 LINE
------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /tests/src/Functional/EntityReferenceRevisionsNormalizerTest.php
------------
FOUND 10 ERRORS AFFECTING 9 LINES
------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
24 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
51 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
52 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
62 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
75 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
75 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
80 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
92 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
106 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /tests/src/Functional/EntityReferenceRevisionsOrphanRemovalTest.php
---------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
---------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
35 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entity_composite_relationship_test' (Drupal.Arrays.Array.CommaLastItem)
163 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entity_test_composite' (Drupal.Arrays.Array.CommaLastItem)
371 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
372 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
---------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------
FILE: /tests/src/Functional/EntityReferenceRevisionsOrphanRemovalForBaseFieldDefinitionTest.php
-----------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
-----------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------
FILE: /tests/src/Functional/EntityReferenceRevisionsAdminTest.php
--------------
FOUND 9 ERRORS AND 1 WARNING AFFECTING 10 LINES
--------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
24 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
43 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
44 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
47 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
98 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
124 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
152 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
162 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
192 | WARNING | [x] A comma should follow the last multiline array item. Found: $i (Drupal.Arrays.Array.CommaLastItem)
--------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------
FILE: /tests/src/Functional/EntityReferenceRevisionsDiffTest.php
----------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
----------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------
FILE: /tests/src/Functional/EntityReferenceRevisionsAutocompleteTest.php
------------
FOUND 14 ERRORS AFFECTING 14 LINES
------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
25 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
44 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
56 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
75 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
83 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
84 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
90 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
100 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
129 | ERROR | [x] Visibility must be declared on method "drupalGetBlockByInfo" (Drupal.Scope.MethodScope.Missing)
133 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
146 | ERROR | [x] Visibility must be declared on method "createBlockContentType" (Drupal.Scope.MethodScope.Missing)
149 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
154 | ERROR | [x] Expected 1 space before ":"; 0 found (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore)
------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /tests/src/Kernel/EntityReferenceRevisionsSaveTest.php
---------------
FOUND 12 ERRORS AND 3 WARNINGS AFFECTING 15 LINES
---------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
24 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
57 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
61 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
62 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entity_test_composite' (Drupal.Arrays.Array.CommaLastItem)
66 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
74 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
146 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
150 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
151 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entity_test_composite' (Drupal.Arrays.Array.CommaLastItem)
155 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
163 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
187 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
271 | ERROR | [x] Doc comment short description must end with a full stop (Drupal.Commenting.DocComment.ShortFullStop)
302 | WARNING | [x] A comma should follow the last multiline array item. Found: ] (Drupal.Arrays.Array.CommaLastItem)
---------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------
FILE: /tests/src/Kernel/EntityReferenceRevisionsCompositeTranslationTest.php
---------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 5 LINES
---------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
38 | WARNING | [x] A comma should follow the last multiline array item. Found: 'content_translation' (Drupal.Arrays.Array.CommaLastItem)
53 | ERROR | [x] Additional blank lines found at end of doc comment (Drupal.Commenting.DocComment.SpacingAfter)
78 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entity_test_composite' (Drupal.Arrays.Array.CommaLastItem)
110 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entity_test_composite' (Drupal.Arrays.Array.CommaLastItem)
---------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------
FILE: /tests/src/Kernel/EntityReferenceRevisionsCompositeTest.php
------------
FOUND 23 ERRORS AND 2 WARNINGS AFFECTING 24 LINES
------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
30 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
35 | WARNING | [x] A comma should follow the last multiline array item. Found: 'language' (Drupal.Arrays.Array.CommaLastItem)
50 | ERROR | [x] Additional blank lines found at end of doc comment (Drupal.Commenting.DocComment.SpacingAfter)
73 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
77 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
78 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entity_test_composite' (Drupal.Arrays.Array.CommaLastItem)
82 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
102 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
119 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
168 | ERROR | [x] No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma)
168 | ERROR | [x] Expected one space after the comma, 0 found (Drupal.WhiteSpace.Comma.NoSpace)
259 | ERROR | [x] Visibility must be declared on method "testCompositeRelationshipWithTranslationNonTranslatableField" (Drupal.Scope.MethodScope.Missing)
264 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
270 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
273 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
313 | ERROR | [x] Visibility must be declared on method "testCompositeRelationshipWithTranslationTranslatableField" (Drupal.Scope.MethodScope.Missing)
321 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
329 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
361 | ERROR | [x] Visibility must be declared on method "testCompositeRelationshipWithRevisions" (Drupal.Scope.MethodScope.Missing)
364 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
371 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
377 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
412 | ERROR | [x] Visibility must be declared on method "testCompositeRelationshipDefaultRevision" (Drupal.Scope.MethodScope.Missing)
460 | ERROR | [x] Visibility must be declared on method "testCompositeRelationshipDuplicatedRevisions" (Drupal.Scope.MethodScope.Missing)
------------
PHPCBF CAN FIX THE 25 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /tests/src/Kernel/Plugin/Derivative/EntityReferenceRevisionsDeriverTest.php
--------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
--------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
7 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
36 | ERROR | [x] Data types in @var tags need to be fully namespaced (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace)
41 | ERROR | [x] Expected 1 blank line after function; 3 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
44 | ERROR | [ ] More than 2 empty lines are not allowed (Drupal.WhiteSpace.EmptyLines.EmptyLines)
45 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
--------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------
FILE: /tests/src/Kernel/Plugin/migrate/destination/EntityReferenceRevisionsDestinationTest.php
----------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
----------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
317 | WARNING | [x] A comma should follow the last multiline array item. Found: ] (Drupal.Arrays.Array.CommaLastItem)
351 | WARNING | [x] A comma should follow the last multiline array item. Found: ] (Drupal.Arrays.Array.CommaLastItem)
----------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------
FILE: /tests/src/Kernel/EntityReferenceRevisionsFormatterTest.php
--------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
61 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entity_test_composite' (Drupal.Arrays.Array.CommaLastItem)
--------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------
FILE: /tests/src/Kernel/EntityReferenceRevisionsCompositeTranslatableFieldTest.php
--------------
FOUND 6 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
--------------
1 | ERROR | [x] Missing declare(strict_types=1). (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing)
30 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
36 | WARNING | [x] A comma should follow the last multiline array item. Found: 'content_translation' (Drupal.Arrays.Array.CommaLastItem)
51 | ERROR | [x] Additional blank lines found at end of doc comment (Drupal.Commenting.DocComment.SpacingAfter)
70 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
74 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
75 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entity_test_composite' (Drupal.Arrays.Array.CommaLastItem)
79 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
--------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------
FILE: /entity_reference_revisions.module
-----------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------
97 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph (Drupal.Commenting.DocComment.ShortSingleLine)
108 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph (Drupal.Commenting.DocComment.ShortSingleLine)
129 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph (Drupal.Commenting.DocComment.ShortSingleLine)
-----------------
FILE: /src/Normalizer/EntityReferenceRevisionItemNormalizer.php
----------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------
34 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
----------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------
FILE: /src/Form/OrphanedCompositeEntitiesDeleteForm.php
-------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------
16 | WARNING | The class short comment should describe what the class does and not simply repeat the class name (Drupal.Commenting.ClassComment.Short)
-------------
FILE: /src/EntityReferenceRevisionsFieldItemList.php
----------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
----------------
7 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
39 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
55 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
84 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
89 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
90 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found (Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword)
98 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
----------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------
FILE: /src/Plugin/Derivative/MigrateEntityReferenceRevisions.php
-----------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-----------------
9 | ERROR | [x] Doc comment short description must end with a full stop (Drupal.Commenting.DocComment.ShortFullStop)
10 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name (Drupal.Commenting.ClassComment.Short)
11 | ERROR | [x] Expected 1 space before opening brace; found 2 (Drupal.Classes.ClassDeclaration.SpaceBeforeBrace)
-----------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------
FILE: /src/Plugin/DataType/EntityReferenceRevisions.php
----------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------
39 | ERROR | [x] Expected "int|string" but found "integer|string" for @var tag in member variable comment (Drupal.Commenting.VariableComment.IncorrectVarType)
41 | ERROR | [ ] Class property $revision_id should use lowerCamel naming without underscores (Drupal.NamingConventions.ValidVariableName.LowerCamelName)
46 | ERROR | [x] Expected "int|string" but found "integer|string" for @var tag in member variable comment (Drupal.Commenting.VariableComment.IncorrectVarType)
127 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
128 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
----------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------
FILE: /src/Plugin/migrate/destination/EntityReferenceRevisions.php
-----------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------
83 | WARNING | [x] 'TODO: Improve after https://www.drupal.org/node/2783715 is finished.' should match the format '@todo Fix problem X here.' (Drupal.Commenting.TodoComment.TodoFormat)
-----------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------
FILE: /src/Plugin/Field/FieldWidget/EntityReferenceRevisionsAutocompleteWidget.php
-----------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------
28 | ERROR | [x] Expected 1 space after IF keyword; 0 found (Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword)
-----------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------
FILE: /src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php
------------
FOUND 9 ERRORS AND 4 WARNINGS AFFECTING 13 LINES
------------
49 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
56 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
73 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
90 | WARNING | [x] A comma should follow the last multiline array item. Found: ] (Drupal.Arrays.Array.CommaLastItem)
91 | WARNING | [x] A comma should follow the last multiline array item. Found: ] (Drupal.Arrays.Array.CommaLastItem)
98 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
120 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
148 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
153 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
226 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
232 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
491 | WARNING | [ ] Unused variable $label_key. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
493 | WARNING | [x] '@TODO set the length somehow less arbitrary.' should match the format '@todo Fix problem X here.' (Drupal.Commenting.TodoComment.TodoFormat)
------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /src/Plugin/Field/FieldFormatter/EntityReferenceRevisionsLabelFormatter.php
------------
FOUND 1 ERROR AFFECTING 1 LINE
------------
70 | ERROR | [x] Non-capturing catch is required. (SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch.NonCapturingCatchRequired)
------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /src/Plugin/Field/FieldFormatter/EntityReferenceRevisionsEntityFormatter.php
-----------------
FOUND 9 ERRORS AFFECTING 8 LINES
-----------------
58 | ERROR | [x] Data types in @param tags need to be fully namespaced (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace)
90 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
100 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
115 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
119 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
119 | ERROR | [x] Use null coalesce operator instead of ternary operator. (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed)
129 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
136 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
146 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
-----------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------
FILE: /src/Plugin/views/style/EntityReferenceRevisions.php
-------------
FOUND 5 ERRORS AFFECTING 5 LINES
-------------
45 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
57 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
85 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
102 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
103 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
-------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------
FILE: /src/Plugin/views/display/EntityReferenceRevisions.php
-------------
FOUND 6 ERRORS AFFECTING 6 LINES
-------------
52 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
54 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
164 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
171 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
176 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
177 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
-------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------
FILE: /src/Plugin/views/row/EntityReferenceRevisions.php
------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------
29 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
41 | ERROR | [x] There should be no white space before a closing ")" (Drupal.WhiteSpace.CloseBracketSpacing.ClosingWhitespace)
56 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
57 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /src/Plugin/diff/Field/EntityReferenceRevisionsFieldDiffBuilder.php
--------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
--------------
26 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
29 | WARNING | [ ] Unused variable $field_key. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
33 | WARNING | [ ] Unused variable $field_id. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
--------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------
FILE: /src/EntityNeedsSaveTrait.php
------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------
3 | ERROR | [x] There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter)
38 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
39 | ERROR | [x] The closing brace for the trait must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /src/Hook/EntityHooks.php
----------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------
65 | WARNING | Unused variable $revision_id. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
----------------
FILE: /src/TypedData/EntityRevisionDataDefinition.php
------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------
27 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
49 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
50 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /src/EntityReferenceRevisionsServiceProvider.php
------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------
26 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
34 | ERROR | [x] Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------
FILE: /src/EntityNeedsSaveInterface.php
----------------
FOUND 4 ERRORS AFFECTING 3 LINES
----------------
17 | ERROR | [x] Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
26 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
26 | ERROR | [x] Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
27 | ERROR | [x] The closing brace for the interface must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
----------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------
FILE: /src/Commands/EntityReferenceRevisionsCommands.php
----------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------
7 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
25 | ERROR | [ ] Missing parameter comment (Drupal.Commenting.FunctionComment.MissingParamComment)
37 | ERROR | [x] Separate the @param and @usage sections by a blank line. (Drupal.Commenting.DocComment.TagGroupSpacing)
----------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------
You have been blocked because we believe you are using automation tools to browse the website.
This may happen as a result of the following:
If you think you have been blocked by mistake, please contact help@drupal.org with the reference ID below.
Reference ID: #49343319-f7b9-11ef-8f34-5b615686395f
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | 2016-Trend: Große Nostalgie auf Social Media | 0 | 10.93 | 27-01-2026 |