Report from drupal-check -ad
13/13 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------------------------
Line auto_entitylabel.install
------ ----------------------------------------------------------------------------------------
29 Variable $config in PHPDoc tag @var does not match assigned variable $old_config.
66 Call to an undefined method Drupal\Core\Entity\EntityTypeInterface::getConfigPrefix().
------ ----------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------
Line auto_entitylabel.module
------ --------------------------------------------------------------------------
54 Call to an undefined method Drupal\Core\Form\FormInterface::getEntity().
------ --------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------
Line src/AutoEntityLabelManager.php
------ ------------------------------------------------------------------------------------------------------
114 Access to an undefined property Drupal\auto_entitylabel\AutoEntityLabelManager::$bundle_entity_type.
163 Comparison operation "==" between Drupal\Core\Config\ImmutableConfig and 1 results in an error.
170 Comparison operation "==" between Drupal\Core\Config\ImmutableConfig and 2 results in an error.
187 Method Drupal\auto_entitylabel\AutoEntityLabelManager::getStatus() should return bool but returns
Drupal\Core\Config\ImmutableConfig.
194 Ternary operator condition is always true.
------ ------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------
Line src/AutoEntityLabelPermissionController.php
------ -------------------------------------------------------
38 Unsafe usage of new static().
💡 Consider making the class or the constructor final.
------ -------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------------------
Line src/EntityDecorator.php
------ ------------------------------------------------------------------------------------------------------------------
62 Property Drupal\auto_entitylabel\EntityDecorator::$entityTypeManager (Drupal\Core\Entity\EntityTypeManager) does
not accept Drupal\Core\Entity\EntityTypeManagerInterface.
70 Property Drupal\auto_entitylabel\EntityDecorator::$entity (Drupal\Core\Entity\ContentEntityInterface) does not
accept Drupal\auto_entitylabel\AutoEntityLabelManager.
------ ------------------------------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------------------
Line src/Form/AutoEntityLabelForm.php
------ ------------------------------------------------------------------------------------------------------------------
26 PHPDoc tag @property has invalid value (String entityBundle): Unexpected token "entityBundle", expected variable
at offset 234
26 PHPDoc tag @property has invalid value (String entityType): Unexpected token "entityType", expected variable at
offset 203
26 PHPDoc tag @property has invalid value (\Drupal\Core\Config\ConfigFactoryInterface config_factory): Unexpected
token "config_factory", expected variable at offset 93
26 PHPDoc tag @property has invalid value (\Drupal\Core\Entity\EntityTypeManagerInterface entity_manager):
Unexpected token "entity_manager", expected variable at offset 168
26 PHPDoc tag @property has invalid value (\Drupal\auto_entitylabel\AutoEntityLabelManager
auto_entity_label_manager): Unexpected token "\n *", expected variable at offset 307
135 Unsafe usage of new static().
💡 Consider making the class or the constructor final.
------ ------------------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------
Line src/Plugin/Derivative/AutoEntityLabelConfigTask.php
------ -------------------------------------------------------
38 Unsafe usage of new static().
💡 Consider making the class or the constructor final.
------ -------------------------------------------------------
------ -----------------------------------------------------------------
Line src/Plugin/Validation/EntityLabelNotNullConstraintValidator.php
------ -----------------------------------------------------------------
41 Unsafe usage of new static().
💡 Consider making the class or the constructor final.
------ -----------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------
Line src/Routing/RouteSubscriber.php
------ ---------------------------------------------------------------------------------------------
55 Method Drupal\auto_entitylabel\Routing\RouteSubscriber::getEntityLabelRoute() should return
Symfony\Component\Routing\Route|null but return statement is missing.
------ ---------------------------------------------------------------------------------------------
[ERROR] Found 20 errors
Report from phpcs
FILE: .../src/Form/AutoEntityLabelForm.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------
40 | ERROR | [ ] Missing member variable doc comment
135 | ERROR | [x] Space before opening parenthesis of function call prohibited
220 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
----------------------------------------------------------------------------------------------------------------------------
Comments
Comment #2
bcizej commentedI'm attaching a patch that fixes all the issues except
Unsafe usage of new static().Comment #3
bcizej commentedComment #4
kbrodej commentedReviewed the patch from #2, works as intended.
Comment #5
dqdThanks for working on this. Please reroll against latest 8.x-3.x-dev and please be aware of #2856225: Replace all usages of deprecated EntityManagerInterface being committed already.
Comment #6
nace_fr commentedHi. I have rerolled patch from #2 and it should apply without issues now. Also all the errors should be fixed.
Comment #7
kbrodej commentedReviewed and tested the patch that was rerolled. All ok. Marking it as RTBC.
Comment #9
colanThanks everyone!