Problem/Motivation

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/config_pages.info.yml
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
----------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/config_pages.module
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------
155 | WARNING | Only string literals should be passed to t() where possible
159 | WARNING | Only string literals should be passed to t() where possible
--------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/config_pages.tokens.inc
------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
9 | WARNING | [x] Unused use statement
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/ConfigPagesAccessControlHandler.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------
30 | ERROR | [x] Inline control structures are not allowed
46 | ERROR | [x] Inline control structures are not allowed
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/ConfigPagesContextBase.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
19 | WARNING | Possible useless method overriding detected
-------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Form/ConfigPagesTypeDeleteForm.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
17 | ERROR | [x] Expected "\Drupal\Core\Entity\EntityStorageInterfacegetQuery" but found
| | "\Drupal\Core\Entity\EntityStorageInterface::getQuery()" for @var tag in member variable comment
24 | ERROR | [ ] Missing parameter comment
24 | ERROR | [x] Data types in @param tags need to be fully namespaced
25 | ERROR | [x] Separate the @param and @throws sections by a blank line.
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Entity/ConfigPages.php
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
97 | WARNING | [ ] Possible useless method overriding detected
211 | ERROR | [x] Use null coalesce operator instead of ternary operator.
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Plugin/Condition/ConfigPagesValueAccess.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------------------------------------
58 | ERROR | [ ] Type hint "array" missing for $plugin_definition
120 | ERROR | [x] Use null coalesce operator instead of ternary operator.
128 | ERROR | [x] Use null coalesce operator instead of ternary operator.
133 | ERROR | [x] Use null coalesce operator instead of ternary operator.
170 | ERROR | [x] Each PHP statement must be on a line by itself
217 | ERROR | [x] list(...) is forbidden, use [...] instead.
237 | ERROR | [x] list(...) is forbidden, use [...] instead.
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

FILE: ...Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Plugin/views/argument_default/CurrentContext.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------
49 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Plugin/Block/ConfigPagesBlock.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [ ] Class property $entity_display_repository should use lowerCamel naming without underscores
25 | ERROR | [ ] Missing member variable doc comment
26 | ERROR | [ ] Class property $entity_type_manager should use lowerCamel naming without underscores
26 | ERROR | [ ] Missing member variable doc comment
139 | ERROR | [x] Use null coalesce operator instead of ternary operator.
152 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Controller/ConfigPagesController.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------------------------------
30 | ERROR | [ ] Class property $ConfigPagesStorage should use lowerCamel naming without underscores
37 | ERROR | [ ] Class property $ConfigPagesTypeStorage should use lowerCamel naming without underscores
68 | ERROR | [x] Data types in @param tags need to be fully namespaced
160 | ERROR | [ ] Missing parameter type
162 | ERROR | [x] Whitespace found at end of line
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/ConfigPagesLoaderService.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------
83 | ERROR | [x] Use null coalesce operator instead of ternary operator.
90 | ERROR | [x] Use null coalesce operator instead of ternary operator.
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/ConfigPagesTypeForm.php
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
30 | ERROR | [x] Scope keyword "protected" must be followed by a single space; found 2
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/ConfigPagesStorage.php
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Use null coalesce operator instead of ternary operator.
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Commands/ConfigPagesCommands.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------------------------
22 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
33 | ERROR | [x] Separate the @param and @option sections by a blank line.
42 | ERROR | [ ] Type hint "null" missing for $context
80 | ERROR | [x] Separate the @param and @validate-module-enabled sections by a blank line.
85 | ERROR | [ ] Type hint "null" missing for $context
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Command/SetValueCommand.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
12 | WARNING | [x] Unused use statement
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Command/GetValueCommand.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/Routing/ConfigPagesRoutes.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/config_pages/src/ConfigPagesForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------
82 | ERROR | [ ] Missing parameter comment
82 | ERROR | [x] Data types in @param tags need to be fully namespaced
314 | ERROR | [ ] The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#14 3333709-14.patch28.68 KBjeroent
#2 3333709-2.patch17.71 KBsahil.goyal
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sahil.goyal created an issue. See original summary.

sahil.goyal’s picture

StatusFileSize
new17.71 KB
sahil.goyal’s picture

Status: Needs work » Needs review

shumer made their first commit to this issue’s fork.

shumer’s picture

Assigned: Unassigned » shumer
Status: Needs review » Active
Issue tags: -, -

  • shumer committed 4ab73f3d on 8.x-2.x
    Issue #3333709: Drupal Coding Standards Issues | phpcs
    
shumer’s picture

Status: Active » Fixed
nicodh’s picture

Status: Fixed » Needs work

Hi,

Why did you remove src/Command/{Set,Get}ValueCommand.php ?
You should re-add these command files or also delete console.services.yml because it breaks Drupal Console.

  • shumer committed 573b141a on 8.x-2.x authored by sahil.goyal
    Issue #3333709 by shumer, sahil.goyal: Drupal Coding Standards Issues |...
shumer’s picture

That was an accidental. Thanks for noticing that.

shumer’s picture

Status: Needs work » Fixed
nicodh’s picture

Thanks!!

jeroent’s picture

Status: Fixed » Closed (fixed)
StatusFileSize
new28.68 KB