Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

Assigned: Unassigned » damienmckenna
damienmckenna’s picture

Assigned: damienmckenna » Unassigned
Status: Active » Needs review
StatusFileSize
new49.32 KB

A starting point.

damienmckenna’s picture

StatusFileSize
new32.27 KB
new72.19 KB

Some additional items.

Status: Needs review » Needs work

The last submitted patch, 4: entity_ui-n3442925-4.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

damienmckenna’s picture

Assigned: Unassigned » damienmckenna

Still working on this.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new51.72 KB

I ran all of the tests locally and fixed issues that were found.

There are lots more small issues with method and function arguments missing their comments, but it's in the right direction.

damienmckenna’s picture

StatusFileSize
new14.62 KB
new60.78 KB

Even moar.

damienmckenna’s picture

StatusFileSize
new731 bytes
new60.78 KB

One more small fix.

There are also some class attributes that don't use lowerCamel format that should be changed, but that would constitute an API change and you might not want to do it.

damienmckenna’s picture

Here's what's left:

FILE: /src/EntityHandler/BundleEntityCollection.php
--------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------
 24 | ERROR | Missing @var tag in member variable comment
 29 | ERROR | Missing @var tag in member variable comment
 34 | ERROR | Missing @var tag in member variable comment
--------------------------------------------------------------------------------------------------------------


FILE: /src/EntityHandler/FieldUIWithoutBundleEntityProxy.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------
  27 | ERROR | Missing @var tag in member variable comment
  32 | ERROR | Missing @var tag in member variable comment
 134 | ERROR | Protected method name "FieldUIWithoutBundleEntityProxy::setUpRealHandlerFromFieldUIBaseRoute" is not in
     |       | lowerCamel format
------------------------------------------------------------------------------------------------------------------------


FILE: /src/EntityHandler/PlainBundlesEntityUIAdmin.php
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 32 | ERROR | Missing @var tag in member variable comment
-----------------------------------------------------------------------------------------------------------------


FILE: /src/EntityHandler/EntityTabListBuilder.php
-------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------
  78 | ERROR | Class property $target_entity_type_id should use lowerCamel naming without underscores
  85 | ERROR | Class property $target_entity_canonical_path should use lowerCamel naming without underscores
 225 | ERROR | Return type missing for @return tag in function comment
 277 | ERROR | Return type missing for @return tag in function comment
-------------------------------------------------------------------------------------------------------------


FILE: /src/EntityHandler/BasicFieldUI.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
 20 | ERROR | Missing @var tag in member variable comment
----------------------------------------------------------------------------------------------------


FILE: /src/EntityUiPermissions.php
---------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------
 44 | ERROR | Description for the @return value is missing
 67 | ERROR | Description for the @return value is missing
---------------------------------------------------------------------------------------------


FILE: /src/Form/EntityTabForm.php
------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------
  68 | ERROR | Missing parameter name
 373 | ERROR | Missing parameter type
 395 | ERROR | Missing parameter type
 401 | ERROR | Protected method name "EntityTabForm::getTargetEntityTypeCanonicalURL" is not in lowerCamel format
------------------------------------------------------------------------------------------------------------------


FILE: /src/EntityTabsLoader.php
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
 36 | ERROR | Return type missing for @return tag in function comment
------------------------------------------------------------------------------------------


FILE: /src/Entity/EntityTab.php
-------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------
 108 | ERROR | Missing @var tag in member variable comment
 168 | ERROR | Public method name "EntityTab::getTargetEntityTypeID" is not in lowerCamel format
 219 | ERROR | Public method name "EntityTab::getPluginID" is not in lowerCamel format
-------------------------------------------------------------------------------------------------


FILE: /src/Entity/EntityTabInterface.php
---------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------
 20 | ERROR | Public method name "EntityTabInterface::getTargetEntityTypeID" is not in lowerCamel format
 71 | ERROR | Public method name "EntityTabInterface::getPluginID" is not in lowerCamel format
---------------------------------------------------------------------------------------------------------


FILE: ...ers/dmckenna/Sites/drupal/10.3/modules/contrib/entity_ui/src/Plugin/EntityTabContent/ActionsConfigurableAction.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
 44 | ERROR | Parameter $entity_type_manager is not described in comment
 44 | ERROR | Parameter $bundle_info_service is not described in comment
------------------------------------------------------------------------------------------------------------------------


FILE: /src/Plugin/EntityTabContent/EntityView.php
------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------
 15 | ERROR | Missing short description in doc comment
 38 | ERROR | Parameter $bundle_info_service is not described in comment
------------------------------------------------------------------------------------------------------------


FILE: /src/Plugin/EntityTabContent/EntityForm.php
------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------
 16 | ERROR | Missing short description in doc comment
 39 | ERROR | Parameter $entity_type_manager is not described in comment
 39 | ERROR | Parameter $bundle_info_service is not described in comment
------------------------------------------------------------------------------------------------------------


FILE: /src/Plugin/EntityTabContent/OwnerAssign.php
-------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------
 19 | ERROR | Missing short description in doc comment
 35 | ERROR | Parameter $entity_type_manager is not described in comment
 35 | ERROR | Parameter $bundle_info_service is not described in comment
 35 | ERROR | Parameter $form_builder is not described in comment
-------------------------------------------------------------------------------------------------------------


FILE: /src/Plugin/EntityTabContentFormBase.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
 31 | ERROR | Parameter $bundle_info_service is not described in comment
---------------------------------------------------------------------------------------------------------


FILE: /src/Plugin/EntityTabLazyPluginCollection.php
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 18 | ERROR | Missing @var tag in member variable comment
--------------------------------------------------------------------------------------------------------------


FILE: /src/Controller/EntityTabController.php
--------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
 70 | ERROR | Return type missing for @return tag in function comment
--------------------------------------------------------------------------------------------------------


FILE: /src/Controller/EntityTabAddPage.php
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
 56 | ERROR | Return type missing for @return tag in function comment
-----------------------------------------------------------------------------------------------------
damienmckenna’s picture

Assigned: damienmckenna » Unassigned
StatusFileSize
new62 KB
new2.88 KB

A few more fixes.

joachim’s picture

Status: Needs review » Fixed

Urgh, all the indentation! That dates back from when I used TextMate as my text editor, and that's how it indented in a docblock and I CBA to keep adding a space every line!

Committed, with a few changes -- some of the text changes read a bit wrong, e.g.

-   * The ID of the entity type this handler is for.
+   * The entity type this handler is for.

Thanks!

  • joachim committed e5a20d00 on 8.x-1.x
    Issue #3442925 by DamienMcKenna: Fixed coding standards issues.
damienmckenna’s picture

Thanks for the quick turnaround on the commit, it'll make other patches & MRs easier to deal with.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.