Fix the issues reported by phpcs

Created on 10 April 2023, about 1 year ago
Updated 26 April 2023, about 1 year ago

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/layout_builder_ipe.libraries.yml
--------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/layout_builder_ipe.services.yml
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
38 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/css/ipe.css
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
73 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/css/ipe_settings.css
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
3 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/layout_builder_ipe.module
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 3 WARNINGS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
39 | ERROR | [x] Expected 1 space between comma and type hint "EntityInterface"; 2 found
39 | ERROR | [x] Expected one space after the comma, 2 found
96 | WARNING | [ ] Unused variable $build.
96 | WARNING | [ ] Unused variable $build.
99 | WARNING | [ ] Unused variable $build.
166 | ERROR | [ ] The array declaration extends to column 127 (the limit is 80). The array content should be split up over multiple lines
177 | ERROR | [x] Trailing punctuation for @see references is not allowed.
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/layout_builder_ipe.api.php
--------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
26 | ERROR | [x] Expected 1 space between comma and type hint "SectionStorageInterface"; 2 found
26 | ERROR | [x] Expected one space after the comma, 2 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/LayoutBuilderIpeTempstoreRepository.php
-------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 13 LINES
-------------------------------------------------------------------------------------------------------------------
57 | ERROR | [ ] Parameter $section_storage is not described in comment
60 | ERROR | [ ] Doc comment for parameter $key does not match actual variable name $section_storage
72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
73 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
74 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
75 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
76 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
77 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
78 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
79 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
80 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
81 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
82 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/LayoutBuilderIpeLock.php
-------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------
55 | ERROR | Parameter $config is not described in comment
55 | ERROR | Parameter $tempstore_factory is not described in comment
55 | ERROR | Parameter $entity_type_manager is not described in comment
55 | ERROR | Parameter $current_user is not described in comment
55 | ERROR | Parameter $date_formatter is not described in comment
58 | ERROR | Doc comment for parameter $layout_builder_ipe does not match actual variable name $date_formatter
124 | WARNING | Only string literals should be passed to t() where possible
-------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/LayoutBuilderIpeConfig.php
------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
23 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/LayoutBuilderIpeServiceProvider.php
---------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
45 | ERROR | [x] Expected 1 newline at end of file; 0 found
45 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/Controller/EntityBaseController.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------
46 | WARNING | Line exceeds 80 characters; contains 82 characters
52 | WARNING | Line exceeds 80 characters; contains 82 characters
56 | ERROR | The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
79 | ERROR | Type hint "array" missing for $form
79 | ERROR | Type hint "\Drupal\layout_builder\SectionStorageInterface" missing for $section_storage
79 | ERROR | Type hint "\Drupal\Core\Entity\EntityInterface" missing for $entity
----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/Controller/PageVariantController.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 3 WARNINGS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
113 | ERROR | [ ] The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
149 | WARNING | [x] A comma should follow the last multiline array item. Found: $step
152 | WARNING | [x] A comma should follow the last multiline array item. Found: $step
239 | ERROR | [ ] Missing parameter name
242 | ERROR | [x] Additional blank lines found at end of doc comment
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/Controller/EntityOverrideController.php
-------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------
16 | ERROR | Parameter $entity is not described in comment
19 | ERROR | Doc comment for parameter $section_storage does not match actual variable name $entity
33 | ERROR | Parameter $entity is not described in comment
36 | ERROR | Doc comment for parameter $section_storage does not match actual variable name $entity
-------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/Controller/BaseController.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
104 | ERROR | No key specified for array entry; first entry specifies key
---------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/EventSubscriber/IpeRouteParamContext.php
--------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------
54 | ERROR | [ ] Parameter $layout_builder_ipe is not described in comment
97 | WARNING | [x] There must be no blank line following an inline comment
97 | WARNING | [ ] There must be no blank line following an inline comment
162 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
163 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/Validation/Constraint/LayoutBuilderEntityChangedConstraint.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
19 | ERROR | Missing member variable doc comment
------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/Validation/Constraint/LayoutBuilderEntityChangedConstraintValidator.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 4 WARNINGS AFFECTING 10 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------
63 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
75 | WARNING | [ ] Only string literals should be passed to t() where possible
93 | ERROR | [x] Calling class constructors must always include parentheses
102 | ERROR | [ ] Missing parameter name
105 | ERROR | [ ] Description for the @return value is missing
108 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
126 | ERROR | [ ] Missing parameter name
129 | ERROR | [ ] Description for the @return value is missing
132 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
140 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/LayoutBuilder/LayoutBuilderConfirmForm.php
----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------
143 | ERROR | [ ] Parameter $form_id is not described in comment
212 | ERROR | [ ] Type hint "\Drupal\layout_builder\SectionStorageInterface" missing for $section_storage
253 | ERROR | [x] Space found before object operator
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/LayoutBuilder/LayoutBuilderSubmitForm.php
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
11 | WARNING | [x] Unused use statement
53 | ERROR | [ ] Doc comment for parameter $button_key does not match actual variable name
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/LayoutBuilder/LayoutBuilderUi.php
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
181 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/Traits/SectionStorageFormTrait.php
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Missing trait doc comment
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/LayoutBuilderIpeService.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AND 5 WARNINGS AFFECTING 17 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
155 | ERROR | [ ] Parameter $entity is not described in comment
155 | ERROR | [ ] Parameter $check_lock is not described in comment
198 | ERROR | [ ] Type hint "\Drupal\Core\Entity\EntityInterface" missing for $entity
201 | ERROR | [ ] Function return type is not void, but function is returning void here
268 | ERROR | [x] Doc comment short description must end with a full stop
277 | ERROR | [ ] Type hint "array" missing for $build
295 | WARNING | [x] A comma should follow the last multiline array item. Found: $enhance_ui
300 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
315 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
332 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
359 | ERROR | [ ] Parameter $section_storage is not described in comment
359 | ERROR | [ ] Parameter $entity is not described in comment
359 | ERROR | [ ] Parameter $build is not described in comment
414 | ERROR | [x] Doc comment short description must end with a full stop
497 | ERROR | [x] Expected 1 space after FUNCTION keyword; 2 found
557 | WARNING | [ ] Unused variable $name.
599 | ERROR | [ ] Type hint "\Drupal\Core\Entity\ContentEntityInterface" missing for $entity
612 | ERROR | [ ] Type hint "\Drupal\Core\Entity\ContentEntityInterface" missing for $entity
630 | ERROR | [ ] Type hint "\Drupal\layout_builder\SectionStorageInterface" missing for $section_storage
653 | ERROR | [ ] Type hint "\Drupal\Core\Entity\ContentEntityInterface" missing for $entity
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/Access/LayoutBuilderPageAccess.php
--------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Missing class doc comment
28 | ERROR | [ ] Parameter $layout_builder_ipe is not described in comment
52 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
52 | ERROR | [ ] Description for the @return value is missing
82 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/src/LayoutBuilderIpePermissions.php
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
53 | ERROR | [x] Parameter comment must end with a full stop
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/config/schema/layout_builder_ipe.schema.yml
-------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
33 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/tests/src/Functional/LayoutBuilderIntegrationTest.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
93 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
-----------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/tests/src/FunctionalJavascript/LayoutBuilderIpeUiTest.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------------------------
38 | ERROR | Missing member variable doc comment
57 | ERROR | Class property $node_lb should use lowerCamel naming without underscores
64 | ERROR | Class property $node_no_lb should use lowerCamel naming without underscores
371 | WARNING | Line exceeds 80 characters; contains 82 characters
425 | WARNING | Line exceeds 80 characters; contains 82 characters
747 | ERROR | Parameter $state is not described in comment
747 | ERROR | Parameter $user is not described in comment
812 | ERROR | The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/tests/src/Kernel/FrontendLinksAlterTest.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
18 | ERROR | [ ] Missing member variable doc comment
46 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
60 | ERROR | [ ] The array declaration extends to column 98 (the limit is 80). The array content should be split up over multiple lines
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/tests/modules/frontend_links_test/frontend_links_test.module
------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
17 | ERROR | [x] Expected 1 space between comma and type hint "SectionStorageInterface"; 2 found
17 | ERROR | [x] Expected one space after the comma, 2 found
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/layout_builder_ipe/layout_builder_ipe.links.menu.yml
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India himanshu_jhaloya Mandsaur

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024