Showing 3 of 141 total issues
Function deleteEntityFromMigration
has a Cognitive Complexity of 20 (exceeds 10 allowed). Consider refactoring. Open
Open
public function deleteEntityFromMigration(EntityInterface $entity): void { foreach ($this->getMigrationList() as $migrations) { foreach ($migrations as $migration) { $destination = $migration->getDestinationConfiguration();
- Read upRead up
Method buildForm
has 56 lines of code (exceeds 40 allowed). Consider refactoring. Open
Open
public function buildForm(array $form, FormStateInterface $form_state) { $form = parent::buildForm($form, $form_state); $migration_id = $this->entity->id(); $template_link = Link::fromTextAndUrl($this->t('empty CSV template'), $this->entity->toUrl('csv-template')) ->toString();
Function getNodesMigration
has a Cognitive Complexity of 12 (exceeds 10 allowed). Consider refactoring. Open
Open
public function getNodesMigration(NodeInterface $node): ?MigrationEntityInterface { // Use a static variable so that it doesn't look up the migrations multiple // times. $node_migration = &drupal_static(__CLASS__ . __FUNCTION__ . '_' . $node->id());
- Read upRead up