Command
phpcs --standard=Drupal,DrupalPractice --extensions=php,inc,module,install,info,test,profile,theme modules/custom/entity_embed/ -s
Result
FILE: tests/modules/entity_embed_test/src/Controller/TestEntityEmbedController.php
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
13 | WARNING | Line exceeds 80 characters; contains 81 characters (Drupal.Files.LineLength.TooLong)
------------------------------------------------------------------------------------------------------------
FILE: tests/src/Functional/EntityEmbedTestBase.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
109 | ERROR | The array declaration extends to column 121 (the limit is 120). The array content should be
| | split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration)
------------------------------------------------------------------------------------------------------------
FILE: tests/src/Functional/EntityEmbedEntityBrowserTest.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\embed\Entity\EmbedButton.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: tests/src/Functional/ViewModeFieldFormatterTest.php
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
14 | ERROR | Missing member variable doc comment (Drupal.Commenting.VariableComment.Missing)
---------------------------------------------------------------------------------------------------
FILE: tests/src/Kernel/EntityEmbedFilterDisabledIntegrationsTest.php
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
56 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
| | (Drupal.Arrays.Array.CommaLastItem)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: tests/src/Kernel/EntityEmbedFilterTestBase.php
-----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
74 | WARNING | Unused variable $admin_user.
| | (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
-----------------------------------------------------------------------------------------------------------
FILE: tests/src/Kernel/EntityEmbedFilterTest.php
-------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------
59 | ERROR | [x] Missing function doc comment
| | (Drupal.Commenting.FunctionComment.Missing)
65 | ERROR | [x] Missing function doc comment
| | (Drupal.Commenting.FunctionComment.Missing)
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------
FILE: tests/src/FunctionalJavascript/SortableTestTrait.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
121 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing)
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
FILE: tests/src/FunctionalJavascript/ConfigurationUiTest.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
211 | ERROR | Doc comment short description must be on a single line, further text should be a separate
| | paragraph (Drupal.Commenting.DocComment.ShortSingleLine)
------------------------------------------------------------------------------------------------------------
FILE: tests/src/FunctionalJavascript/ImageFieldFormatterTest.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\editor\Entity\Editor.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: tests/src/FunctionalJavascript/CKEditor5IntegrationTest.php
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------
52 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
| | (Drupal.Files.LineLength.TooLong)
275 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
| | (Drupal.Files.LineLength.TooLong)
276 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
| | (Drupal.Files.LineLength.TooLong)
557 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing)
757 | WARNING | [ ] Unused variable $page.
| | (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: entity_embed.install
------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Doc comment star missing (Drupal.Commenting.DocCommentStar.StarMissing)
9 | ERROR | [ ] Doc comment short description must start with a capital letter
| | (Drupal.Commenting.DocComment.ShortNotCapital)
10 | ERROR | [x] Expected 1 space(s) before asterisk; 2 found
| | (Drupal.Commenting.DocCommentAlignment.SpaceBeforeStar)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: entity_embed.module
------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 5 WARNINGS AFFECTING 10 LINES
------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\Core\Form\FormStateInterface.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
11 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
12 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
13 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
14 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
15 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
74 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found
| | "file_entity_embed_display_plugins_alter" but expected
| | "entity_embed_file_entity_embed_display_plugins_alter"
| | (Drupal.NamingConventions.ValidFunctionName.InvalidPrefix)
84 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found
| | "taxonomy_entity_embed_display_plugins_alter" but expected
| | "entity_embed_taxonomy_entity_embed_display_plugins_alter"
| | (Drupal.NamingConventions.ValidFunctionName.InvalidPrefix)
299 | ERROR | [x] Data types in @var tags need to be fully namespaced
| | (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace)
331 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or
| | closing parentheses (Drupal.Commenting.InlineComment.InvalidEndChar)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: src/Controller/EditEmbeddedEntity.php
------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment (Drupal.Commenting.ClassComment.Missing)
21 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
| | (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal)
23 | ERROR | [x] Expected 1 blank line after function; 3 found
| | (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
26 | ERROR | [ ] More than 2 empty lines are not allowed (Drupal.WhiteSpace.EmptyLines.EmptyLines)
27 | 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/EntityEmbedDisplay/FieldFormatterEntityEmbedDisplayBase.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 5 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
8 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
10 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
13 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
127 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
| | (Drupal.Commenting.InlineVariableComment.VarInline)
227 | ERROR | [ ] Description for the @return value is missing
| | (Drupal.Commenting.FunctionComment.MissingReturnComment)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: src/EntityEmbedDisplay/EntityEmbedDisplayInterface.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\Component\Plugin\ConfigurableInterface.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: src/EntityEmbedDisplay/EntityEmbedDisplayManager.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\Component\Plugin\Exception\PluginException.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: src/Form/EntityEmbedDialog.php
------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
------------------------------------------------------------------------------------------------------------
26 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\Component\Serialization\Json.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
98 | ERROR | [ ] Parameter $file_url_generator is not described in comment
| | (Drupal.Commenting.FunctionComment.ParamMissingDefinition)
113 | ERROR | [ ] Missing parameter name (Drupal.Commenting.FunctionComment.MissingParamName)
196 | ERROR | [x] Use null coalesce operator instead of ternary operator.
| | (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed)
203 | ERROR | [x] Use null coalesce operator instead of ternary operator.
| | (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed)
430 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
| | (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
526 | ERROR | [x] Use null coalesce operator instead of ternary operator.
| | (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed)
614 | ERROR | [ ] The array declaration extends to column 126 (the limit is 120). The array content should
| | be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration)
621 | ERROR | [ ] The array declaration extends to column 156 (the limit is 120). The array content should
| | be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration)
641 | ERROR | [ ] The array declaration extends to column 122 (the limit is 120). The array content should
| | be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration)
892 | ERROR | [ ] Public method name "EntityEmbedDialog::registerJSCallback" is not in lowerCamel
| | format (Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: src/Plugin/Derivative/FieldFormatterDeriver.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\Core\Field\FormatterPluginManager.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: src/Plugin/CKEditorPlugin/DrupalEntity.php
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------
42 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
| | (DrupalPractice.Objects.GlobalFunction.GlobalFunction)
43 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
| | (DrupalPractice.Objects.GlobalFunction.GlobalFunction)
------------------------------------------------------------------------------------------------------------
FILE: src/Plugin/CKEditor4To5Upgrade/EntityEmbed.php
------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------
74 | ERROR | Public method name "EntityEmbed::mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem" is not in
| | lowerCamel format (Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps)
93 | ERROR | Public method name "EntityEmbed::mapCKEditor4SettingsToCKEditor5Configuration" is not in
| | lowerCamel format (Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps)
100 | ERROR | Public method name "EntityEmbed::computeCKEditor5PluginSubsetConfiguration" is not in
| | lowerCamel format (Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps)
------------------------------------------------------------------------------------------------------------
FILE: src/Plugin/CKEditor5Plugin/DrupalEntity.php
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
16 | ERROR | Missing short description in doc comment
| | (Drupal.Commenting.DocComment.MissingShort)
29 | WARNING | Line exceeds 80 characters; contains 154 characters
| | (Drupal.Files.LineLength.TooLong)
------------------------------------------------------------------------------------------------------
FILE: src/Plugin/CKEditor5Plugin/DrupalEntityDeriver.php
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
15 | ERROR | [x] Missing class doc comment (Drupal.Commenting.ClassComment.Missing)
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------
FILE: EntityEmbedDisplay/ImageFieldFormatter.php
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 7 WARNINGS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
7 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
9 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
10 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
11 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
13 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
96 | ERROR | [x] list(...) is forbidden, use [...] instead.
| | (SlevomatCodingStandard.PHP.ShortList.LongListUsed)
165 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
| | (DrupalPractice.Objects.GlobalFunction.GlobalFunction)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: EntityEmbedDisplay/EntityReferenceFieldFormatter.php
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
8 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
9 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
10 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
12 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: EntityEmbedDisplay/MediaImageDecorator.php
------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------
121 | ERROR | [x] Use null coalesce operator instead of ternary operator.
| | (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed)
122 | ERROR | [x] Use null coalesce operator instead of ternary operator.
| | (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed)
147 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
| | (DrupalPractice.Objects.GlobalFunction.GlobalFunction)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: src/Plugin/Filter/EntityEmbedFilter.php
------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------
19 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\embed\DomHelperTrait.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
90 | ERROR | [ ] Parameter $file_url_generator is not described in comment
| | (Drupal.Commenting.FunctionComment.ParamMissingDefinition)
107 | ERROR | [ ] Missing parameter name (Drupal.Commenting.FunctionComment.MissingParamName)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: src/EntityEmbedBuilder.php
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
66 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
| | (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal)
------------------------------------------------------------------------------------------------------------
FILE: entity_embed.api.php
------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment (Drupal.Commenting.FileComment.Missing)
5 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\Core\Entity\EntityInterface.
| | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
5 | ERROR | [x] There must be one blank line after the last USE statement; 0 found;
| | (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse)
71 | WARNING | [ ] Unused variable $key. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
87 | WARNING | [ ] Unused variable $key. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
Time: 4.06 secs; Memory: 12MB
Comments
Comment #2
dharti patel commentedComment #3
dharti patel commentedHello,
I have created a patch to fix this issue.
Kindly review the patch and provide feedback.
Thanks!
Comment #4
dave reidSeveral changes in the patch look very wrong and needs a lot of work.
Comment #6
juancec commentedHi, I'm working on it.
Comment #8
juancec commentedHello,
I'm done with the Coding standards issues.
Pending for review and tests.
Regards!
Comment #10
juancec commentedComment #12
juancec commentedHey, I just created a new branch called '3305083-phpcs-coding-standard-issues' and included the patch in #3.
There are still issues remaining, so you can continue fixing them =)
Comment #13
juancec commentedComment #14
LeoAlcci commentedI will work on it!
Comment #15
LeoAlcci commentedComment #16
LeoAlcci commentedI accomplished to fix all php warnings and errors, I still have doubts about the tests.
Please kindly review it!
Comment #17
LeoAlcci commentedComment #18
gersonjlComment #19
gersonjlComment #20
jmizarela commentedI'll review it, and maybe see what can be done about the tests (if anything).
Comment #22
jmizarela commentedPHPCS errors and warnings were indeed fixed! Well done @LeoAlcci and @juancec =)
I've made changes (see MR14) that were failing local tests:
Waiting for a review.
I cannot locally reproduce the FunctionalJavaScripts test fails the bot is currently "complaining" about.
I get, however,
'Undefined array key "entity_browser"' on four functional tests when running locally, that may be just my faulty env - please check when reviewing:Functional\EntityEmbedEntityBrowserTest::testEntityEmbedEntityBrowserIntegration
Functional\EntityEmbedEntityBrowserTest::testEntityEmbedDialog
Functional\EntityEmbedEntityBrowserTest::testEntityEmbedButtonMark
Functional\EntityEmbedEntityBrowserTest::testEntityEmbedFunctionality
Apart from that, that are many deprecation notices. These should probably be fixed in a new issue.
Cheers!
Comment #23
adaucyjI'll work on it to fix the tests and the merge request.
Comment #25
adaucyjComment #26
gabrieldv commentedI'll review it, thanks for the work everyone!
Comment #27
gabrieldv commentedTested using PHPCS, Automated tests, and in the CMS, and everything look ok to me, so i'm moving it to RTBC
Comment #28
avpadernoComment #29
dave reidI cannot cleanly merge the MR currently with 8.x-1.x, it needs to be updated.
Comment #31
ankithashettyFixed conflicts in MR and rebased it.
Noticed additional phpcs errors:
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml .Fixed these in the latest commit in the same MR.
Pending warnings are:
Thank you!
Comment #33
nikolay shapovalov commentedComment #34
nikolay shapovalov commentedComment #35
nikolay shapovalov commentedComment #36
nikolay shapovalov commentedComment #37
nikolay shapovalov commentedI added changes to fix phpunit tests, but I think these changes need to be moved to separate issue.
Also I suggest to have scheduled pipeline run for main dev branch, to run tests once in a week.
Comment #38
nikolay shapovalov commentedI moved changes to fix phpunit test to separate issue #3415080: Fix functional javascript tests for entity_embed / ckeditor4.
But I add changes to this MR as well, to check that tests will pass.
Comment #39
nikolay shapovalov commentedComment #40
nikolay shapovalov commentedI removed all the changes from MR, that is not related to phpcs report.
Only changes for unit tests left in the MR, to check that tests will pass.
I think it's ready for review now.
P. S. I haven't rights to resolve threads in the MR.
Comment #41
nikolay shapovalov commentedTests failed, needs work.
Comment #42
nikolay shapovalov commentedChanges to fix tests made in #3415080: Fix functional javascript tests for entity_embed / ckeditor4, it would be great to merge that issue first.
I have an idea to remove adding Dependency Injection to
from changes to simplify this MR, and move it to separate issue.
But for now I keep these changes.
Some changes that I removed from MR, makes sense to implement in code base.
E.g. b5456b6, 13c0c7726.
Let's move it to separate issues.
Comment #43
a.aaronjake commentedHi @AnkShetty @vivekp27 @Nikolay Shapovalov,
Confirmed your changes in MR !13 can be applied successfully, however, there are still errors reported. Please see below:
Kindly check
Thanks,
Jake
Comment #45
atul_ghate commentedComment #46
a.aaronjake commentedHi @atul_ghate,
I applied the latest changes on MR !13, it was applied smoothly and confirmed no errors were reported.
Will now move this to RTBC
Thanks,
Jake
Comment #51
dave reidComment #59
dave reidAll linting jobs are passing now!