[2.0.0-beta1] Code quality: Form builder and rendering

Created on 28 July 2024, 4 months ago
Updated 12 August 2024, 3 months ago
 ------ ---------------------------------------------------------------------- 
  Line   src/Element/ComponentElementAlter.php                                 
 ------ ---------------------------------------------------------------------- 
  39     \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
 ------ ---------------------------------------------------------------------- 
 ------ -------------------------------------------------- 
  Line   src/Element/ComponentElementBuilder.php           
 ------ -------------------------------------------------- 
  90     Call to an undefined method object::transform().  
 ------ -------------------------------------------------- 
 ------ ------------------------------------------------------------------- 
  Line   src/Element/ComponentPropForm.php                                  
 ------ ------------------------------------------------------------------- 
  208    Method                                                             
         Drupal\ui_patterns\Element\ComponentPropForm::getDefaultSource()   
         should return Drupal\ui_patterns\SourceInterface|null but returns  
         object.                                                            
 ------ ------------------------------------------------------------------- 
 ------ ----------------------------------------------------- 
  Line   src/Element/ComponentSlotForm.php                    
 ------ ----------------------------------------------------- 
  182    Call to an undefined method object::settingsForm().  
  185    Call to an undefined method object::getPluginId().   
 ------ ----------------------------------------------------- 
 ------ ------------------------------------------------------------------------ 
  Line   src/Element/UiPatternsOperations.php                                    
 ------ ------------------------------------------------------------------------ 
  25     Method                                                                  
         Drupal\ui_patterns\Element\UiPatternsOperations::preRenderDropbutton()  
         has parameter $element with no type specified.                          
 ------ ------------------------------------------------------------------------ 
 ------ ----------------------------------------------------------------------------------- 
  Line   src/Form/ComponentFormBuilderTrait.php (in context of class                        
         Drupal\ui_patterns_blocks\Plugin\Block\ComponentBlock)                             
 ------ ----------------------------------------------------------------------------------- 
  51     Method                                                                             
         Drupal\ui_patterns_blocks\Plugin\Block\ComponentBlock::getComponentFormDefault()   
         has no return type specified.                                                      
  133    Method                                                                             
         Drupal\ui_patterns_blocks\Plugin\Block\ComponentBlock::buildComponentRenderable()  
         has no return type specified.                                                      
  133    Method                                                                             
         Drupal\ui_patterns_blocks\Plugin\Block\ComponentBlock::buildComponentRenderable()  
         has parameter $component_id with no type specified.                                
  133    Method                                                                             
         Drupal\ui_patterns_blocks\Plugin\Block\ComponentBlock::buildComponentRenderable()  
         has parameter $source_contexts with no type specified.                             
 ------ ----------------------------------------------------------------------------------- 
 ------ -------------------------------------------------------------------------------------------------------------------- 
  Line   src/Form/ComponentFormBuilderTrait.php (in context of class                                                         
         Drupal\ui_patterns_field_formatters\Plugin\Field\FieldFormatter\ComponentFormatterBase)                             
 ------ -------------------------------------------------------------------------------------------------------------------- 
  51     Method                                                                                                              
         Drupal\ui_patterns_field_formatters\Plugin\Field\FieldFormatter\ComponentFormatterBase::getComponentFormDefault()   
         has no return type specified.                                                                                       
  133    Method                                                                                                              
         Drupal\ui_patterns_field_formatters\Plugin\Field\FieldFormatter\ComponentFormatterBase::buildComponentRenderable()  
         has no return type specified.                                                                                       
  133    Method                                                                                                              
         Drupal\ui_patterns_field_formatters\Plugin\Field\FieldFormatter\ComponentFormatterBase::buildComponentRenderable()  
         has parameter $component_id with no type specified.                                                                 
  133    Method                                                                                                              
         Drupal\ui_patterns_field_formatters\Plugin\Field\FieldFormatter\ComponentFormatterBase::buildComponentRenderable()  
         has parameter $source_contexts with no type specified.                                                              
 ------ -------------------------------------------------------------------------------------------------------------------- 
 ------ -------------------------------------------------------------------------------------- 
  Line   src/Form/ComponentFormBuilderTrait.php (in context of class                           
         Drupal\ui_patterns_layouts\Plugin\Layout\ComponentLayout)                             
 ------ -------------------------------------------------------------------------------------- 
  51     Method                                                                                
         Drupal\ui_patterns_layouts\Plugin\Layout\ComponentLayout::getComponentFormDefault()   
         has no return type specified.                                                         
  133    Method                                                                                
         Drupal\ui_patterns_layouts\Plugin\Layout\ComponentLayout::buildComponentRenderable()  
         has no return type specified.                                                         
  133    Method                                                                                
         Drupal\ui_patterns_layouts\Plugin\Layout\ComponentLayout::buildComponentRenderable()  
         has parameter $component_id with no type specified.                                   
  133    Method                                                                                
         Drupal\ui_patterns_layouts\Plugin\Layout\ComponentLayout::buildComponentRenderable()  
         has parameter $source_contexts with no type specified.                                
 ------ -------------------------------------------------------------------------------------- 
 ------ ------------------------------------------------------------------------------------ 
  Line   src/Form/ComponentFormBuilderTrait.php (in context of class                         
         Drupal\ui_patterns_views\Plugin\views\row\ComponentRow)                             
 ------ ------------------------------------------------------------------------------------ 
  51     Method                                                                              
         Drupal\ui_patterns_views\Plugin\views\row\ComponentRow::getComponentFormDefault()   
         has no return type specified.                                                       
  133    Method                                                                              
         Drupal\ui_patterns_views\Plugin\views\row\ComponentRow::buildComponentRenderable()  
         has no return type specified.                                                       
  133    Method                                                                              
         Drupal\ui_patterns_views\Plugin\views\row\ComponentRow::buildComponentRenderable()  
         has parameter $component_id with no type specified.                                 
  133    Method                                                                              
         Drupal\ui_patterns_views\Plugin\views\row\ComponentRow::buildComponentRenderable()  
         has parameter $source_contexts with no type specified.                              
 ------ ------------------------------------------------------------------------------------ 
 ------ ---------------------------------------------------------------------------------------- 
  Line   src/Form/ComponentFormBuilderTrait.php (in context of class                             
         Drupal\ui_patterns_views\Plugin\views\style\ComponentStyle)                             
 ------ ---------------------------------------------------------------------------------------- 
  51     Method                                                                                  
         Drupal\ui_patterns_views\Plugin\views\style\ComponentStyle::getComponentFormDefault()   
         has no return type specified.                                                           
  133    Method                                                                                  
         Drupal\ui_patterns_views\Plugin\views\style\ComponentStyle::buildComponentRenderable()  
         has no return type specified.                                                           
  133    Method                                                                                  
         Drupal\ui_patterns_views\Plugin\views\style\ComponentStyle::buildComponentRenderable()  
         has parameter $component_id with no type specified.                                     
  133    Method                                                                                  
         Drupal\ui_patterns_views\Plugin\views\style\ComponentStyle::buildComponentRenderable()  
         has parameter $source_contexts with no type specified.                                  
 ------ ---------------------------------------------------------------------------------------- 
 ------ ----------------------------------------------------------------------------------------------------------------- 
  Line   src/Form/ComponentSettingsFormBuilderTrait.php (in context of class                                              
         Drupal\ui_patterns_field_formatters\Plugin\Field\FieldFormatter\ComponentFormatterBase)                          
 ------ ----------------------------------------------------------------------------------------------------------------- 
  37     Method                                                                                                           
         Drupal\ui_patterns_field_formatters\Plugin\Field\FieldFormatter\ComponentFormatterBase::componentSettingsForm()  
         has parameter $source_contexts with no type specified.                                                           
 ------ ----------------------------------------------------------------------------------------------------------------- 
 ------ --------------------------------------------------------------------------------- 
  Line   src/Form/ComponentSettingsFormBuilderTrait.php (in context of class              
         Drupal\ui_patterns_views\Plugin\views\row\ComponentRow)                          
 ------ --------------------------------------------------------------------------------- 
  37     Method                                                                           
         Drupal\ui_patterns_views\Plugin\views\row\ComponentRow::componentSettingsForm()  
         has parameter $source_contexts with no type specified.                           
 ------ --------------------------------------------------------------------------------- 
 ------ ------------------------------------------------------------------------------------- 
  Line   src/Form/ComponentSettingsFormBuilderTrait.php (in context of class                  
         Drupal\ui_patterns_views\Plugin\views\style\ComponentStyle)                          
 ------ ------------------------------------------------------------------------------------- 
  37     Method                                                                               
         Drupal\ui_patterns_views\Plugin\views\style\ComponentStyle::componentSettingsForm()  
         has parameter $source_contexts with no type specified.                               
 ------ ------------------------------------------------------------------------------------- 
 
  Line   ui_patterns.module                                                    
 ------ ---------------------------------------------------------------------- 
  15     Function ui_patterns_element_info_alter() has no return type          
         specified.                                                            
  30     Function ui_patterns_plugin_filter_block__ui_patterns_alter() has no  
         return type specified.                                                
 ------ ---------------------------------------------------------------------- 
📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024